blob: c58ce333324993e58312098348deff25b49a9195 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<%
#<!-- $Id: svc_acct_pop.cgi,v 1.4 2001-08-31 08:43:41 ivan Exp $ -->
use strict;
use vars qw( $cgi $p $svc_acct_pop );
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use FS::UID qw(cgisuidsetup);
use FS::Record qw(qsearch qsearchs);
use FS::CGI qw(header menubar table popurl);
use FS::svc_acct_pop;
$cgi = new CGI;
&cgisuidsetup($cgi);
$p = popurl(2);
print $cgi->header( '-expires' => 'now' ), header('POP Listing', menubar(
'Main Menu' => $p,
)), "Points of Presence<BR><BR>", &table(), <<END;
<TR>
<TH></TH>
<TH>City</TH>
<TH>State</TH>
<TH>Area code</TH>
<TH>Exchange</TH>
<TH>Local</TH>
</TR>
END
foreach $svc_acct_pop ( sort {
#$a->getfield('popnum') <=> $b->getfield('popnum')
$a->state cmp $b->state || $a->city cmp $b->city
|| $a->ac <=> $b->ac || $a->exch <=> $b->exch || $a->loc <=> $b->loc
} qsearch('svc_acct_pop',{}) ) {
my($hashref)=$svc_acct_pop->hashref;
print <<END;
<TR>
<TD><A HREF="${p}edit/svc_acct_pop.cgi?$hashref->{popnum}">
$hashref->{popnum}</A></TD>
<TD><A HREF="${p}edit/svc_acct_pop.cgi?$hashref->{popnum}">
$hashref->{city}</A></TD>
<TD><A HREF="${p}edit/svc_acct_pop.cgi?$hashref->{popnum}">
$hashref->{state}</A></TD>
<TD><A HREF="${p}edit/svc_acct_pop.cgi?$hashref->{popnum}">
$hashref->{ac}</A></TD>
<TD><A HREF="${p}edit/svc_acct_pop.cgi?$hashref->{popnum}">
$hashref->{exch}</A></TD>
<TD><A HREF="${p}edit/svc_acct_pop.cgi?$hashref->{popnum}">
$hashref->{loc}</A></TD>
</TR>
END
}
print <<END;
<TR>
<TD COLSPAN=5><A HREF="${p}edit/svc_acct_pop.cgi"><I>Add new POP</I></A></TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
END
%>
|