?? hyselfedit.asp
字號:
<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checkhy.asp" -->
<!-- #include file="common.asp" -->
<%id=Request("id")
set HyRs=server.CreateObject("adodb.recordset")
sql = "select hy.*,hyclub.HyNumber,hyClub.HyPassword,hyclub.edupassword from hy left join hyclub on hy.id=hyclub.HyID where hy.id =" & cint(id)
HyRs.Open sql,conn
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="include/e1.css" type="text/css">
<script language='javascript' src='include/common.js'></script>
</HEAD>
<script language="javascript">
function check()
{
if(form1.HyName.value=="")
{
alert("至少需要輸入姓名!");
document.form1.HyName.focus();
return false;
}
else if(form1.HyPassword.value=="")
{
alert("至少需要輸入密碼!");
document.form1.HyPassword.focus();
return false;
}
else if(form1.HyPassword1.value!=form1.HyPassword.value)
{
alert("兩次輸入確認密碼不一致!");
document.form1.HyPassword1.focus();
return false;
}
else if(form1.eduPassword.value=="")
{
alert("至少需要輸入密碼!");
document.form1.eduPassword.focus();
return false;
}
else if(form1.eduPassword1.value!=form1.eduPassword.value)
{
alert("兩次輸入二級密碼不一致!");
document.form1.eduPassword1.focus();
return false;
}
else if(form1.HyMobile.value=="")
{
alert("至少需要輸入聯(lián)絡(luò)電話!");
document.form1.HyMobile.focus();
return false;
}
else
{
return true;
document.form1.submit();
}
}
</script>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="7BD7FF">
<p> </p>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#009DDE">
<tr>
<td>
<form name="form1" method="post" action="hyselfeditcheck.asp?id=<% =id%>" onsubmit="return check();">
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" ID="Table3">
<tr>
<td width="100%" height="46"> <div align="center">
<table align="center" bgcolor="#7BD7FF" border="0" cellpadding="0" cellspacing="0"
width="90%"><tr><td>
<table width="100%" border="0" cellspacing="1" cellpadding="5" ID="Table4">
<tr bgcolor="#00B1FF">
<td height="30" colspan="2">
<div align="center"><font size="3"><img src="Image/user.gif" width="32" height="32">修
改 會 員 資 料</font></div></td>
</tr>
<tr>
<td height="30"><div align="right">會員姓名:</div></td>
<td width="55%"> <input name="HyName" readonly type="text" size="30" value=<% =HyRs("HyName")%>>
(<font color=#ff0000>*</font>)</td>
</tr>
<tr>
<td height="30"><div align="right">登陸帳號:</div></td>
<td>
<% =HyRs("HyNumber")%>
</td>
</tr>
<tr>
<td width="40%" height="30"><div align="right">一級密碼:</div></td>
<td> <input type="password" name="HyPassword" size="30" value=<% =HyRs("HyPassword")%>>
(<font color=#ff0000>*</font>)</td>
</tr>
<tr>
<td width="40%" height="30"><div align="right">確認一級密碼:</div></td>
<td> <input type="password" name="HyPassword1" size="30" value=<% =HyRs("HyPassword")%>>
(<font color=#ff0000>*</font>)</td>
</tr>
<%if session("hylevel")=1 and session("dlpassed")="true" then%>
<tr>
<td width="40%" height="30"><div align="right">二級密碼:</div></td>
<td>
<input type="password" name="eduPassword" size="30" value="<% =HyRs("eduPassword")%>">
(<font color=#ff0000>*</font>)</td>
</tr>
<tr>
<td width="40%" height="30"><div align="right">確認二級密碼:</div></td>
<td> <input type="password" name="eduPassword1" size="30" value=<% =HyRs("eduPassword")%>>
(<font color=#ff0000>*</font>)</td>
</tr>
<%else%>
<input name="edupassword" type="hidden" value="<%=hyrs("edupassword")%>">
<%end if%>
<% if GetDisplay("HySex")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HySex")%>:</div></td>
<td> <input name="HySex" type="radio" value="男" <%if HyRs("HySex")="男" then%> checked<%end if%>>
男
<input type="radio" name="HySex" value="女" <%if HyRs("HySex")="女" then%> checked<%end if%>>
女</td>
</tr>
<% if GetDisplay("HyAge")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyAge")%>:</div></td>
<td> <input type="text" name="HyAge" size="30" ID="Text6" value=<% =HyRs("HyAge")%>>
</td>
</tr>
<% if GetDisplay("HyCardNo")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyCardNo") %>:</div></td>
<td> <input type="text" name="HyCardNo" size="30" ID="Text9" value=<% =HyRs("HyCardNo")%>>
</td>
</tr>
<% if GetDisplay("HyTel")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyTel")%>:</div></td>
<td> <input type="text" name="HyTel" size="30" ID="Text6" value=<% =HyRs("HyTel")%>>
</td>
</tr>
<% if GetDisplay("HyMobile")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyMobile")%>:</div></td>
<td> <input type="text" name="HyMobile" size="30" ID="Text6" value=<% =HyRs("HyMobile")%>>
(<font color=#ff0000>*</font>)</td>
</tr>
<% if GetDisplay("HyMail")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyMail")%>:</div></td>
<td> <input type="text" name="HyMail" size="30" ID="Text6" value=<% =HyRs("HyMail")%>>
</td>
</tr>
<% if GetDisplay("HyQQMSN")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyQQMSN")%>:</div></td>
</td>
</tr>
<% if GetDisplay("HyAddress")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyAddress")%>:</div></td>
<td> <input type="text" name="HyAddress" size="50" ID="Text7" value=<% =HyRs("HyAddress")%> >
</td>
</tr>
<% if GetDisplay("HyZipCode")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyZipCode")%>:</div></td>
<td> <input type="text" name="HyZipCode" size="20" ID="Text7" value=<% =HyRs("HyZipCode")%>>
</td>
</tr>
<% if GetDisplay("HyProduct")=true then%>
<tr>
<%else%>
<tr style="display:none">
<%end if%>
<td height="30"><div align="right"><% =GetDisplayName("HyProduct")%>:</div></td>
<td>
<select name="HyProduct">
<%
arrList =split(GetOtherSettingValue("ProductInfo"),"-")
for i=Lbound(arrList) to Ubound(arrList)%>
<option value="<% =arrList(i)%>" <%if HyRs("HyProduct")=arrList(i) then %>selected<%end if%>><% =arrList(i)%></option>
<%next%>
</select>
</td>
</tr>
<tr style="display:none">
<td height="30"><div align="right">購買數(shù)量:</div></td>
<td> <select name="HyBuyCount" id="HyBuyCount">
<option value="1" selected>1</option>
<option value="3">3</option>
<option value="7">7</option>
</select></td>
</tr>
<% if GetDisplay("HyMemo")=true then%>
<tr valign="top">
<%else%>
<tr style="display:none">
<%end if%>
<td > <div align="right"><% =GetDisplayName("HyMemo")%>:<br>
</div></td>
<td ><textarea name="HyMemo" cols="70" rows="8" id="HyMemo"><% =HyRs("HyMemo")%></textarea></td>
</tr>
</table>
</td></tr></table>
<p> </p>
</div></td>
</tr>
</table>
<P align="center">
<input type="submit" name="Submit" value="確 定" ID="Submit2" class="b02">
<input type="reset" name="Submit2" value="取 消" ID="Reset2" class="b02">
</P>
</form></td>
</tr>
</table>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -