diff options
Diffstat (limited to 'httemplate/misc/areacodes.cgi')
-rw-r--r-- | httemplate/misc/areacodes.cgi | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/httemplate/misc/areacodes.cgi b/httemplate/misc/areacodes.cgi deleted file mode 100644 index 69c9573c3..000000000 --- a/httemplate/misc/areacodes.cgi +++ /dev/null @@ -1,24 +0,0 @@ -%# [ <% join(', ', map { qq("$_") } @areacodes) %> ] -<% objToJson(\@areacodes) %> -<%init> - -my( $state, $svcpart ) = $cgi->param('arg'); - -my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); -die "unknown svcpart $svcpart" unless $part_svc; - -my @exports = $part_svc->part_export_did; -if ( scalar(@exports) > 1 ) { - die "more than one DID-providing export attached to svcpart $svcpart"; -} elsif ( ! @exports ) { - die "no DID providing export attached to svcpart $svcpart"; -} -my $export = $exports[0]; - -my $something = $export->get_dids('state'=>$state); - -#warn Dumper($something); - -my @areacodes = @{ $something }; - -</%init> |