?? modifymember3.asp
字號:
<!--#include file="../include/connstr.asp"-->
<%if request("cur_action")="editsave" then
sql_editsave="update tRegMember set PassWord='"&request("T_PassWord")&"',TrueName='"&request("T_TrueName")&"',Sex='"&request("R_Sex")&"',Company='"&request("T_Company")&"',Tel='"&request("T_Tel")&"',Fax='"&request("T_Fax")&"',Address='"&request("T_Address")&"',Zip='"&request("T_Zip")&"',Email='"&request("T_Email")&"',Question='"&request("T_Question")&"',Answer='"&request("T_Answer")&"' where LoginID='"&session("LoginID")&"'"
conn.execute sql_editsave
response.write "<script>alert('您的信息修改成功');location.replace('MemberLogin.asp');</script>"
response.End()
end if
set rs=conn.execute("select * from tRegMember where LoginID='"&session("LoginID")&"'")
%>
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>浙江永嘉誠一閥門有限公司</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-left: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="../include/mycss.css" rel="stylesheet" type="text/css">
<!-- 浮動層的開始 -->
<SCRIPT language=javascript>
var delta=0.15
var collection;
function floaters() { //添加層的子程序
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:100px; height:240px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play() //調整層的位置
{
for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}
var theFloaters = new floaters();
theFloaters.addItem('followDiv2',900,100,'<img src=../images/right.jpg usemap="#Map1111111111111" border=0>'); //層名,位置X,位置Y,內容
theFloaters.play();
</SCRIPT>
<!-- 浮動層的結束 -->
</head>
<script src="../include/Jchar.js"></script>
<SCRIPT language=JavaScript>
function check_data(){
if(Jtrim(document.form1.T_PassWord.value)==""){
alert("密碼不能為空,請填寫!")
document.form1.T_PassWord.focus()
return(false)
}
if(Jtrim(document.form1.T_TrueName.value)==""){
alert("聯系人不能為空,請填寫!")
document.form1.T_TrueName.focus()
return(false)
}
if(Jtrim(document.form1.T_Tel.value)==""){
alert("聯系電話不能為空,請填寫!")
document.form1.T_Tel.focus()
return(false)
}
if(Jtrim(document.form1.T_Question.value)==""){
alert("密碼提示不能為空,請填寫!")
document.form1.T_Question.focus()
return(false)
}
if(Jtrim(document.form1.T_Answer.value)==""){
alert("密碼回答不能為空,請填寫!")
document.form1.T_Answer.focus()
return(false)
}
}
</SCRIPT>
<body>
<!--#include file="../include/top.asp"-->
<table width="919" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="278" height="502" valign="top" bgcolor="63a639"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="278" height="502">
<param name="movie" value="Images/left.swf">
<param name=quality value=high>
<embed src="Images/left.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="278" height="502"></embed>
</object></td>
</tr>
</table>
<!--#include file="../include/left.asp"-->
</td>
<td width="616" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="96%" height="148" valign="top"><table width="616" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="136" valign="middle" background="Images/Modify.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="308" height="80">
<param name="movie" value="../images/shuidi.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="../images/shuidi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="308" height="80" wmode="transparent"></embed>
</object></td>
</tr>
<tr>
<td width="6%"> </td>
<td width="57%" class="biaoti">HOME> 會員專區>資料修改</td>
<td width="37%"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="12" valign="top"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="502" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="64" class="fontdz"> 希望各會員能及時更新注冊信息,以便聯系,請根據系統提示填寫表格!!!<br>
請在下列填寫注冊是的會員帳號及密碼:</td>
</tr>
</table>
<table width="96%" border="0" align="center" cellpadding="3" cellspacing="1">
<form action="ModifyMember3.asp" method="post" name="form1" onSubmit="return check_data()">
<tr bgcolor="#EFF3E7">
<td width="29%" height="28" align="center" class="fontls">會員帳號</td>
<td width="71%" height="28"><%=rs("LoginID")%> </td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">密碼</td>
<td width="71%">
<input name="T_PassWord2" type="text" id="T_PassWord2" maxlength="20" value="<%=rs("PassWord")%>">
*(不能少于6位)</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">聯系人</td>
<td width="71%">
<input name="T_TrueName" type="text" id="T_TrueName" maxlength="20" value="<%=rs("TrueName")%>">
* </td>
</tr>
<tr bgcolor="#EFF3E7">
<td align="center" class="fontls">性別</td>
<td>
<input name="R_Sex" type="radio" value="男" <%if rs("Sex")="男" then response.write "checked"%>>
男
<input type="radio" name="R_Sex" value="女" <%if rs("Sex")="女" then response.write "checked"%>>
女</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">公司名稱</td>
<td width="71%">
<input name="T_Company" type="text" id="T_Company" size="30" maxlength="100" value="<%=rs("Company")%>">
</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">聯系電話</td>
<td width="71%">
<input name="T_Tel" type="text" id="T_Tel" maxlength="50" value="<%=rs("Tel")%>">
* </td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">傳真</td>
<td width="71%">
<input name="T_Fax" type="text" id="T_Fax" maxlength="50" value="<%=rs("Fax")%>">
</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">詳細地址</td>
<td width="71%">
<input name="T_Address" type="text" id="T_Address" size="40" maxlength="200" value="<%=rs("Address")%>">
</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">郵編</td>
<td width="71%">
<input name="T_Zip" type="text" id="T_Zip" maxlength="6" value="<%=rs("Zip")%>">
</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls"> E-MAIL</td>
<td width="71%">
<input name="T_Email" type="text" id="T_Email" size="30" maxlength="100" value="<%=rs("Email")%>">
</td>
</tr>
<tr bgcolor="#EFF3E7" align="center">
<td colspan="2" align="center" class="fontls">忘記密碼</td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">密碼提示</td>
<td width="71%">
<input name="T_Question" type="text" id="T_Question" size="30" maxlength="100" value="<%=rs("Question")%>">
* </td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="29%" align="center" class="fontls">密碼回答</td>
<td width="71%">
<input name="T_Answer" type="text" id="T_Answer" size="30" maxlength="100" value="<%=rs("Answer")%>">
* </td>
</tr>
<tr align="center" bgcolor="#EFF3E7">
<td colspan="2" height="7">
<input type="hidden" name="cur_action" value='editsave'>
<input type="submit" name="Submit5" value="更新資料" class="button" >
<input type="reset" name="Submit22" value="重新填寫" class="button" >
</td>
</tr>
</form>
</table></td>
<td width="25" valign="bottom" background="../images/about_6.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="52" background="../images/about_6.jpg"><IMG SRC="../images/about_6.jpg" WIDTH=24 HEIGHT=52 ALT=""></td>
</tr>
<tr>
<td height="459" valign="bottom"><IMG SRC="../images/about_8.jpg" WIDTH=24 HEIGHT=337 ALT=""></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="../include/bottom.asp"-->
</body>
</html>
<map name="Map1111111111111" id="Map1111111111111">
<area shape="rect" coords="18,62,71,116" href="../News/News.asp">
<area shape="rect" coords="18,125,72,184" href="../aboutus/Cultrue.asp">
<area shape="rect" coords="20,203,73,258" href="../product/Feedback.asp">
<area shape="rect" coords="18,272,77,327" href="../Distribution/Distribution.asp">
<area shape="rect" coords="14,334,81,359" href="../english/main.asp" target="_blank">
</map>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -