X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=d1f68c5c67f8244fb48d07df02952c332ea2c31b;hb=d1014a727cefa5d9813153594541f62ec15fc8b9;hp=ec847e41fb055c913c12e0cf44e3822dbaa8fd85;hpb=ff24bc786a5fd479f2252260e0da580a736f97be;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index ec847e41f..d1f68c5c6 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -1,35 +1,275 @@ -<% +<% 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!