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

📄 cust_check.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@page contentType="text/html;charset=gb2312"%>
<%@ page import="com.doone.uurm.WebAuth"%>
<%@ page import="com.doone.data.*"%>
<%@ page import="com.doone.fj1w.fjmgr.order.*"%>
<%@ page import="com.doone.iossp.FormBody"%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../common/style/main.css" rel="stylesheet" type="text/css" />
<link href="../../../common/style/sty01.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../../common/mainTool.js"></script>
<script id="checkInfoSrc" language="javascript" src=""></script>
<%request.setCharacterEncoding("gb2312");%>
<%
    String sPurvICode="NGB001001";
	WebAuth auth = WebAuth.getInstance(request);

    if ( ! auth.IsAuthed() ) {
	    out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
	    return;
    }
	else if ( ! auth.CheckPurv(sPurvICode) ) {
	    out.write("<script language=javascript src=\"../../../../common/script/RightForbidden.js\"></script>");
	    return;
	}
	
	/*取客户信息*/
	String prodOrderId = (String)session.getAttribute("PRODORDERID");	                    
	TF_BSSFlowRecord tf_BSSFlowRecord = TF_BSSFlowRecord.getBSSFlowRecord(new DacClient(),Long.parseLong(prodOrderId));
	String cityCode = tf_BSSFlowRecord.getRecordIDS("CITYCODE"); //城市编号

%>
<head>
<title>用户身份验证</title>
<script language="JavaScript">
  function init(){
     document.getElementById("card").disabled = true;
     document.getElementById("cardNo").disabled = true;
     document.getElementById("pass").disabled = true;	
  }
  
  function choosePass(){
     document.getElementById("Password").disabled = true;
     document.getElementById("pass").disabled = false;	
  }
  
  function choosePassword(){
     document.getElementById("Password").disabled = false;
     document.getElementById("pass").disabled = true;	
  }
  
  function check(){
     var pel = document.getElementsByName("checkType");
     var selected = "0";
     var checkType = "";
     for ( i=0; i< pel.length; i++){
        if (pel(i).checked == true && pel(i).value == "1") {
            checkType = "1";
            if(document.form1.Password.value == ""){
                alert("请输入业务密码!");
                document.form1.Password.focus();
                return false;
            }
        }
        else if(pel(i).checked == true &&  pel(i).value == "2"){
            checkType = "2";
        }
        else if(pel(i).checked == true &&  pel(i).value == "3"){
            checkType = "3";
        }
     }
     
     var passWord = document.form1.Password.value;
     checkInfoSrc.src = "checkInfo.jsp?&passWord="+passWord+"&checkType="+checkType;
	 countDown(5);	
  }
  
  function countDown(Secs) {
     if(Secs>0) {
        setTimeout("countDown("+Secs+"-1)",50);
     }
     else {
        if(document.all.isPass.value == "0"){
            alert("业务密码验证失败!");
	        return false;
        }
        else if(document.all.isPass.value == "1"){
            var cityCode = document.form1.cityCode.value;
            var url = "payInfo.jsp";
            self.opener.window.windowOpen(url,600,300,"PAY")
	        self.close()
	        return true;
        }
     }
  }
</script>
</head>
<body onload="init();">
<form action="" method="post" name="form1" >
<input type="hidden" name="cityCode" value="<%=cityCode%>"/>
<input type="hidden" name="isPass" value="0"/>
<table width="100%" height="100%" border="0" cellpadding="0"
	cellspacing="1" class="OuterTable">
	<tr>
		<td valign="top" class="InnerMain">
		<table width="100%" height="100%" border="0" cellpadding="1"
			cellspacing="1" class="OuterTable">
			<tr>
				<td width="15%">&nbsp;</td>
				<td width="35%">
				<div align="left"><input type="radio" value="1" checked="checked"
					name="checkType" id="pwd" onclick="choosePassword();"> 密码验证:</div>
				</td>
				<td width="50%">
				<div align="left"><input size="16" maxlength="20" type="password" name="Password" id="Password"></div>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
				<div align="left"><input type="radio" value="2" name="checkType"
					id="card"> 证件检查:</div>
				</td>
				<td>
				<div align="left"><input size="16" maxlength="20" value=""
					name="cardNo" id="cardNo"></div>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
				<div align="left"><input type="radio" value="3" name="checkType"
					id="other" onclick="choosePass();"> 其他:</div>
				</td>
				<td>
				<div align="left"><input type="checkbox" value="" name="pass"
					id="pass"> &nbsp;通过验证</div>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
				<div align="left"><input type="button" name="Submit" class="button"
					onClick="check();" style="width:80" value="确定"></div>
				</td>
				<td>
				<div align="left"><input type="button" name="cancel" class="button"
					onClick="self.close()" style="width:80" value="取消"></div>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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