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>
12 <% include( '/elements/tr-select-agent.html',
13 'curr_value' => scalar( $cgi->param('agentnum') ),
18 <% include( '/elements/tr-select-domain.html',
19 'element_name' => 'domsvc',
20 'curr_value' => scalar( $cgi->param('domsvc') ),
26 <SCRIPT type="text/javascript">
27 function toggle(what) {
28 label = document.getElementById (what + '_label');
29 field = document.getElementById ( what + '_invert');
30 if (field.value == 1) {
35 if (field.value == 1) {
36 label.firstChild.nodeValue = 'Did not ' + label.firstChild.nodeValue;
38 text = label.firstChild.nodeValue;
39 label.firstChild.nodeValue = text.replace(/Did not /, '');
43 % foreach my $field (qw( last_login last_logout )) {
44 % my $invert = $field."_invert";
50 <TD ALIGN="right" VALIGN="center" ID="<% $field."_label" %>">
54 <INPUT NAME="<% $invert %>" ID="<% $invert %>" TYPE="hidden">
55 <A HREF="javascript:void(0)" onClick="toggle('<% $field %>'); return false;">Invert</A>
62 <% include( '/elements/tr-input-beginning_ending.html',
73 <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
76 <TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
80 <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
82 <% include( '/elements/tr-select-cust-fields.html' ) %>
87 <INPUT TYPE="submit" VALUE="Get Report">
91 <% include('/elements/footer.html') %>
95 unless $FS::CurrentUser::CurrentUser->access_right('List packages');
101 'last_login' => 'Last login',
102 'last_logout' => 'Last logout',