X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_acct.cgi;h=daf025a38de8a6ece81e520b5e64eb1a29b1916d;hb=4ea362bfa2d2ea984996439e0c32cb4ea6dda7ee;hp=8d532961832b775e81ec18117b076821cbe5e102;hpb=1fd6d8cf5d7854860ef4fd10ed89828e0c04ec39;p=freeside.git
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi
index 8d5329618..daf025a38 100755
--- a/httemplate/search/svc_acct.cgi
+++ b/httemplate/search/svc_acct.cgi
@@ -1,4 +1,3 @@
-
<%
my $mydomain = '';
@@ -64,8 +63,14 @@ if ( scalar(@svc_acct) == 1 ) {
print $cgi->redirect(popurl(2). "view/svc_acct.cgi?$svcnum"); #redirect
#exit;
} elsif ( scalar(@svc_acct) == 0 ) { #error
+%>
+
+<%
idiot("Account not found");
} else {
+%>
+
+<%
$total ||= scalar(@svc_acct);
#begin pager
@@ -95,7 +100,7 @@ if ( scalar(@svc_acct) == 1 ) {
}
#end pager
- print header("Account Search Results",''),
+ print header("Account Search Results",menubar('Main Menu'=>popurl(2))),
"$total matching accounts found
$pager",
&table(), <
@@ -136,7 +141,7 @@ END
my $conf = new FS::Conf;
unless ( $mydomain = $conf->config('domain') ) {
die "No legacy domain config file and no svc_domain.svcnum record ".
- "for svc_acct.domsvc: ". $cust_svc->domsvc;
+ "for svc_acct.domsvc: ". $svc_acct->domsvc;
}
}
$domain = "$mydomain*";
@@ -229,7 +234,7 @@ sub uid_sort {
sub usernamesearch {
- $cgi->param('username') =~ /^([\w\d\-]+)$/; #untaint username_text
+ $cgi->param('username') =~ /^([\w\-\.\&]+)$/; #untaint username_text
my($username)=$1;
[ qsearch('svc_acct',{'username'=>$username}) ];