[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi provision_list.html, 1.5.10.2, 1.5.10.3 provision_svc_phone.html, 1.1.2.4, 1.1.2.5 selfservice.cgi, 1.46.2.9, 1.46.2.10
Erik Levinson
levinse at wavetail.420.am
Wed Jul 13 20:46:20 PDT 2011
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv11866/fs_selfservice/FS-SelfService/cgi
Modified Files:
Tag: FREESIDE_2_1_BRANCH
provision_list.html provision_svc_phone.html selfservice.cgi
Log Message:
view/set svc_phone forwardst and email from self-service, RT13622
Index: selfservice.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/selfservice.cgi,v
retrieving revision 1.46.2.9
retrieving revision 1.46.2.10
diff -u -w -d -r1.46.2.9 -r1.46.2.10
--- selfservice.cgi 26 Dec 2010 04:09:35 -0000 1.46.2.9
+++ selfservice.cgi 14 Jul 2011 03:46:18 -0000 1.46.2.10
@@ -700,7 +700,7 @@
my $result = part_svc_info(
'session_id' => $session_id,
- map { $_ => $cgi->param($_) } qw( pkgnum svcpart ),
+ map { $_ => $cgi->param($_) } qw( pkgnum svcpart svcnum ),
);
die $result->{'error'} if exists $result->{'error'} && $result->{'error'};
@@ -734,7 +734,7 @@
'session_id' => $session_id,
'bulkdid' => [ @bulkdid ],
'countrycode' => '1',
- map { $_ => $cgi->param($_) } qw( pkgnum svcpart phonenum )
+ map { $_ => $cgi->param($_) } qw( pkgnum svcpart phonenum svcnum email forwarddst )
);
}
@@ -743,7 +743,7 @@
return {
$cgi->Vars,
%{ part_svc_info( 'session_id' => $session_id,
- map { $_ => $cgi->param($_) } qw( pkgnum svcpart )
+ map { $_ => $cgi->param($_) } qw( pkgnum svcpart svcnum )
)
},
'error' => $result->{'error'},
Index: provision_svc_phone.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/provision_svc_phone.html,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -w -d -r1.1.2.4 -r1.1.2.5
--- provision_svc_phone.html 26 Dec 2010 04:09:35 -0000 1.1.2.4
+++ provision_svc_phone.html 14 Jul 2011 03:46:18 -0000 1.1.2.5
@@ -25,17 +25,28 @@
if($lnp) {
$OUT .= "<table>"
. qq!<input type="hidden" name="lnp" value="1">!
- . lnp_textfield(phonenum,"Phone Number")
+ . lnp_textfield("phonenum","Phone Number")
. lnp_textfield("lnp_desired_due_date","Requested Port-In Date")
. lnp_textfield("lnp_other_provider","Current Provider")
. lnp_textfield("lnp_other_provider_account","Current Provider's Account #")
. "</table>";
} else {
+ if ( $svcnum ) {
+ $OUT .= qq!<INPUT TYPE="hidden" NAME="svcnum" VALUE="$svcnum">!;
+ $OUT .= qq!<INPUT TYPE="hidden" NAME="phonenum" VALUE="">!;
+ $OUT .= qq!<TABLE><TR><TD>Email</TD><TD><INPUT TYPE="text" NAME="email"
+ VALUE="$email"></TD></TR>
+ <TR><TD>Forward to</TD><TD>
+ <INPUT TYPE="text" NAME="forwarddst" VALUE="$forwarddst">
+ </TD></TR></TABLE>!;
+ }
+ else {
didselector('field' => 'phonenum',
'svcpart' => $svcpart,
'bulknum' => $numavail,
);
}
+}
%>
<BR><BR><INPUT TYPE="submit" VALUE="Setup">
</FORM>
Index: provision_list.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/provision_list.html,v
retrieving revision 1.5.10.2
retrieving revision 1.5.10.3
diff -u -w -d -r1.5.10.2 -r1.5.10.3
--- provision_list.html 17 Dec 2010 19:32:36 -0000 1.5.10.2
+++ provision_list.html 14 Jul 2011 03:46:18 -0000 1.5.10.3
@@ -39,6 +39,14 @@
"$td><B>". $cust_svc->{label}[1]. '</B>';
$OUT .= '<BR><I>password: '. encode_entities($cust_svc->{_password}). '</I>'
if exists($cust_svc->{_password});
+ if ( exists($cust_svc->{svchash}) ) {
+ $OUT .= '<BR><I>Email: '. encode_entities($cust_svc->{svchash}->{email}). '</I>'
+ if exists($cust_svc->{svchash}->{email})
+ && length($cust_svc->{svchash}->{email});
+ $OUT .= '<BR><I>Forward to: '. encode_entities($cust_svc->{svchash}->{forwarddst}). '</I>'
+ if exists($cust_svc->{svchash}->{forwarddst})
+ && length($cust_svc->{svchash}->{forwarddst});
+ }
$OUT .= '</TD>'.
"$td><FONT SIZE=-1>";
@@ -50,7 +58,8 @@
unless ( $cust_svc->{'svcnum'} == $svcnum ) {
$OUT .= qq!(<A HREF="javascript:areyousure('${url}delete_svc;svcnum=$cust_svc->{svcnum}', 'This will permanently delete the $cust_svc->{label}[1] $cust_svc->{label}[0]. Are you sure?')">!.
'delete</A>)';
-
+ $OUT .= qq!<BR>(<A HREF="${url}provision_svc;pkgnum=$pkg->{pkgnum};svcpart=$cust_svc->{'svcpart'};svcnum=$cust_svc->{'svcnum'}">modify</A>)!
+ if ( exists($cust_svc->{svchash}) && $cust_svc->{label}[2] eq 'svc_phone' );
}
$OUT .= '</FONT></TD></TR>';
$col = $col eq $col1 ? $col2 : $col1;
More information about the freeside-commits
mailing list