Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / httemplate / search / report_sqlradius_usage.html
1 <& /elements/header.html, mt($title) &>
2
3 <FORM ACTION="sqlradius_usage.html" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0
6
7 <& /elements/tr-select-agent.html,
8   'empty_label'   => 'all',
9 &>
10
11 % my @exporttypes = map { "'$_'" } qw(sqlradius broadband_sqlradius);
12 <& /elements/tr-select-table.html,
13   'label'         => 'Export',
14   'table'         => 'part_export',
15   'name_col'      => 'label',
16   'hashref'       => {},
17   'extra_sql'     => ' WHERE exporttype IN('.join(',', @exporttypes).')',
18   'disable_empty' => 1,
19   'order_by'      => 'ORDER BY exportnum',
20 &>
21
22 <& /elements/tr-input-beginning_ending.html &>
23
24 </TABLE>
25
26 <BR>
27 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
28
29 </FORM>
30
31 <& /elements/footer.html &>
32 <%init>
33
34 die "access denied"
35   unless $FS::CurrentUser::CurrentUser->access_right('Usage: RADIUS sessions');
36   # yes?
37
38 my $title = 'Data Usage Report';
39
40 </%init>