?? 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 + -