[freeside-commits] freeside/httemplate/search searchbar.cgi, NONE, 1.1
Mark Wells
mark at wavetail.420.am
Wed Apr 27 01:31:03 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv23959/httemplate/search
Added Files:
searchbar.cgi
Log Message:
RT mobile UI, #11630
--- NEW FILE: searchbar.cgi ---
<%init>
my %searches = (
'customers' => 'cust_main.cgi?search_cust=',
'prospects' => 'prospect_main.html?search_prospect=',
'invoices' => 'cust_bill.html?invnum=',
'services' => 'cust_svc.html?search_svc=',
);
if ( FS::Conf->new->config('ticket_system') ) {
$searches{'tickets'} = FS::TicketSystem->baseurl . 'index.html?q=';
}
$cgi->param('search_for') =~ /^(\w+)$/;
my $search = $searches{$1} or die "unknown search type: '$1'\n";
my $q = $cgi->param('q'); # pass through unparsed
</%init>
<% $cgi->redirect($search . $q) %>
More information about the freeside-commits
mailing list