X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_acct.cgi;h=fb970e9669fed6ce03e6c9e3077a6c9ca4cf798b;hb=4e5a0655072be725acf00394186b93c96bba17ee;hp=dc4c4fdaa5b99ed98fea8fd395dd11ac389106e2;hpb=7d66bf30114486f1463b2899399364e780147b49;p=freeside.git diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index dc4c4fdaa..fb970e966 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -1,5 +1,5 @@ <% -# +# use strict; use vars qw( $cgi @svc_acct $sortby $query $mydomain ); @@ -7,10 +7,12 @@ use CGI; use CGI::Carp qw(fatalsToBrowser); use FS::UID qw(cgisuidsetup); use FS::Record qw(qsearch qsearchs dbdef); -use FS::CGI qw(header eidiot popurl table); +use FS::CGI qw(header idiot popurl table); use FS::svc_acct; use FS::cust_main; +$mydomain = ''; + $cgi = new CGI; &cgisuidsetup($cgi); @@ -52,13 +54,12 @@ if ( $query eq 'svcnum' ) { if ( scalar(@svc_acct) == 1 ) { my($svcnum)=$svc_acct[0]->svcnum; print $cgi->redirect(popurl(2). "view/svc_acct.cgi?$svcnum"); #redirect - exit; + #exit; } elsif ( scalar(@svc_acct) == 0 ) { #error - eidiot("Account not found"); + idiot("Account not found"); } else { my($total)=scalar(@svc_acct); - print $cgi->header( '-expires' => 'now' ), - header("Account Search Results",''), + print header("Account Search Results",''), "$total matching accounts found", &table(), <