[freeside-commits] freeside/httemplate/view svc_phone.cgi, 1.12.2.4, 1.12.2.5
Ivan,,,
ivan at wavetail.420.am
Thu Mar 11 19:36:49 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv12512/httemplate/view
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_phone.cgi
Log Message:
add location to svc_phone, RT#7047
Index: svc_phone.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_phone.cgi,v
retrieving revision 1.12.2.4
retrieving revision 1.12.2.5
diff -u -w -d -r1.12.2.4 -r1.12.2.5
--- svc_phone.cgi 8 Mar 2010 07:02:59 -0000 1.12.2.4
+++ svc_phone.cgi 12 Mar 2010 03:36:47 -0000 1.12.2.5
@@ -16,6 +16,7 @@
<%init>
my $conf = new FS::Conf;
+my $countrydefault = $conf->config('countrydefault') || 'US';
my @fields = qw( countrycode phonenum );
push @fields, 'domain' if $conf->exists('svc_phone-domain');
@@ -25,6 +26,27 @@
my $svc_phone = shift;
###
+ # E911 Info
+ ###
+
+ my $loc = $svc_phone->cust_location_or_main;
+
+ my $e911 =
+ 'E911 Information'.
+ &ntable("#cccccc"). '<TR><TD>'. ntable("#cccccc",2).
+ '<TR><TD>Location</TD>'.
+ '<TD BGCOLOR="#FFFFFF">'.
+ $loc->location_label( 'join_string' => '<BR>',
+ 'double_space' => ' ',
+ 'escape_function' => \&encode_entities,
+ 'countrydefault' => $countrydefault,
+ ).
+ '</TD></TR>'.
+ '</TABLE></TD></TR></TABLE>'.
+ '<BR>'
+ ;
+
+ ###
# Devices
###
@@ -123,6 +145,7 @@
# concatenate & return
###
+ $e911.
$devices.
join(' | ', @links ). '<BR>'.
join(' | ', @ilinks). '<BR>';
More information about the freeside-commits
mailing list