diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/search/report_svc_acct.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/search/report_svc_acct.html')
-rwxr-xr-x | httemplate/search/report_svc_acct.html | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/httemplate/search/report_svc_acct.html b/httemplate/search/report_svc_acct.html deleted file mode 100755 index c7fac4631..000000000 --- a/httemplate/search/report_svc_acct.html +++ /dev/null @@ -1,134 +0,0 @@ -<% include('/elements/header.html', $title ) %> - -<FORM ACTION="svc_acct.cgi" METHOD="GET"> -<INPUT TYPE="hidden" NAME="magic" VALUE="advanced"> -<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>"> - - <TABLE BGCOLOR="#cccccc" CELLSPACING=0> - - <TR> - <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH> - </TR> - -% unless ( $custnum ) { - <% include( '/elements/tr-select-agent.html', - 'curr_value' => scalar( $cgi->param('agentnum') ), - 'disable_empty' => 0, - ) - %> - -% # just this customer's domains? - <% include( '/elements/tr-select-domain.html', - 'element_name' => 'domsvc', - 'curr_value' => scalar( $cgi->param('domsvc') ), - '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 CLASS="background" COLSPAN=2> </TH> - </TR> - - <TR> - <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH> - </TR> - -% #move to /elements/tr-select-cust_pkg-fields if anything else needs it... - <TR> - <TD ALIGN="right">Package fields</TD> - <TD> - <SELECT NAME="cust_pkg_fields"> - <OPTION VALUE="">(none) - <OPTION VALUE="setup,last_bill,bill,cancel">Setup date | Last bill date | Next bill date | Cancel date - </SELECT> - </TD> - </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'); #? - -my $title = 'Account Report'; - -#false laziness w/report_cust_pkg.html -my $custnum = ''; -if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { - $custnum = $1; - my $cust_main = qsearchs({ - 'table' => 'cust_main', - 'hashref' => { 'custnum' => $custnum }, - 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, - }) or die "unknown custnum $custnum"; - $title .= ': '. $cust_main->name; -} - -</%init> -<%once> - -my %label = ( - 'last_login' => 'Last login', - 'last_logout' => 'Last logout', -); - -</%once> |