X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_acct.cgi;h=c3ddd660bf9c202545af238878fb43f39fa64afb;hb=dc1891ff9a6e6c4b4545fe7f786af6bd0f28b2cf;hp=d7619493aa41f2f51c1a9492d6a6f9665e15fc20;hpb=6c08340010e68fa7ca0989f4902761c8d0db941f;p=freeside.git diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index d7619493a..c3ddd660b 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -69,12 +69,12 @@ my $link_cust = sub { my %search_hash = (); my @extra_sql = (); -my @header = ( '#', 'Service', 'Account' ); -my @fields = ( 'svcnum', 'svc', 'email' ); -my @links = ( $link, $link, $link ); -my $align = 'rll'; -my @color = ( '', '', '' ); -my @style = ( '', '', '' ); +my @header = ( 'Service', 'Account' ); +my @fields = ( 'svc', 'email' ); +my @links = ( $link, $link ); +my $align = 'll'; +my @color = ( '', '' ); +my @style = ( '', '' ); my @footer = (); my $conf = new FS::Conf; @@ -151,7 +151,7 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { push @color, ''; push @style, ''; - @footer = ( '', 'Total', '', '', '', + @footer = ( 'Total', '', '', '', sub { format_time($tot_time) }, #time ); @@ -201,6 +201,8 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { ; } + push @footer, '', ''; + } } elsif ( $cgi->param('magic') =~ /^nologin$/ ) { @@ -260,13 +262,13 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { } $cgi->param('username') =~ /^([\w\-\.\&]+)$/; #untaint username_text - my $username = $1; + my $username = lc($1); - push @username_sql, "username ILIKE '$username'" + push @username_sql, "LOWER(username) LIKE '$username'" if $username_type{'Exact'} || $username_type{'Fuzzy'}; - push @username_sql, "username ILIKE '\%$username\%'" + push @username_sql, "LOWER(username) LIKE '\%$username\%'" if $username_type{'Substring'} || $username_type{'All'};