summaryrefslogtreecommitdiff
path: root/httemplate/search/report_sqlradius_usage.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-08-10 17:09:46 -0700
committerMark Wells <mark@freeside.biz>2012-08-10 17:09:46 -0700
commitdb80d13447786bc554d40d4817a1b0d7a5b5e09f (patch)
treee33c4f4e425caef6e67637b05d4a7054a5f5c6e0 /httemplate/search/report_sqlradius_usage.html
parent7b19b666fc36f8dc28747a11bd2b389d8d2ef75f (diff)
rest of sqlradius data usage report
Diffstat (limited to 'httemplate/search/report_sqlradius_usage.html')
-rw-r--r--httemplate/search/report_sqlradius_usage.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/httemplate/search/report_sqlradius_usage.html b/httemplate/search/report_sqlradius_usage.html
new file mode 100644
index 000000000..01215e834
--- /dev/null
+++ b/httemplate/search/report_sqlradius_usage.html
@@ -0,0 +1,40 @@
+<& /elements/header.html, mt($title) &>
+
+<FORM ACTION="sqlradius_usage.html" METHOD="GET">
+
+<TABLE BGCOLOR="#cccccc" CELLSPACING=0
+
+<& /elements/tr-select-agent.html,
+ 'empty_label' => 'all',
+&>
+
+% my @exporttypes = map { "'$_'" } qw(sqlradius broadband_sqlradius);
+<& /elements/tr-select-table.html,
+ 'label' => 'Export',
+ 'table' => 'part_export',
+ 'name_col' => 'label',
+ 'hashref' => {},
+ 'extra_sql' => ' WHERE exporttype IN('.join(',', @exporttypes).')',
+ 'disable_empty' => 1,
+ 'order_by' => 'ORDER BY exportnum',
+&>
+
+<& /elements/tr-input-beginning_ending.html &>
+
+</TABLE>
+
+<BR>
+<INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
+
+</FORM>
+
+<& /elements/footer.html &>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Usage: RADIUS sessions');
+ # yes?
+
+my $title = 'Data Usage Report';
+
+</%init>