diff options
author | ivan <ivan> | 2010-05-22 19:13:11 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-05-22 19:13:11 +0000 |
commit | 92ef50c3759c1ec6e49cefd8041fd0c2b67226ba (patch) | |
tree | 75b266781244123e440495b411f6ccd84a52c009 /httemplate/search/svc_acct.cgi | |
parent | c3a7a85cc177d38b50621900f239447c92552a0c (diff) |
hide uid on account search
Diffstat (limited to 'httemplate/search/svc_acct.cgi')
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 09d117765..c13e4a2f4 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -91,13 +91,30 @@ if ( $conf->exists('report-showpasswords') #its a terrible idea push @style, ''; } -#maybe hide the UID if a flag isn't passed... its much less useful these days -push @header, 'Real Name', 'UID', 'Last Login'; -push @fields, 'finger', 'uid', 'last_login_text'; -push @links, $link, $link, $link; -$align .= 'llr'; -push @color, '', '', ''; -push @style, '', '', ''; +push @header, 'Real Name'; +push @fields, 'finger'; +push @links, $link; +$align .= 'l'; +push @color, ''; +push @style, ''; + +#hide the UID, its much less useful these days +unless ( $cgi->param('show_uid') ) { #XXX add a checkbox + push @header, 'UID'; + push @fields, 'uid'; + push @links, $link; + $align .= 'l'; + push @color, ''; + push @style, ''; +} + +push @header, 'Last Login'; +push @fields, 'last_login_text'; +push @links, $link; +$align .= 'r'; +push @color, ''; +push @style, ''; + for (qw( domain domsvc agentnum custnum popnum svcpart cust_fields )) { $search_hash{$_} = $cgi->param($_) if length($cgi->param($_)); |