diff options
| author | ivan <ivan> | 2009-01-24 21:04:17 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2009-01-24 21:04:17 +0000 |
| commit | 6c4d9632f4d5cd1164ab9183932fbdf9137945aa (patch) | |
| tree | 78c627ac8f58231decd7a3f3e1e4df0dc2f6f62a /httemplate/search | |
| parent | a288c2733ae05f04af707133671e79f32efd9eb2 (diff) | |
add domain selection to advanced account report (side effect on RT#4623)
Diffstat (limited to 'httemplate/search')
| -rwxr-xr-x | httemplate/search/report_svc_acct.html | 13 | ||||
| -rwxr-xr-x | httemplate/search/svc_acct.cgi | 3 |
2 files changed, 14 insertions, 2 deletions
diff --git a/httemplate/search/report_svc_acct.html b/httemplate/search/report_svc_acct.html index e76325160..59fd1f8b3 100755 --- a/httemplate/search/report_svc_acct.html +++ b/httemplate/search/report_svc_acct.html @@ -8,12 +8,21 @@ <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')), + 'curr_value' => scalar( $cgi->param('agentnum') ), 'disable_empty' => 0, - ) + ) %> + <% 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'); diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index d8451f210..232439997 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -83,6 +83,9 @@ if ( $cgi->param('domain') ) { push @extra_sql, 'domsvc = '. $svc_domain->svcnum; } } +if ( $cgi->param('domsvc') =~ /^(\d+)$/ ) { + push @extra_sql, "domsvc = $1"; +} my $timepermonth = ''; |
