X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=5544ff58cf90856d91783b3cbdcf66ab214e5738;hb=f7e5e7625b04164ce2e0aac77a85bc03a7d48a6f;hp=e3d6043e86da1906efbf2c669ef53b002faf4354;hpb=1053db7f76169cbbc87840539959a4c362aff242;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index e3d6043e8..5544ff58c 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,37 +1,315 @@ -<% +<% include( 'elements/search.html', + 'title' => $title, + 'name' => 'call detail records', + + 'query' => { 'table' => 'cdr', + 'hashref' => $hashref, + 'extra_sql' => $qsearch, + 'order_by' => 'ORDER BY calldate', + }, + 'count_query' => $count_query, + '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!