📄 edit.asp
字号:
<!--#include file="conn.asp"-->
<%
var rs=Server.CreateObject("ADODB.Recordset");
var sql="select * from user where username='"+Session("user")+"'";
rs.Open(sql,conn,3,3);
if(!rs.EOF)
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改资料</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-image: url(img/bg3.gif);
}
.unnamed1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF6600;
}
a:link,a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #3399CC;
text-decoration: none;
}
a:hover {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF6600;
text-decoration: blink;
}
.unnamed11 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF6600;
text-decoration: none;
}
.style3 { color: #CCFF66;
font-size: 14px;
}
.style4 {color: #3399CC}
.style5 {color: #333333}
-->
</style></head>
<body>
<table width="80%" height="90" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="39" background="img/bg4.gif"> </td>
<td width="265" background="img/bg4.gif"><table width="265" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="265" height="90" background="img/top.gif"><img src="img/logo.gif" width="265" height="90"></td>
</tr>
</table></td>
<td width="490" background="img/bg4.gif"><table width="490" height="90" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="60" colspan="7" background="img/hole.gif"><table width="490" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="52" height="30"> </td>
<td width="146" height="30" valign="bottom"><a href="new.asp">我要留言</a></td>
<td width="31" height="30" valign="bottom"> </td>
<td width="152" height="30" valign="bottom"><a href="admin.asp">信息管理 </a></td>
<td width="30" height="30" valign="bottom"> </td>
<td width="79" height="30" valign="bottom"><a href="admin.asp"> </a><a href="index.asp">首页</a></td>
</tr>
<tr>
<td colspan="6"><table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%"> </td>
<td width="7%"> </td>
<td width="31%"><a href="logout.asp" class="style5">
<%if (Session("login")==true){%>
</a><a href="edit.asp">修改资料 </a>
<%}%></td>
<td width="8%"> </td>
<td width="34%"><a href="search.htm"> </a><a href="logout.asp" class="style5">
<%if (Session("login")==true){%>
</a><a href="search.htm">搜索</a>
<%}%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="136"> </td>
<td width="30"><img src="img/button.gif" width="30" height="30"></td>
<td width="70"><div align="center"><a href="login.asp">
<%if (Session("login")==false){%>
登陆 </a>
<%}%>
</div></td>
<td width="30"><img src="img/button.gif" width="30" height="30"></td>
<td width="70"><div align="center"><a href="reg1.asp">注册</a></div></td>
<td width="30"><img src="img/button.gif" width="30" height="30"></td>
<td width="124"><a href="logout.asp" class="style5">
<%if (Session("login")==true){%>
退出</a>
<%}%></td>
</tr>
</table></td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="img/bg4.gif"><div align="center"><img src="img/line.gif" width="722" height="3"></div></td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="62%" height="30" background="img/bg4.gif"> </td>
<td width="4%" background="img/bg4.gif"><img src="img/button.gif" width="30" height="30"></td>
<td width="18%" background="img/bg4.gif"><div align="center"><span class="style4">当前在线</span><span class="style3"><%=Application("online")%></span><span class="style4">人</span></div></td>
<td width="4%" background="img/bg4.gif"><img src="img/button.gif" width="30" height="30"></td>
<td width="12%" background="img/bg4.gif"> </td>
</tr>
</table>
<form name="form1" method="post" action="checkedit.asp">
<table width="50%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#FFFFFF" class="unnamed1">
<tr>
<td height="25" colspan="2" background="img/bg4.gif"><div align="center" class="unnamed1">::个人基本资料修改::</div></td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1">
新密码:</div> </td>
<td width="127">
<input name="newpwd" type="password" class="unnamed1" id="newpwd" value="<%=rs("password")%>"> </td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1">确认新密码:</div></td>
<td>
<input name="renewpwd" type="password" class="unnamed1" id="renewpwd">
</td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1"><img src="img/ao.gif" width="16" height="18">昵称:</div></td>
<td><input name="nick" type="text" class="unnamed1" id="nick" value="<%=rs("nickname")%>"></td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1"><img src="img/nc.gif" width="16" height="16">性别:</div></td>
<td class="unnamed1">
<input name="sex" type="radio" value="0" checked>
美女<img src="img/feMale.gif" width="23" height="21"> <input type="radio" name="sex" value="1">
帅哥<img src="img/Male.gif" width="23" height="21"> </td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1"><img src="img/email.gif" width="16" height="16">邮箱:</div></td>
<td><input name="mail" type="text" class="unnamed1" id="mail" value="<%=rs("email")%>"></td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1"><img src="img/qq.gif" width="16" height="16">QQ:</div></td>
<td><input name="QQ" type="text" class="unnamed1" id="QQ" value="<%=rs("QQ")%>"></td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1"><img src="img/h.gif" width="16" height="16">主页:</div></td>
<td><input name="home1" type="text" class="unnamed1" id="home1" value="<%=rs("home")%>"></td>
</tr>
<tr>
<td bgcolor="#5B5B5B"><div align="right" class="unnamed1"><img src="emot/3.gif" width="19" height="19">头像:</div></td>
<td class="unnamed1"><img src="<%=rs("face")%>" name="face" id="face">
<select name="face" size="1" class="unnamed1" onChange="showimage()">
<script language="javascript">function showimage()
{
document.images.face.src=document.form1.face.options[document.form1.face.selectedIndex].value;
}
</script>
<option selected value="face/01.gif">1</option>
<option value="face/02.gif">2</option>
<option value="face/03.gif">3</option>
<option value="face/04.gif">4</option>
<option value="face/05.gif">5</option>
<option value="face/06.gif">6</option>
<option value="face/07.gif">7</option>
<option value="face/08.gif">8</option>
<option value="face/09.gif">9</option>
<option value="face/10.gif">10</option>
<option value="face/11.gif">11</option>
<option value="face/12.gif">12</option>
<option value="face/13.gif">13</option>
<option value="face/14.gif">14</option>
<option value="face/15.gif">15</option>
<option value="face/16.gif">16</option>
<option value="face/17.gif">17</option>
<option value="face/18.gif">18</option>
<option value="face/19.gif">19</option>
<option value="face/20.gif">20</option>
<option value="face/21.gif">21</option>
<option value="face/22.gif">22</option>
<option value="face/23.gif">23</option>
<option value="face/24.gif">24</option>
<option value="face/25.gif">25</option>
<option value="face/26.gif">26</option>
<option value="face/27.gif">27</option>
<option value="face/28.gif">28</option>
<option value="face/29.gif">29</option>
<option value="face/30.gif">30</option>
<option value="face/31.gif">31</option>
<option value="face/32.gif">32</option>
<option value="face/33.gif">33</option>
<option value="face/34.gif">34</option>
<option value="face/35.gif">35</option>
<option value="face/36.gif">36</option>
<option value="face/37.gif">37</option>
<option value="face/38.gif">38</option>
<option value="face/39.gif">39</option>
<option value="face/40.gif">40</option>
<option value="face/41.gif">41</option>
<option value="face/42.gif">42</option>
<option value="face/43.gif">43</option>
<option value="face/44.gif">44</option>
<option value="face/45.gif">45</option>
<option value="face/46.gif">46</option>
<option value="face/47.gif">47</option>
<option value="face/48.gif">48</option>
</select> </td>
</tr>
<tr bgcolor="#FF863D">
<td colspan="2"><div align="center">
<input name="Submit" type="submit" class="unnamed1" value="提交" onClick="return warning()">
</div></td>
</tr>
</table>
</form>
<p> </p>
<p> </p>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="img/line.gif" width="650" height="3"></div></td>
</tr>
</table>
<div align="center"><br>
<span class="unnamed1"><br>
Powered By:Kunta. Wang<br>
All Rights Rerserves©
</span>
<script language="javascript">
function warning()
{
if(form1.newpwd.value.length==0) {alert("必须输密码!");form1.newpwd.focus();return false;}
if(form1.newpwd.value!=form1.renewpwd.value) {alert("两次密码必须一致!");form1.renewpwd.focus();return false;}
if(form1.QQ.value.length==0) {alert("必须填QQ!");form1.QQ.focus();return false;}
if(form1.mail.value.length==0) {alert("必须填email!");form1.mail.focus();return false;}
if(form1.nick.value.length==0) {alert("必须填昵称!");form1.nick.focus();return false;}
if(form1.home1.value.length==0) {alert("必须填写主页!");form1.home1.focus();return false;}
}
</script>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -