summaryrefslogtreecommitdiff
path: root/httemplate/misc/states.cgi
diff options
context:
space:
mode:
authorivan <ivan>2006-04-03 09:46:57 +0000
committerivan <ivan>2006-04-03 09:46:57 +0000
commit929f432c766bbe3bdeed5b80818a12ddf6ec6339 (patch)
tree8129b16aa927db1e4182fcaaeea0c5ee9f050fd4 /httemplate/misc/states.cgi
parent36693c42cbaca86f6957d5ed6794624810018bb3 (diff)
have the UI use full country names, and state names outside the US...
Diffstat (limited to 'httemplate/misc/states.cgi')
-rw-r--r--httemplate/misc/states.cgi14
1 files changed, 2 insertions, 12 deletions
diff --git a/httemplate/misc/states.cgi b/httemplate/misc/states.cgi
index cff2c9774..63c494d15 100644
--- a/httemplate/misc/states.cgi
+++ b/httemplate/misc/states.cgi
@@ -1,16 +1,6 @@
<%
my $country = $cgi->param('arg');
+ my @output = states_hash($country);
- my @states =
- sort
- map { s/[\n\r]//g; $_; }
- map { $_->state; }
- qsearch( 'cust_main_county',
- { 'country' => $country },
- 'DISTINCT ON ( state ) *',
- )
- ;
-
-
-%>[ <%= join(', ', map { qq("$_") } @states) %> ]
+%>[ <%= join(', ', map { qq("$_") } @output) %> ]