X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=827a50895c4e7217f646e71115d42bcf6cfcc697;hp=e3d6043e86da1906efbf2c669ef53b002faf4354;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=15e561850b61b10a92a46d8f3e316d53d4970087 diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index e3d6043e8..827a50895 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,29 +1,30 @@ -<% - -my $title = 'Call Detail Records'; -my $hashref = {}; -my $count_query = 'SELECT COUNT(*) FROM cdr'; - -#process params for CDR search, populate $hashref... -# and fixup $count_query - -if ( $cgi->param('freesidestatus') eq 'NULL' ) { - - my $title = "Unprocessed $title"; - $hashref->{'freesidestatus'} = ''; # Record.pm will take care of it - #$count_query .= " AND ( freesidestatus IS NULL OR freesidestatus = '' )"; - $count_query .= " WHERE ( freesidestatus IS NULL OR freesidestatus = '' )"; - -} elsif ( $cgi->param('freesidestatus') =~ /^([\w ]+)$/ ) { - - my $title = "Processed $title"; - $hashref->{'freesidestatus'} = $1; - #$count_query .= " AND freesidestatus = '$1'"; - $count_query .= " WHERE freesidestatus = '$1'"; - -} - -%><%= include( 'elements/search.html', +% +% +%my $title = 'Call Detail Records'; +%my $hashref = {}; +%my $count_query = 'SELECT COUNT(*) FROM cdr'; +% +%#process params for CDR search, populate $hashref... +%# and fixup $count_query +% +%if ( $cgi->param('freesidestatus') eq 'NULL' ) { +% +% my $title = "Unprocessed $title"; +% $hashref->{'freesidestatus'} = ''; # Record.pm will take care of it +% #$count_query .= " AND ( freesidestatus IS NULL OR freesidestatus = '' )"; +% $count_query .= " WHERE ( freesidestatus IS NULL OR freesidestatus = '' )"; +% +%} elsif ( $cgi->param('freesidestatus') =~ /^([\w ]+)$/ ) { +% +% my $title = "Processed $title"; +% $hashref->{'freesidestatus'} = $1; +% #$count_query .= " AND freesidestatus = '$1'"; +% $count_query .= " WHERE freesidestatus = '$1'"; +% +%} +% +% +<% include( 'elements/search.html', 'title' => $title, 'name' => 'call detail records', 'query' => { 'table' => 'cdr',