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

📄 demandinfo.jsp

📁 自己制作的联通CRM,支持客户分类,管理,升级,积分管理等等..
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
	<link href="${pageContext.request.contextPath}/image/main.css" rel="stylesheet" type="text/css">
	<script language="javascript" src="${pageContext.request.contextPath}/image/CheckOperationForm.js"></script>
	<title>1</title>
    <style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
    </style>
</head>
<script language="javascript">
	
function setDisplay(page, tag)
{
    var i = 1;
    var el;
    while (el = document.getElementById(tag + i)){
        if (i == page)
            el.style.display = 'block';
        else
            el.style.display = 'none';
        i++;
    }
}
</script>
<script language="javascript">
var xmlHttp;	
	function createHttpRequest(){
		if (window.ActiveXObject){
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}else if (window.XMLHttpRequest){
			xmlHttp = new XMLHttpRequest();
		}
	}	
	function TextGet(){
		var userid= window.parent.document.getElementById("userid").value;
		var type = document.getElementById("mschangetype").value;
		createHttpRequest();
		var url = "${pageContext.request.contextPath}/acceptoper.do?tag=changedemandinfo&userid="+userid+"&mschangetype="+type+"&date="+new Date();
		xmlHttp.open("GET",url,true);
		xmlHttp.onreadystatechange = CallBackGet;
		xmlHttp.send();
	}
	function CallBackGet(){
		if (xmlHttp.readyState == 4){
			if (xmlHttp.status == 200){
				parseResult();
			}
	}
}

	function parseResult(){
		var rs = xmlHttp.responseText;	
		var rs2 = xmlHttp.responseText;			
		var meg = xmlHttp.responseText;

		
		if(meg=="对不起该用户号码不能为空或者号码不存在!" ){
			//alert(meg);
			window.parent.document.getElementById("meg").innerHTML = meg;
			window.parent.document.getElementById("userid").value="";				
		}
		else {
		
		if(form1.mschangetype.value==1){
			document.getElementById("oldaddress").value = rs;
			
		}
		if(form1.mschangetype.value==2){
			document.getElementById("oldtel").value = rs;	
		}
		if(form1.mschangetype.value==3){
			document.getElementById("oldpostalcode").value = rs2;							
		}	
	}

		window.setTimeout("TextGet()",3000);

	}
		window.setTimeout("TextGet()",100);
		
</script> 

<body style="overflow:hidden;margin:0px">
<html:form action="/acceptoper?tag=saveAccept" styleId="form1" target="rightw">
<table width="100%" border="1" cellspacing="0" cellpadding="0" id="ttc">
<tr>
    <td width="15%" height="20" align="left" valign="middle" nowrap id="ttc">选择要变更的信息</td>
    <td width="30%" nowrap id="ttc">
	<input type="hidden"  name="userid" id="userid" value="" />
	<input type="hidden" name="nmax" id="nmax" value="" />
	<input type="hidden"  name="nmin" id="nmin" value="" />
	<select name="mschangetype" id="mschangetype" onChange="setDisplay(parseInt(this.value),'a')">
      <option value="" selected >----未选----</option>
      <option value="1">邮寄地址变更</option>
      <option value="2">联系电话变更</option>
      <option value="3">邮编变更</option>	  
    </select></td>
    <td width="17%" align="left" valign="middle" nowrap id="ttc">&nbsp;</td>
    <td width="28%" align="left" valign="middle" nowrap id="ttc">&nbsp;</td>
  </tr> 
  
  <tr id="a1" style="display:none;">
    <td width="17%" height="20" align="left" valign="middle" nowrap id="ttc">旧的邮寄地址</td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">
	<input name="oldaddress" type="text" id="oldaddress" value="" size="40" readonly="true"></td>
    <td width="17%" height="20" align="left" valign="middle" nowrap id="ttc">新的邮寄地址</td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">
	<input name="postaddress" type="text" id="postaddress" value="" size="40"></td>
  </tr>
  

  <tr id="a2" style="display:none;">
    <td height="20" align="left" valign="middle" nowrap id="ttc">旧的联系电话</td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">
	<input type="text" name="oldtel" id="oldtel" value="" readonly="true"></td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">新的联系电话</td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">
	<input type="text" name="tel" id="tel" value=""></td>
  </tr>   
 
  <tr id="a3" style="display:none;">
    <td height="20" align="left" valign="middle" nowrap id="ttc">旧的邮编</td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">
		<input type="text" name="oldpostalcode" id="oldpostalcode" value="" readonly="true"></td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">新的邮编</td>
    <td height="20" align="left" valign="middle" nowrap id="ttc">
	<input type="text" name="postalcode" id="postalcode" value=""></td>
  </tr> 
                   
  <tr>
    <td width="15%" height="20" align="left" valign="middle" nowrap id="ttc">备注</td>
    <td colspan="3" align="left" valign="middle" nowrap id="ttc">
	<textarea name="remark" cols="" rows="" id="remark"></textarea>	</td>
  </tr>
  <tr>
    <td width="15%" height="20" align="left" valign="middle" nowrap id="ttc">注意事项</td>
    <td colspan="3" align="left" valign="middle" nowrap id="ttc">&nbsp;</td>
  </tr>
  <tr>
    <td height="20" colspan="4" align="center" valign="middle" nowrap id="ttc">
	<input type="button" name="Submit" value=" 提 交 " onClick="javascript:{checkForm(11);}">	</td>
    </tr>
</table>
</html:form>
</body>
</html>

⌨️ 快捷键说明

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