diff options
author | ivan <ivan> | 2008-08-29 01:09:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-08-29 01:09:09 +0000 |
commit | c47123a101c99b35c3c7b1be5b003b773ae00e06 (patch) | |
tree | abecb0c0da3a7b65ce5d787960a852c5cb05fbad /httemplate/search | |
parent | d7b220cb7443a6d55723e4b5b9d483504efe9250 (diff) |
add CDR batch TFTP feature, RT#3113
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/cdr.html | 14 | ||||
-rw-r--r-- | httemplate/search/report_cdr.html | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 4bac8c1f9..0fa64c00c 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -89,6 +89,20 @@ if ( $cgi->param('charged_party') =~ /^\s*([\d\-\+\ ]+)\s*$/ ) { OR charged_party = '1$charged_party' ) "; } +### +# cdrbatch +### + +if ( $cgi->param('cdrbatch') ne '__ALL__' ) { + if ( $cgi->param('cdrbatch') eq '' ) { + my $search = "( cdrbatch IS NULL OR cdrbatch = '' )"; + push @qsearch, $search; + push @search, $search; + } else { + $hashref->{cdrbatch} = $cgi->param('cdrbatch'); + push @search, 'cdrbatch = '. dbh->quote($cgi->param('cdrbatch')); + } +} ### # finish it up diff --git a/httemplate/search/report_cdr.html b/httemplate/search/report_cdr.html index 1c191506f..28516313b 100644 --- a/httemplate/search/report_cdr.html +++ b/httemplate/search/report_cdr.html @@ -42,6 +42,8 @@ ) %> + <% include( '/elements/tr-select-cdrbatch.html' ) %> + </TABLE> <BR> |