summaryrefslogtreecommitdiff
path: root/httemplate/search/cdr.html
blob: 75049b4434f86e639e9f2067a9d852ea95714768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%

my $hashref = {};
#process params for CDR search, populate $hashref...

my $count_query = 'SELECT COUNT(*) FROM cdr';
# and fixup $count_query

%><%= include( 'elements/search.html',
               'title' => 'Call Detail Records',
               'name'  => 'call detail records',
               'query' => { 'table'   => 'cdr',
                            'hashref' => $hashref
                          },
               'count_query' => $count_query,
               'header' => [ fields('cdr') ], #XXX fill in some nice names
               'fields' => [ fields('cdr') ], #XXX fill in some pretty-print
                                              # processing, etc.
             )
%>