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