Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius...
[freeside.git] / httemplate / search / report_cust_pkg-date.html
1 <& /elements/header.html, mt($title) &>
2
3 <FORM ACTION="cust_pkg-date.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="date" VALUE="<% $col %>">
5
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8   <& /elements/tr-select-agent.html,
9                  'curr_value'    => scalar( $cgi->param('agentnum') ),
10                  'disable_empty' => 0,
11   &>
12
13   <& /elements/tr-select-cust-fields.html &>
14   
15 </TABLE>
16
17 <BR>
18 <INPUT TYPE="submit" VALUE="Get Report">
19
20 </FORM>
21
22 <% include('/elements/footer.html') %>
23 <%init>
24
25 die "access denied"
26   unless $FS::CurrentUser::CurrentUser->access_right('List packages');
27
28 # for the page title
29 my %cols = (
30   'contract_end' => 'Contract end'
31 );
32
33 # or let the column be selected here?
34 my $col = $cgi->param('date');
35 die "invalid date column" unless $cols{$col};
36 my $title = 'Packages by ' . lc($cols{$col}) . ' date';
37
38 </%init>