summaryrefslogtreecommitdiff
path: root/httemplate/misc/counties.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/counties.cgi')
-rw-r--r--httemplate/misc/counties.cgi17
1 files changed, 17 insertions, 0 deletions
diff --git a/httemplate/misc/counties.cgi b/httemplate/misc/counties.cgi
new file mode 100644
index 000000000..80ae616c9
--- /dev/null
+++ b/httemplate/misc/counties.cgi
@@ -0,0 +1,17 @@
+<%
+
+ my( $state, $country ) = $cgi->param('arg');
+
+ my @counties =
+ sort
+ map { s/[\n\r]//g; $_; }
+ map { $_->county; }
+ qsearch( 'cust_main_county',
+ { 'state' => $state,
+ 'country' => $country,
+ },
+ )
+ ;
+
+
+%>[ <%= join(', ', map { qq("$_") } @counties) %> ]