📄 inputmsisdn.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page errorPage="error.jsp" %>
<%
/**
判断session中的电话号码是否存在,
如果存在则不显示该页面,直接显示预订购处理页面
*/
String userMsisdn = "";
Object obj = session.getAttribute("msisdn");
//获得业务编码
String serviceId = request.getParameter("serviceid");
//缓存订购城市
String cityId = request.getParameter("cityid");
if (cityId != null) session.setAttribute("cityid",cityId);
if (obj != null)
{
userMsisdn = (String)obj;
response.sendRedirect("preprovision.jsp?serviceid="+ serviceId +"&msisdn=" + userMsisdn);
}
%>
<html>
<head>
<title>登录</TITLE>
<meta http-equiv='content-type' content='text/html; charset=gb2312'>
<!--LINK href="/style.css" rel=stylesheet type="text/css">
<script language="javascript" src="/style.js"></script-->
<LINK href="img/style.css" type=text/css rel=stylesheet>
<base href="<%=request.getRequestURL()%>" />
</head>
<script language="javascript">
function check()
{
var usermsisdn = form1.msisdn.value;
var pattern = /(13[4-9])\d{8}/;
flag = pattern.test(usermsisdn);
if (!flag)
{
alert("电话号码没有输入或输入的格式不正确,请重新输入!");
return false;
}
}
</script>
<body class=bg3 topmargin=5 marginheight=5 leftmargin=5 marginwidth=5>
<center>
<form name=form1 method=post action="preprovision.jsp" onsubmit="return check()">
<!-- 传递业务编号 -->
<input type="hidden" name="serviceid" value="<%=serviceId %>"/>
<table border="0" width="280" cellspacing="0" cellpadding="0">
<tr>
<td width="12"><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
<td width="128"><img src="img/notice.gif" width="188" height="62"></td>
<td width="22" valign="bottom"> </td>
<td width="88"><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
</tr>
</table>
<table border="0" width="280" cellspacing="0" cellpadding="0">
<tr>
<td width="7" rowspan=2><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
<td width="5" rowspan=2><div align="center"><img src="img/noticelt.gif" width="5" height="5"></div></td>
<td width="128" class="bg0"><img width="1" height="1" border=0 alt=""></td>
<td width="83" class="bg0"><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
<td width="5" rowspan=2><img src="img/noticert.gif" width="5" height="5"></td>
</tr>
<tr>
<td width="128" class="bg3"><img src="img/c.gif" width="1" height="4" border=0 alt=""></td>
<td width="83" class="bg3"><img src="img/c.gif" width="1" height="4" border=0 alt=""></td>
</tr>
</table>
<table border="0" width="280" cellspacing="0" cellpadding="0">
<tr>
<td width="7"> </td>
<td width="1" class="bg0"><img width="1" height="25" border=0 alt=""></td>
<td width="3" class="bg3"> </td>
<td width="268" class="bg3" align="center"><br/><br/>
<img src="img/pointred.gif" width="7" height="7">请输入你的电话号码:<br>
<input type="text" name="msisdn" value="" />
<br><br>
<INPUT class=unnamed1 type=image src="img/submit.gif" width="55" height="15"><br>
<td width="1" class="bg0"><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
</tr>
</table>
<table border="0" width="280" cellspacing="0" cellpadding="0">
<tr>
<td width="7" rowspan="2"><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
<td width="5" rowspan="2"><img src="img/noticelb.gif" width="5" height="5"></td>
<td width="263" class="bg3" height=5><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
<td width="5" rowspan="2"><img src="img/noticerb.gif" width="5" height="5"></td>
</tr>
<tr>
<td width="233" class="bg0" height=1><img src="img/c.gif" width="1" height="1" border=0 alt=""></td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -