X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fstates.cgi;h=cf2b46ee280355b6577a3f4cfee687230925e352;hp=cff2c9774aa512525a216e4c7acb7648643e64c5;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=673b9a458d9138523026963df6fa3b4683e09bae 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) %> ]