diff options
| author | ivan <ivan> | 2002-02-10 16:05:22 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2002-02-10 16:05:22 +0000 |
| commit | a4c96748eb6eab29a70f3a944c6520283a635c78 (patch) | |
| tree | 8feec69d7a64f5f7c88aaffae8440c19e506123b /httemplate/search | |
| parent | 22a35047ecdffff80110e06cc08fc84f9ddba9b0 (diff) | |
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
*finally* seems to be working under Mason. sheesh.
Diffstat (limited to 'httemplate/search')
| -rwxr-xr-x | httemplate/search/cust_bill.cgi | 6 | ||||
| -rwxr-xr-x | httemplate/search/cust_main.cgi | 6 | ||||
| -rwxr-xr-x | httemplate/search/cust_pay.cgi | 6 | ||||
| -rwxr-xr-x | httemplate/search/cust_pkg.cgi | 6 | ||||
| -rwxr-xr-x | httemplate/search/svc_acct.cgi | 6 | ||||
| -rwxr-xr-x | httemplate/search/svc_acct_sm.cgi | 3 | ||||
| -rwxr-xr-x | httemplate/search/svc_domain.cgi | 7 |
7 files changed, 39 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill.cgi b/httemplate/search/cust_bill.cgi index 0c9f27f42..d83851804 100755 --- a/httemplate/search/cust_bill.cgi +++ b/httemplate/search/cust_bill.cgi @@ -50,8 +50,14 @@ if ( scalar(@cust_bill) == 1 ) { my $invnum = $cust_bill[0]->invnum; print $cgi->redirect(popurl(2). "view/cust_bill.cgi?$invnum"); #redirect } elsif ( scalar(@cust_bill) == 0 ) { +%> +<!-- mason kludge --> +<% eidiot("Invoice not found."); } else { +%> +<!-- mason kludge --> +<% my $total = scalar(@cust_bill); print header("Invoice Search Results", menubar( 'Main Menu', popurl(2) diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 89e325d09..b962c7c42 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -152,8 +152,14 @@ if ( scalar(@cust_main) == 1 && ! $cgi->param('referral_custnum') ) { } #exit; } elsif ( scalar(@cust_main) == 0 ) { +%> +<!-- mason kludge --> +<% eidiot "No matching customers found!\n"; } else { +%> +<!-- mason kludge --> +<% $total ||= scalar(@cust_main); print header("Customer Search Results",menubar( diff --git a/httemplate/search/cust_pay.cgi b/httemplate/search/cust_pay.cgi index 8ebd65413..b5bdf8296 100755 --- a/httemplate/search/cust_pay.cgi +++ b/httemplate/search/cust_pay.cgi @@ -13,11 +13,17 @@ if (0) { # my $invnum = $cust_bill[0]->invnum; # print $cgi->redirect(popurl(2). "view/cust_bill.cgi?$invnum"); #redirect } elsif ( scalar(@cust_pay) == 0 ) { +%> +<!-- mason kludge --> +<% idiot("Check # not found."); #exit; } else { my $total = scalar(@cust_pay); my $s = $total > 1 ? 's' : ''; +%> +<!-- mason kludge --> +<% print header("Check # Search Results", menubar( 'Main Menu', popurl(2) )), "$total matching check$s found<BR>", &table(), <<END; diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index 6b25fec03..54e02ce9d 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -77,8 +77,14 @@ if ( scalar(@cust_pkg) == 1 ) { print $cgi->redirect(popurl(2). "view/cust_pkg.cgi?$pkgnum"); #exit; } elsif ( scalar(@cust_pkg) == 0 ) { #error +%> +<!-- mason kludge --> +<% eidiot("No packages found"); } else { +%> +<!-- mason kludge --> +<% $total ||= scalar(@cust_pkg); #begin pager diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index a3fed8384..0918275d7 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -63,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 +%> +<!-- mason kludge --> +<% idiot("Account not found"); } else { +%> +<!-- mason kludge --> +<% $total ||= scalar(@svc_acct); #begin pager diff --git a/httemplate/search/svc_acct_sm.cgi b/httemplate/search/svc_acct_sm.cgi index bcfe44cfc..4ee300612 100755 --- a/httemplate/search/svc_acct_sm.cgi +++ b/httemplate/search/svc_acct_sm.cgi @@ -25,6 +25,9 @@ if ( scalar(@svc_acct_sm) == 1 ) { my($svcnum)=$svc_acct_sm[0]->svcnum; print $cgi->redirect(popurl(2). "view/svc_acct_sm.cgi?$svcnum"); } elsif ( scalar(@svc_acct_sm) > 1 ) { +%> +<!-- mason kludge --> +<% print header('Mail Alias Search Results'), &table(), <<END; <TR> <TH>Mail to<BR><FONT SIZE=-1>(click to view mail alias)</FONT></TH> diff --git a/httemplate/search/svc_domain.cgi b/httemplate/search/svc_domain.cgi index 334b6c0b7..fb372db14 100755 --- a/httemplate/search/svc_domain.cgi +++ b/httemplate/search/svc_domain.cgi @@ -35,9 +35,14 @@ if ( scalar(@svc_domain) == 1 ) { print $cgi->redirect(popurl(2). "view/svc_domain.cgi?". $svc_domain[0]->svcnum); #exit; } elsif ( scalar(@svc_domain) == 0 ) { +%> +<!-- mason kludge --> +<% eidiot "No matching domains found!\n"; } else { - +%> +<!-- mason kludge --> +<% my($total)=scalar(@svc_domain); print header("Domain Search Results",''), <<END; |
