X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=852eebadbe8abc6020239c4eb34f1551e22838d4;hb=850f16089f73212d65751dec48e799d83defa6fb;hp=e3d6043e86da1906efbf2c669ef53b002faf4354;hpb=1053db7f76169cbbc87840539959a4c362aff242;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index e3d6043e8..852eebadb 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,37 +1,159 @@ -<% +<% 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 + fields('cdr'), #XXX fill in some nice names + ], + 'fields' => [ + sub { + return '' unless $edit_data; + $areboxes = 1; + my $cdr = shift; + my $acctid = $cdr->acctid; + qq!!; + }, + fields('cdr'), #XXX fill in some pretty-print + #processing, etc. + ], + + 'html_form' => qq!