3 # $Id: cust_main_county-expand.cgi,v 1.6 1999-01-25 12:09:54 ivan Exp $
5 # ivan@sisd.com 97-dec-16
7 # Changes to allow page to work at a relative position in server
8 # bmccane@maxbaud.net 98-apr-3
10 # lose background, FS::CGI ivan@sisd.com 98-sep-2
12 # $Log: cust_main_county-expand.cgi,v $
13 # Revision 1.6 1999-01-25 12:09:54 ivan
14 # yet more mod_perl stuff
16 # Revision 1.5 1999/01/19 05:13:35 ivan
17 # for mod_perl: no more top-level my() variables; use vars instead
18 # also the last s/create/new/;
20 # Revision 1.4 1999/01/18 09:41:25 ivan
21 # all $cgi->header calls now include ( '-expires' => 'now' ) for mod_perl
24 # Revision 1.3 1998/12/17 06:17:01 ivan
25 # fix double // in relative URLs, s/CGI::Base/CGI/;
27 # Revision 1.2 1998/11/18 09:01:38 ivan
32 use vars qw( $cgi $taxnum $cust_main_county $p1 $delim $expansion );
34 use CGI::Carp qw(fatalsToBrowser);
35 use FS::UID qw(cgisuidsetup);
36 use FS::Record qw(qsearch qsearchs);
37 use FS::CGI qw(header menubar popurl);
38 use FS::cust_main_county;
44 if ( $cgi->param('error') ) {
45 $taxnum = $cgi->param('taxnum');
46 $delim = $cgi->param('delim');
47 $expansion = $cgi->param('expansion');
49 my ($query) = $cgi->keywords;
51 or die "Illegal taxnum!";
57 $cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum});
58 die "Can't expand entry!" if $cust_main_county->getfield('county');
61 print $cgi->header( '-expires' => 'now' ), header("Tax Rate (expand)", menubar(
62 'Main Menu' => popurl(2),
65 print qq!<FONT SIZE="+1" COLOR="#ff0000">Error: !, $cgi->param('error'),
67 if $cgi->param('error');
70 <FORM ACTION="${p1}process/cust_main_county-expand.cgi" METHOD=POST>
71 <INPUT TYPE="hidden" NAME="taxnum" VALUE="$taxnum">
74 print '<INPUT TYPE="radio" NAME="delim" VALUE="n"';
75 print ' CHECKED' if $delim eq 'n';
76 print '>line (rumor has it broken on some browsers) or',
77 '<INPUT TYPE="radio" NAME="delim" VALUE="s"';
78 print ' CHECKED' if $delim eq 's';
81 <BR><INPUT TYPE="submit" VALUE="Submit">
82 <BR><TEXTAREA NAME="expansion" ROWS=100>$expansion</TEXTAREA>