?? demandinfo.jsp
字號(hào):
<%@ 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=="對(duì)不起該用戶號(hào)碼不能為空或者號(hào)碼不存在!" ){
//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">聯(lián)系電話變更</option>
<option value="3">郵編變更</option>
</select></td>
<td width="17%" align="left" valign="middle" nowrap id="ttc"> </td>
<td width="28%" align="left" valign="middle" nowrap id="ttc"> </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">舊的聯(lián)系電話</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">新的聯(lián)系電話</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">注意事項(xiàng)</td>
<td colspan="3" align="left" valign="middle" nowrap id="ttc"> </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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -