1 <% include('/elements/header-popup.html', "Enter additional $title") %>
3 <% include('/elements/error.html') %>
5 <FORM ACTION="<% $p1 %>process/cust_main_county-add.cgi" METHOD=POST>
7 <INPUT TYPE="hidden" NAME="taxnum" VALUE="<% $taxnum %>">
8 <INPUT TYPE="hidden" NAME="what" VALUE="<% $what %>">
10 <TEXTAREA NAME="expansion" COLS="50" ROWS="16"><% $expansion |h %></TEXTAREA>
13 <INPUT TYPE="submit" VALUE="Add <% $title %>">
22 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
24 $cgi->param('taxnum') =~ /^(\d+)$/ or die "Illegal taxnum";
28 if ( $cgi->param('error') ) {
29 $expansion = $cgi->param('expansion');
32 my $cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum})
33 or die "cust_main_county.taxnum $taxnum not found";
35 $cgi->param('what') =~ /^(\w+)$/ or die "Illegal what";
39 if ( $what eq 'city' ) {
41 } elsif ( $what eq 'county' ) {
44 die "unknown what $what";
45 #$title = 'States/Provinces';