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 'curr_value' => scalar($cgi->param('agentnum')),
17 <SCRIPT type="text/javascript">
18 function toggle(what) {
19 label = document.getElementById (what + '_label');
20 field = document.getElementById ( what + '_invert');
21 if (field.value == 1) {
26 if (field.value == 1) {
27 label.firstChild.nodeValue = 'Did not ' + label.firstChild.nodeValue;
29 text = label.firstChild.nodeValue;
30 label.firstChild.nodeValue = text.replace(/Did not /, '');
34 % foreach my $field (qw( last_login last_logout )) {
35 % my $invert = $field."_invert";
41 <TD ALIGN="right" VALIGN="center" ID="<% $field."_label" %>">
45 <INPUT NAME="<% $invert %>" ID="<% $invert %>" TYPE="hidden">
46 <A HREF="javascript:void(0)" onClick="toggle('<% $field %>'); return false;">Invert</A>
53 <% include( '/elements/tr-input-beginning_ending.html',
64 <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
67 <TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
71 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
73 <% include( '/elements/tr-select-cust-fields.html' ) %>
78 <INPUT TYPE="submit" VALUE="Get Report">
82 <% include('/elements/footer.html') %>
86 unless $FS::CurrentUser::CurrentUser->access_right('List packages');
92 'last_login' => 'Last login',
93 'last_logout' => 'Last logout',