diff options
author | ivan <ivan> | 1998-12-17 04:26:04 +0000 |
---|---|---|
committer | ivan <ivan> | 1998-12-17 04:26:04 +0000 |
commit | d8a27601d0ef74bd05c2355361ed5b7766f15208 (patch) | |
tree | e9d2a0f9e18d473f39e6e3fdd031336c74e0d769 | |
parent | 819a983adc011bdc6eb2f3aaabd4ef1da1d4a8d8 (diff) |
use CGI; no relative URLs
-rwxr-xr-x | htdocs/browse/part_referral.cgi | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/htdocs/browse/part_referral.cgi b/htdocs/browse/part_referral.cgi index b16fa896d..5472a6e66 100755 --- a/htdocs/browse/part_referral.cgi +++ b/htdocs/browse/part_referral.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# part_referral.cgi: Browse part_referral +# $Id: part_referral.cgi,v 1.2 1998-12-17 04:26:04 ivan Exp $ # # ivan@sisd.com 98-feb-23 # @@ -8,47 +8,53 @@ # bmccane@maxbaud.net 98-apr-3 # # lose background, FS::CGI ivan@sisd.com 98-sep-2 +# +# $Log: part_referral.cgi,v $ +# Revision 1.2 1998-12-17 04:26:04 ivan +# use CGI; no relative URLs +# use strict; -use CGI::Base; +use CGI; use FS::UID qw(cgisuidsetup swapuid); use FS::Record qw(qsearch); -use FS::CGI qw(header menubar); +use FS::CGI qw(header menubar popurl table); -my($cgi) = new CGI::Base; -$cgi->get; +my $cgi = new CGI; &cgisuidsetup($cgi); SendHeaders(); # one guess. print header("Referral Listing", menubar( - 'Main Menu' => '../', - 'Add new referral' => "../edit/part_referral.cgi", -)), <<END; - <BR>Click on referral number to edit. - <TABLE BORDER> + 'Main Menu' => popurl(2), +# 'Add new referral' => "../edit/part_referral.cgi", +)), table, <<END; <TR> - <TH><FONT SIZE=-1>Referral #</FONT></TH> - <TH>Referral</TH> + <TH COLSPAN=2>Referral</TH> </TR> END my($part_referral); +my($p)=popurl(2); foreach $part_referral ( sort { $a->getfield('refnum') <=> $b->getfield('refnum') } qsearch('part_referral',{}) ) { my($hashref)=$part_referral->hashref; print <<END; <TR> - <TD><A HREF="../edit/part_referral.cgi?$hashref->{refnum}"> + <TD><A HREF="$p/edit/part_referral.cgi?$hashref->{refnum}"> $hashref->{refnum}</A></TD> - <TD>$hashref->{referral}</TD> + <TD><A HREF="$p/edit/part_referral.cgi?$hashref->{refnum}"> + $hashref->{referral}</A></TD> </TR> END } print <<END; + <TR> + <TD COLSPAN=2><A HREF="$p/edit/part_referral.cgi"><I>Add new referral</I></A></TD> + </TR> </TABLE> </CENTER> </BODY> |