diff options
author | ivan <ivan> | 2006-05-15 11:05:04 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-05-15 11:05:04 +0000 |
commit | 6d777ed1fafabab8c308c9ffa24f1dd48f33a9a5 (patch) | |
tree | f50ac0988e9bc6dcdf7e1ee346548b95e8d78868 /httemplate/search | |
parent | 2c757d7db4cb6a7b9655de13206fcc84fb7ce61f (diff) |
more ACL and re-skinning work, now with RT!
Diffstat (limited to 'httemplate/search')
-rwxr-xr-x | httemplate/search/cust_main.cgi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 8b70ff490..733e5dc15 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -186,6 +186,13 @@ if ( $cgi->param('browse') push @cust_main, @{&companysearch}; } + if ( $cgi->param('search_cust') ) { + $sortby = \*company_sort; + $orderby = "ORDER BY LOWER(company || ' ' || last || ' ' || first )"; + warn "smart searching for: ". $cgi->param('search_cust'); + push @cust_main, smart_search( 'search' => $cgi->param('search_cust') ); + } + @cust_main = grep { $_->ncancelled_pkgs || ! $_->all_pkgs } @cust_main if ! $cgi->param('cancelled') && ( @@ -313,7 +320,7 @@ END $conf->config('ticket_system-custom_priority_field-values'); } - print "<BR><BR>". $pager. &table(). <<END; + print "<BR><BR>". $pager. include('/elements/table-grid.html'). <<END; <TR> <TH></TH> <TH>(bill) name</TH> |