X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=7e62447147c7d468d8bb0ad8c3ba2e481230f352;hb=e168ca3db2702bd9a540316cd9bd840238dd19ce;hp=75049b4434f86e639e9f2067a9d852ea95714768;hpb=fadaa67e77ad8d5d966e252aba7f193e9e3840e3;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 75049b443..7e6244714 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,20 +1,331 @@ -<% - -my $hashref = {}; -#process params for CDR search, populate $hashref... - -my $count_query = 'SELECT COUNT(*) FROM cdr'; -# and fixup $count_query - -%><%= include( 'elements/search.html', - 'title' => 'Call Detail Records', +<% include( 'elements/search.html', + 'title' => $title, 'name' => 'call detail records', - 'query' => { 'table' => 'cdr', - 'hashref' => $hashref + + 'query' => { 'table' => 'cdr', + 'hashref' => $hashref, + 'extra_sql' => $qsearch, + 'order_by' => 'ORDER BY calldate', }, 'count_query' => $count_query, - 'header' => [ fields('cdr') ], #XXX fill in some nice names - 'fields' => [ fields('cdr') ], #XXX fill in some pretty-print - # processing, etc. + 'count_addl' => [ $totalminutes_sub ], + 'header' => [ + '', # checkbox column + @header, + ], + 'fields' => [ + sub { + return '' unless $edit_data; + $areboxes = 1; + my $cdr = shift; + my $acctid = $cdr->acctid; + qq!!; + }, + @fields, #XXX fill in some pretty-print + #processing, etc. + ], + 'links' => \@links, + + 'html_form' => qq!