📄 user_edit_province.asp
字号:
<!--#include file="../film_conn.asp"-->
<!-- #include file="user_session.asp" -->
<!-- #include file="../set_url.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript src=js/location.js></script>
<LINK href="<%=weburl%>/images/style.css" type=text/css rel=stylesheet>
<title><%=webname%>--会员管理中心--会员资料修改--修改所在省市</title>
<script>
//*****************************************************
function valid_register(){
if ( document.regist.province.value.length=="")
{
alert("请选择省份!")
document.regist.province.focus()
return false;
};
if ( document.regist.thearea.value.length=="")
{
alert("请选择城市!")
document.regist.thearea.focus()
return false;
};
}
</script>
</head>
<body>
<%if request("n")="ok" then%>
<p align="center" style="font-size: 12px">恭喜!修改成功!</p>
<p align="center" style="font-size: 12px"><a href="javascript:window.close()">[关闭窗口]</a></p>
<%else%>
<form method="POST" action="user_edit_province_ok.asp" name="regist" onsubmit="return valid_register()">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse" bordercolor="#111111">
<tr><td nowrap height="30">
<p align="center">所在省市:</td>
<center>
<td height="30">
<input type=hidden value="" name=provincetwo>
<select name=province onChange="selectprovince('province');">
<option>==请选择==</option>
<script>
t=1;
for(i=0;i<province.length ;i++)
{
document.regist.province.length++;
document.regist.province.options[t].text=province[i];
document.regist.province.options[t].value=province[i];
t++
}
</script>
</select>
<select name=thearea onChange="selectprovince('area');" >
<option></option></select>
<select name=thecounty><option></option></select> <font color="#CC0000">*</font></td>
</tr>
<tr><td nowrap height="30" colspan="2" align="center"><input type="submit" value="确认修改" name="B1"></td>
</tr></table>
</center>
</div>
</form>
<script>
function selectprovince(thetype)
{
if (thetype=="province")
{
document.regist.thecounty.length=0;
document.regist.thearea.length=0;
prod=document.regist.province.selectedIndex;
prodval=document.regist.province.options[prod].text;
if ( document.regist.province.length>1 && prod==0)
{
window.alert("请选择省份!");
}
else
{
if (prod<=31)
document.regist.provincetwo.value='中国'+prodval.substr(0,4);
else if (prod==32|| prod==33 || prod==34)
document.regist.provincetwo.value='中国'+prodval.substr(0,6);
else
document.regist.provincetwo.value='其它国家' ;
t=1;
document.regist.thearea.length++;
document.regist.thearea.options[0].text="";
for(i=0;i<coarea.length ;i++)
{
if (coarea[i].indexOf(prodval)!=-1)
{ document.regist.thearea.length++;
document.regist.thearea.options[t].text=area[i];
document.regist.thearea.options[t].value=area[i];
t++
}
}
if (document.regist.thearea.length>1)
document.regist.thearea.options[0].text="==请选择==";
else
document.regist.thearea.length=0;
}
}
if (thetype=="area")
{
document.regist.thecounty.length=0;
prod=document.regist.thearea.selectedIndex;
prodval=document.regist.thearea.options[prod].text;
if (document.regist.thearea.length>1 & prod==0)
{
window.alert("请选择地区!");
}
else
{
t=1;
document.regist.thecounty.length++;
document.regist.thecounty.options[0].text="";
for(i=0;i<cocounty.length;i++)
{
if (cocounty[i].indexOf(prodval)!=-1)
{ document.regist.thecounty.length++;
document.regist.thecounty.options[t].text=county[i];
document.regist.thecounty.options[t].value=county[i];
t++
}
}
if ( document.regist.thecounty.length>1)
{ document.regist.thecounty.options[0].text="";
document.regist.thecounty.options[0].value="";
}
else
document.regist.thecounty.length=0;
}
}
}
</script>
<%end if%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -