diff options
| -rw-r--r-- | httemplate/search/cdr.html | 13 | ||||
| -rw-r--r-- | httemplate/search/report_cdr.html | 8 | 
2 files changed, 21 insertions, 0 deletions
| diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index c77fc352f..cefc0fe50 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -95,6 +95,19 @@ if ( $cgi->param('freesidestatus') eq 'NULL' ) {  }  ### +# cdrtypenum +### + +if ( $cgi->param('cdrtypenum') =~ /^(\d+)$/ ) { +    $hashref->{'cdrtypenum'} = $1; +    push @search, "cdrtypenum = $1"; +} +elsif ( $cgi->param('cdrtypenum') eq 'none' ) { +    $hashref->{'cdrtypenum'} = ''; +    push @search, "cdrtypenum is null"; +} + +###  # termpartNstatus  ### diff --git a/httemplate/search/report_cdr.html b/httemplate/search/report_cdr.html index 11049ac93..07299d5dc 100644 --- a/httemplate/search/report_cdr.html +++ b/httemplate/search/report_cdr.html @@ -46,6 +46,14 @@  %   }  % #} +  <% include('/elements/tr-select-table.html', +            field   => 'cdrtypenum', +            label   => 'CDR Type', +            table   => 'cdr_type', +            name_col    => 'cdrtypename', +            post_options => [ 'none', 'none' ] ) +  %> +    <% include ( '/elements/tr-input-beginning_ending.html' ) %>    <TR> | 
