blob: 9a07e7da124be0850213ca4565d9b82e85451f50 (
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
|
<%= $url = "$selfurl?session=$session_id;action=";
$heading2 = $lnp ? "Port-In Number" : "Setup phone number";
'';
%>
<%= include('header', $heading2) %>
<%=
sub lnp_textfield {
my ($name,$label) = (shift,shift);
qq!<tr><td>$label</td><td><input type="text" name="$name"></td></tr>!;
}
if($error) {
$OUT .= qq!<div style="color:red; font-size: 115%">$error</div>!;
}
%>
<FORM name="OneTrueForm" action="<%= $url %>" METHOD="POST">
<INPUT TYPE="hidden" NAME="session" VALUE="<%= $session_id %>">
<INPUT TYPE="hidden" NAME="action" VALUE="process_svc_phone">
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<%= $pkgnum %>">
<INPUT TYPE="hidden" NAME="svcpart" VALUE="<%= $svcpart %>">
<INPUT TYPE="hidden" NAME="numavail" VALUE="<%= $numavail %>">
<%=
if($lnp) {
$OUT .= "<table>"
. qq!<input type="hidden" name="lnp" value="1">!
. 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>
<%= include('footer') %>
|