1 <% include('/elements/header.html', 'Account Report' ) %>
3 <FORM ACTION="svc_acct.cgi" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="advanced">
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
9 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
11 <% include( '/elements/tr-select-agent.html',
12 ($cgi->param('agentnum') || ''),
16 <SCRIPT type="text/javascript">
17 function toggle(what) {
18 label = document.getElementById (what + '_label');
19 field = document.getElementById ( what + '_invert');
20 if (field.value == 1) {
25 if (field.value == 1) {
26 label.firstChild.nodeValue = 'Did not ' + label.firstChild.nodeValue;
28 text = label.firstChild.nodeValue;
29 label.firstChild.nodeValue = text.replace(/Did not /, '');
33 % foreach my $field (qw( last_login last_logout )) {
34 % my $invert = $field."_invert";
40 <TD ALIGN="right" VALIGN="center" ID="<% $field."_label" %>">
44 <INPUT NAME="<% $invert %>" ID="<% $invert %>" TYPE="hidden">
45 <A HREF="javascript:void(0)" onClick="toggle('<% $field %>'); return false;">Invert</A>
52 <% include( '/elements/tr-input-beginning_ending.html',
63 <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
66 <TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
70 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
72 <% include( '/elements/tr-select-cust-fields.html' ) %>
77 <INPUT TYPE="submit" VALUE="Get Report">
81 <% include('/elements/footer.html') %>
85 unless $FS::CurrentUser::CurrentUser->access_right('List packages');
91 'last_login' => 'Last login',
92 'last_logout' => 'Last logout',