X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=6b38d3ba73989029e537faab2e75957beebefea6;hb=d0221fabd4656b3a04251ca6168cc45f54d23574;hp=e3d6043e86da1906efbf2c669ef53b002faf4354;hpb=1053db7f76169cbbc87840539959a4c362aff242;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index e3d6043e8..6b38d3ba7 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,37 +1,289 @@ -<% +<% 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!