?? modifyinfo.asp
字號:
<!--#include file="jm.asp" -->
<!--#include file="top.asp" -->
<TITLE><%=title%>—修改資料</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK
href="imgb/style.css" type=text/css
rel=stylesheet><%
if UCase(changechr(Request.QueryString("action"))) = "SAVE" then
Dim rdsInfo
set rdsInfo = Server.CreateObject("ADODB.Recordset")
rdsInfo.Open "fyuser Where id= "&Session("userid"),Conn,3,3
rdsInfo("company") =changechr(Request.Form("company"))
rdsInfo("pass") =changechr(Request.Form("pass"))
rdsInfo("question") =changechr(Request.Form("question"))
rdsInfo("answer") = changechr(Request.Form("answer"))
rdsInfo("name") =changechr(Request.Form("name"))
rdsInfo("qq") = changechr(Request.Form("qq"))
rdsInfo("ch") = changechr(Request.Form("ch"))
rdsInfo("phone") = changechr(Request.Form("phone"))
rdsInfo("post") = changechr(Request.Form("post"))
rdsInfo("provinceCN") = changechr(Request.Form("TPL_prov"))
rdsInfo("capitalCN") = changechr(Request.Form("TPL_city"))
rdsInfo("mobile") = changechr(Request.Form("mobile"))
rdsInfo("fax") = changechr(Request.Form("fax"))
rdsInfo("email") = changechr(Request.Form("email"))
rdsInfo("web") = changechr(Request.Form("web"))
rdsInfo("address") = changechr(Request.Form("address"))
rdsInfo("message") = changechr(Request.Form("message"))
rdsInfo.Update
rdsInfo.Close
set rdsInfo = nothing
Response.write("<script>alert(""修改成功!"");location.href=""modifyInfo.asp"";</script>")
Response.end
end if
%>
<TABLE cellSpacing=0 cellPadding=0 width=770 align=center border=0>
<TBODY>
<TR><TD vAlign=top width=176 bgColor=#99ccff>
<!--#include file="left.asp" --></TD>
<TD vAlign=top bgcolor="#FFFFFF"><%
set rsu = Server.CreateObject("ADODB.Recordset")
sqlu= "Select * From fyuser Where id = "&Session("userid")
rsu.Open sqlu,Conn,1,1
if not rsu.EOF then
name=rsu("name")
address=rsu("address")
web=rsu("web")
email=rsu("email")
fax=rsu("fax")
mobile=rsu("mobile")
provinceCN=rsu("provinceCN")
post=rsu("post")
phone=rsu("phone")
ch=rsu("ch")
company=rsu("company")
question=rsu("question")
answer=rsu("answer")
message=rsu("message")
qq=rsu("qq")
end if
rsu.Close
set rsu= nothing
conn.close
set conn=nothing%>
<FORM name=form1 action=?action=save method=post><script language="javascript">
function CheckInput()
{
if (document.form1.name.value == "")
{
alert("請輸入您的姓名!");
document.form1.name.focus();
return false;
}
if (document.form1.phone.value == "")
{
alert("請輸入您的聯系電話!");
document.form1.phone.focus();
return false;
}
if (document.form1.email.value != "")
{
var filter=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/;
if (!filter.test(document.form1.email.value)) {
alert("郵件地址不正確,請重新填寫!");
document.form1.email.focus();
document.form1.email.select();
return false;
}
}
if (document.form1.message.value != "" && document.form1.message.value.length > 200)
{
alert("您輸入的簡介過多,請簡單輸入!");
document.form1.message.focus();
return false;
}
document.form1.submit()
}
// -->
</SCRIPT>
<TABLE cellSpacing=2 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD colspan="2"> <a href="index.asp">首頁</a> >> 會員中心
>> 修改資料</TD>
</TR>
<TR>
<TD><FONT color=#000000>會員登錄名:</FONT></TD>
<TD><%=session("boobuser")%></map%%></TD></TR>
<TR>
<TD>登錄密碼:</TD>
<TD><INPUT class=smallInput maxLength=20 name=pass value="<%=pass%>">不改請勿修改</TD></TR>
<TR>
<TD><FONT color=#000000>您的姓名:</FONT></TD>
<TD><INPUT class=smallInput maxLength=100 size=30
value="<%=name%>" name=name> <FONT color=#990000>*</FONT>
<select size="1" name="ch">
<option value="先生" <%if ch="先生" then%> selected <%end if%>>先生</option>
<option <%if ch="女士" then%> selected <%end if%> value="女士">女士</option>
</select></TD></TR>
<TR>
<TD><FONT color=#000000>電話:</FONT></TD>
<TD><INPUT class=smallInput maxLength=20 size=30
value="<%=phone%>" name=phone> <FONT
color=#990000>*</FONT>
郵 編: <INPUT class=smallInput value="<%=post%>" maxLength=6 size=8 name=post></TD></TR>
<TR>
<TD>
省/市:</TD>
<TD>
<select name=TPL_prov class="wenbenkuang" onChange="setcity();">
<option value="浙江" <%if provinceCN="浙江" then%> selected <%end if%>> Zhejiang 浙江</option>
<option value="安徽" <%if provinceCN="安徽" then%> selected <%end if%>> Anhui 安徽</option>
<option value="北京" <%if provinceCN="北京" then%> selected <%end if%>> Beijing 北京</option>
<option value="重慶" <%if provinceCN="重慶" then%> selected <%end if%>> Chongqing 重慶</option>
<option value="福建" <%if provinceCN="福建" then%> selected <%end if%>> Fujian 福建</option>
<option value="甘肅" <%if provinceCN="甘肅" then%> selected <%end if%>> Gansu 甘肅</option>
<option value="廣東" <%if provinceCN="廣東" then%> selected <%end if%>> Guangdong 廣東</option>
<option value="廣西" <%if provinceCN="廣西" then%> selected <%end if%>> Guangxi 廣西</option>
<option value="貴州" <%if provinceCN="貴州" then%> selected <%end if%>> Guizhou 貴州</option>
<option value="海南" <%if provinceCN="海南" then%> selected <%end if%>> Hainan 海南</option>
<option value="河北" <%if provinceCN="河北" then%> selected <%end if%>> Hebei 河北</option>
<option value="黑龍江" <%if provinceCN="黑龍江" then%> selected <%end if%>>Heilongjiang 黑龍江</option>
<option value="河南" <%if provinceCN="河南" then%> selected <%end if%>> Henan 河南</option>
<option value="9港" <%if provinceCN="9港" then%> selected <%end if%>> Hongkong 9港</option>
<option value="湖北" <%if provinceCN="湖北" then%> selected <%end if%>> Hubei 湖北</option>
<option value="湖南" <%if provinceCN="湖南" then%> selected <%end if%>> Hunan 湖南</option>
<option value="江蘇" <%if provinceCN="江蘇" then%> selected <%end if%>> Jiangsu 江蘇</option>
<option value="江西" <%if provinceCN="江西" then%> selected <%end if%>> Jiangxi 江西</option>
<option value="吉林" <%if provinceCN="吉林" then%> selected <%end if%>> Jilin 吉林</option>
<option value="遼寧" <%if provinceCN="遼寧" then%> selected <%end if%>> Liaoning 遼寧</option>
<option value="澳門" <%if provinceCN="澳門" then%> selected <%end if%>> Macao 澳門</option>
<option value="內蒙古" <%if provinceCN="內蒙古" then%> selected <%end if%>>Neimenggu 內蒙古</option>
<option value="寧夏" <%if provinceCN="寧夏" then%> selected <%end if%>> Ningxia 寧夏</option>
<option value="青海" <%if provinceCN="青海" then%> selected <%end if%>> Qinghai 青海</option>
<option value="山東" <%if provinceCN="山東" then%> selected <%end if%>> Shandong 山東</option>
<option value="上海" <%if provinceCN="上海" then%> selected <%end if%>> Shanghai 上海</option>
<option value="山西" <%if provinceCN="山西" then%> selected <%end if%>> Shanxi 山西</option>
<option value="陜西" <%if provinceCN="陜西" then%> selected <%end if%>> Shanxi 陜西</option>
<option value="四川" <%if provinceCN="四川" then%> selected <%end if%>> Sichuan 四川</option>
<option value="臺灣" <%if provinceCN="臺灣" then%> selected <%end if%>> Taiwan 臺灣</option>
<option value="天津" <%if provinceCN="天津" then%> selected <%end if%>> Tianjin 天津</option>
<option value="新疆" <%if provinceCN="新疆" then%> selected <%end if%>> Xinjiang 新疆</option>
<option value="西藏" <%if provinceCN="西藏" then%> selected <%end if%>> Xizang 西藏</option>
<option value="云南" <%if provinceCN="云南" then%> selected <%end if%>> Yunnan 云南</option>
</select> <select name=TPL_city class="wenbenkuang">
</select> <script language="JavaScript" >
<!--
function setcity() {
switch (document.form1.TPL_prov.value) {
case "" :
var cityOptions = new Array("", "");
break;
case "安徽" :
var cityOptions = new Array(
"Hefei 合肥(*)", "合肥",
"Anqing 安慶", "安慶",
"Bangbu 蚌埠", "蚌埠",
"Bozhou 亳州", "亳州",
"Chaohu 巢湖", "巢湖",
"Chuzhou 滁州", "滁州",
"Fuyang 阜陽", "阜陽",
"Guichi 貴池", "貴池",
"Huaibei 淮北", "淮北",
"Huaihua 淮化", "淮化",
"Huainan 淮南", "淮南",
"Huangshan 黃山", "黃山",
"Jiuhuashan 九華山", "九華山",
"Liuan 六安", "六安",
"Maanshan 馬鞍山", "馬鞍山",
"Suzhou 宿州", "宿州",
"Tongling 銅陵", "銅陵",
"Tunxu 屯溪", "屯溪",
"Wuhu 蕪湖", "蕪湖",
"Xuanchen 宣城", "宣城");
break;
case "北京" :
var cityOptions = new Array(
"Beijing 北京", "北京");
break;
case "重慶" :
var cityOptions = new Array(
"Chongqing 重慶", "重慶");
break;
case "福建" :
var cityOptions = new Array(
"Fuzhou 福州(*)", "福州",
"Fuan 福安", "福安",
"Longyan 龍巖", "龍巖",
"Nanping 南平", "南平",
"Ningde 寧德", "寧德",
"Putian 莆田", "莆田",
"Quanzhou 泉州", "泉州",
"Sanming 三明", "三明",
"Shaowu 邵武", "邵武",
"Shishi 石獅", "石獅",
"Tongan 永安", "永安",
"Wuyishan 武夷山", "武夷山",
"Xiamen 廈門", "廈門",
"Zhangzhou 漳州", "漳州");
break;
case "甘肅" :
var cityOptions = new Array(
"Lanzhou 蘭州(*)", "蘭州",
"Baiyin 白銀", "白銀",
"Dingxi 定西", "定西",
"Dunhuang 敦煌", "敦煌",
"Gannan 甘南", "甘南",
"Jinchang 金昌", "金昌",
"Jiuquan 酒泉", "酒泉",
"Linxia 臨夏", "臨夏",
"Pingliang 平涼", "平涼",
"Tianshui 天水", "天水",
"Wudu 武都", "武都",
"Xifeng 西峰", "西峰",
"Zhangye 張掖", "張掖");
break;
case "廣東" :
"Guangzhou 廣州(*)", "廣州",
"Chaoyang 潮陽", "潮陽",
"Chaozhou 潮州", "潮州",
"Chenghai 澄海", "澄海",
"Dongguan 東莞", "東莞",
"Foshan 佛山", "佛山",
"Heyuan 河源", "河源",
"Huizhou 惠州", "惠州",
"Jiangmen 江門", "江門",
"Jieyang 揭陽", "揭陽",
"Kaiping 開平", "開平",
"Maoming 茂名", "茂名",
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -