blob: e763251608fa4cf44236f3511a1f02d168f3a365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<% include('/elements/header.html', 'Account Report' ) %>
<FORM ACTION="svc_acct.cgi" METHOD="GET">
<INPUT TYPE="hidden" NAME="magic" VALUE="advanced">
<TABLE BGCOLOR="#cccccc" CELLSPACING=0>
<TR>
<TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
</TR>
<% include( '/elements/tr-select-agent.html',
'curr_value' => scalar($cgi->param('agentnum')),
'disable_empty' => 0,
)
%>
<SCRIPT type="text/javascript">
function toggle(what) {
label = document.getElementById (what + '_label');
field = document.getElementById ( what + '_invert');
if (field.value == 1) {
field.value = 0;
} else {
field.value = 1;
}
if (field.value == 1) {
label.firstChild.nodeValue = 'Did not ' + label.firstChild.nodeValue;
}else{
text = label.firstChild.nodeValue;
label.firstChild.nodeValue = text.replace(/Did not /, '');
}
}
</SCRIPT>
% foreach my $field (qw( last_login last_logout )) {
% my $invert = $field."_invert";
<TR>
<TD>
<TABLE>
<TR>
<TD ALIGN="right" VALIGN="center" ID="<% $field."_label" %>">
<% $label{$field} %>
</TD>
<TD>
<INPUT NAME="<% $invert %>" ID="<% $invert %>" TYPE="hidden">
<A HREF="javascript:void(0)" onClick="toggle('<% $field %>'); return false;">Invert</A>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<% include( '/elements/tr-input-beginning_ending.html',
prefix => $field,
layout => 'horiz',
)
%>
</TABLE>
</TD>
</TR>
% }
<% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
<TR>
<TH BGCOLOR="#e8e8e8" COLSPAN=2> </TH>
</TR>
<TR>
<TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
</TR>
<% include( '/elements/tr-select-cust-fields.html' ) %>
</TABLE>
<BR>
<INPUT TYPE="submit" VALUE="Get Report">
</FORM>
<% include('/elements/footer.html') %>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('List packages');
</%init>
<%once>
my %label = (
'last_login' => 'Last login',
'last_logout' => 'Last logout',
);
</%once>
|