summaryrefslogtreecommitdiff
path: root/httemplate/misc/states.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/states.cgi')
-rw-r--r--httemplate/misc/states.cgi23
1 files changed, 7 insertions, 16 deletions
diff --git a/httemplate/misc/states.cgi b/httemplate/misc/states.cgi
index cff2c9774..cf2b46ee2 100644
--- a/httemplate/misc/states.cgi
+++ b/httemplate/misc/states.cgi
@@ -1,16 +1,7 @@
-<%
-
- my $country = $cgi->param('arg');
-
- my @states =
- sort
- map { s/[\n\r]//g; $_; }
- map { $_->state; }
- qsearch( 'cust_main_county',
- { 'country' => $country },
- 'DISTINCT ON ( state ) *',
- )
- ;
-
-
-%>[ <%= join(', ', map { qq("$_") } @states) %> ]
+%
+%
+% my $country = $cgi->param('arg');
+% my @output = states_hash($country);
+%
+%
+[ <% join(', ', map { qq("$_") } @output) %> ]