⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 preprovision.jsp

📁 一个手机站点采用WML 等编写开发,具体可以看代码,比较简单
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.intacpurun.wsms.srvclogic.*" %>
<%@ page import="com.intacpurun.wsms.comm.vo.*"%>
<%@ page import="java.net.*"%>
<%@ page errorPage="error.jsp" %>
<%
  String serviceId = request.getParameter("serviceid");
  String userMsisdn = request.getParameter("msisdn");
  //判断用户是否已经订购过该业务
  boolean isProvision = ServiceMgr.isProvision(userMsisdn,serviceId);

  if (isProvision)
  {
    RequestDispatcher patcher = request.getRequestDispatcher("prompt.jsp");
    request.setAttribute("info","你已经订购过该业务,无需再次订购!请点击确定返回!");
    request.setAttribute("url","serviceview.jsp");

    patcher.forward(request,response);
  }

  session.setAttribute("msisdn",userMsisdn);

  //获得业务介绍信息
  int tempId =Integer.parseInt(serviceId);
  ServiceVo serviceVo = ServiceMgr.getServiceInfo(tempId);

  //获得附加码
  String aidedCode = ServiceMgr.getConfirmCode();
  session.setAttribute("aidedcode",aidedCode);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>服务信息</TITLE>

<META http-equiv=Content-Type content="text/html; charset=GBK">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
  <LINK href="img/css.htm" type=text/css rel=stylesheet>
  <LINK href="img/mon2004.htm" type=text/css rel=stylesheet>
<STYLE type=text/css>.style2 {
	COLOR: #003399
}
.style3 {
	COLOR: #000000
}
</STYLE>

<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>

<FORM name=postForm  action="provision.jsp"  method=post>
  <input type="hidden" name="serviceid" value="<%=serviceId%>"/>
  <input type="hidden" name="msisdn" value="<%=userMsisdn%>" />
<table align="center">
    <TR><TD valign="top" align="center" height="53">
