% 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!