<TABLE cellSpacing=0 cellPadding=0 width=473 align=center border=0>
        <TBODY>
          <TR>
            <TD align=middle width=300> <TABLE cellSpacing=0 cellPadding=0 width=470 border=0>
                <TBODY>
                  <TR>
                    <TD width=470 background=img/line.gif height=5></TD>
                  </TR>
                  <TR>
                    <TD vAlign=top align=middle> <TABLE cellSpacing=3 cellPadding=0 width="100%" border=0>
                        <TBODY>
                          <TR>
                            <TD align=middle colSpan=2 height=28><FONT
                  color=red><FONT color=red><STRONG></FONT></STRONG></FONT></TD>
                          </TR>
                          <TR bgColor=#deecf7>
                            <TD colSpan=2 height=29><SPAN class=td><STRONG>&nbsp;&nbsp;
                              天气预报</STRONG></A></SPAN></TD>
                          </TR>
                          <TR>
                            <TD width="23%" height=137 align=middle><IMG height=83 src="img/service_pic_01.gif" width=81></TD>
                            <TD width="77%"> <TABLE cellSpacing=0 cellPadding=0 width="101%">
                                <TBODY>
                                  <TR>
                                    <TD class=tt><STRONG>服务名称:</STRONG><%=serviceVo.getName() %></TD>
                                  </TR>
                                  <TR>
                                    <TD class=tt width="95%"><STRONG>服务说明: </STRONG><%=serviceVo.getDesc() %><!--提供24小时天气预报。(每天晚上6-7时发布。)--></TD>
                                  </TR>
                                  <TR>
                                    <TD class=tt><STRONG>手机帐户资费:</STRONG><%=serviceVo.getPriceInfo() %> <!--每月收费3.0元-->
                                    </TD>
                                  </TR>
                                  <TR>
                                    <TD class=tt><STRONG>业务状态:</STRONG>收费 </TD>
                                  </TR>
                                  <TR>
                                    <TD class=tt><STRONG>客服信息:</STRONG><SPAN class=tt><BR>
                                      北京互联信息服务有限公司<BR>
                                      客服电话:12345678 </SPAN></TD>
                                  </TR>
                                </TBODY>
                              </TABLE></TD>
                          </TR>
                          <TR>
                            <TD colSpan=2> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                                <TBODY>
                                  <TR>
                                    <TD bgColor=#ebebeb> <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#ffffff border=0>
                                        <TBODY>
                                          <TR>
                                            <TD width="38%"> <TABLE cellSpacing=0 cellPadding=0 width="100%"  border=0>
                                                <TBODY>
                                                  <TR>
                                                    <TD width="87%" bgColor=#b6c2d9>
                                                      <DIV align=right>手机号码</DIV></TD>
                                                    <TD width="13%"><IMG height=23 src="img/head.gif" width=26></TD>
                                                  </TR>
                                                </TBODY>
                                              </TABLE></TD>
                                            <TD width="62%"><INPUT disabled maxLength=11 size=14 value="<%=userMsisdn %>" name=msisdn> </TD>
                                          </TR>
                                          <TR>
                                            <TD> <TABLE cellSpacing=0 cellPadding=0 width=170 border=0>
                                                <TBODY>
                                                  <TR>
                                                    <TD width=144 bgColor=#b6c2d9>
                                                      <DIV class=style3 align=right>短信确认码</DIV></TD>
                                                    <TD width=26><IMG height=23 src="img/head.gif" width=26></TD>
                                                  </TR>
                                                </TBODY>
                                              </TABLE></TD>
                                            <TD><input  maxLength=8 size=14 name=password>
                                              <A onclick="window.open('getconfirmcode.jsp?msisdn=<%=userMsisdn %>','','width=300,height=300,left=400,top=300,border=0')"
                              href="#" ><FONT color=red>“获取随机密码”</FONT></A> </TD>
                                          </TR>
                                          <TR>
                                            <TD width=115 height=23> <TABLE cellSpacing=0 cellPadding=0 width=170 border=0>
                                                <TBODY>
                                                  <TR>
                                                    <TD width=144 bgColor=#b6c2d9>
                                                      <DIV align=right><SPAN class=style3>附加码</SPAN></DIV></TD>
                                                    <TD width=26><IMG height=23 src="img/head.gif" width=26></TD>
                                                  </TR>
                                                </TBODY>
                                              </TABLE></TD>
                                            <TD><INPUT class=box maxLength=6 size=14  name=aidedcode>
                                              <%=aidedCode %></TD>
                                          </TR>
                                        </TBODY>
                                      </TABLE></TD>
                                  </TR>
                                </TBODY>
                              </TABLE></TD>
                          </TR>
                        </TBODY>
                      </TABLE></TD>
                  </TR>
                  <TR>
                    <TD><IMG height=1 src="img/loss_3.gif" width=470></TD>
                  </TR>
                  <TR bgColor=#dfdfd8>
                    <TD align=middle height=30> <TABLE cellSpacing=0 cellPadding=0 width=460 align=center>
                        <TBODY>
                          <TR align=middle>
                            <TD align=middle height=29><INPUT  type=image  height=22 width=83 src="img/bot-next.gif"
                  border=0 name=imageField> &nbsp;&nbsp;</TD>
                          </TR>
                        </TBODY>
                      </TABLE></TD>
                  </TR>
                  <TR>
                    <TD><IMG height=1 src="img/loss_3.gif" width=470></TD>
                  </TR>
                </TBODY>
              </TABLE></TD>
          </TR>
        </TBODY>
      </TABLE></TD></TR><TR></table>

<DIV align=center><BR>
<TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
  <TBODY>
  <TR><TABLE cellSpacing=0 cellPadding=0 width=460 align=center bgColor=#1b1b1b
border=0>
  <TBODY>
  <TR>
    <TD height=2></TD></TR></TBODY></TABLE>
<TABLE height=26 cellSpacing=0 cellPadding=0 width=460 align=center
bgColor=#f7f7f7 border=0>
  <TBODY>
  <TR>
    <TD align=middle height=26>版权所有 &copy; <A href="http://www.chinamobile.com/"
      target=_blank>中国移动通信集团公司</A> <A
      href="http://www.chinamobilehk.com/">中国移动(香港)有限公司</A></TD></TR></TBODY></TABLE>
 </TR></TBODY></TABLE></DIV></TR></TABLE>
 </FORM>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -