📄 changeinfo.asp
字号:
<!--#INCLUDE FILE="inc_config.asp"-->
<!-- #include file="inc_dbconn.asp" -->
<html>
<head>
<title>修改资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body { font-size: 10.4pt }
td { font-size: 10.4pt }
.normal { <%=m_button%> ; font-size: 10.4pt}
.over { <%=m_buttonover%> ; font-size: 10.4pt}
.down { <%=m_buttondown%> ; font-size: 10.4pt}
-->
</style>
</head>
<body bgcolor="<%=m_bg2%>">
<%
password=request("password")
if password="" then %>
<br><br><center><form method="POST" action="changeinfo.asp">输入您的密码
<input type="password" name="password" style="font-size:9pt"><br><br>
<input type="submit" value="好了" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'">
<input type="button" value="关闭" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'" onClick="window.close()"></center></form>
</body>
</html>
<% response.end %>
<% end if %>
<% if password<>"" then %>
<% if request("email")<>"" then %>
<%
my_conn.execute "update "&dbtable_user&" set "&dbfield_user_password&"='" & request("password") & "',"&dbfield_user_email&"='" & request("email") &"',"&dbfield_user_oicq&"='" & request("oicq")& "',"&dbfield_user_homepage&"='" & request("homepage") &"',"&dbfield_user_comefrom&"='" & request("comefrom") & "',"&dbfield_user_sex&"='" & request("sex") & "' where "&dbfield_user_username&"='" & session("user") & "'"
%>
<br><br><center>[<% =session("user") %>]的资料修改成功!<br><br>
<input type="button" value="关闭窗口" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'" onClick="window.close()"></center>
</body>
</html>
<% response.end %>
<% end if %>
<% set rs=my_conn.execute("select * from "&dbtable_user&" where "&dbfield_user_username&" ='" & session("user") & "'")
if rs(dbfield_user_password)<>password then %>
<form method="POST" action="changeinfo.asp">
<br><br><center>密码错,请重输<br>
<input type="password" name="password" style="font-size:9pt"><br>
<input type="submit" value="好了" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'">
<input type="button" value="关闭" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'" onClick="window.close()"></center>
</form>
</body>
</html>
<% else %>
<html>
<head>
<title>修改资料</title>
</head>
<body bgcolor="<%=m_bg2%>"><br>
<table width="280" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999" align="center">
<form method="POST" action="changeinfo.asp">
<tr bgcolor="<%=m_bg1%>">
<td align="center" style="color:<%=m_text1%>">修 改 资 料</td>
</tr>
<tr>
<td>用 户 名: <% =session("user") %></td>
</tr>
<tr>
<td>用户密码:<input type="text" name="password" value=<% =rs(dbfield_user_password) %>></td>
</tr>
<tr>
<%
if rs(dbfield_user_sex)="boy" then %>
<td>性 别:<input type="radio" name="sex" value="boy" checked>boy <input type="radio" name="sex" value="girl">girl</td>
<% else %>
<td>性 别:<input type="radio" name="sex" value="boy">boy <input type="radio" name="sex" value="girl" checked>girl</td>
<% end if %>
</tr>
<tr>
<td>电子信箱:<input type="text" name="email" value="<% =rs(dbfield_user_email) %>"></td>
</tr>
<tr>
<td>主页地址:<input type="text" name="homepage" value=<% =rs(dbfield_user_homepage) %>></td>
</tr>
<tr>
<td >来 自:<input type="text" name="comefrom" value=<% =rs(dbfield_user_comefrom) %>></td>
</tr>
<tr>
<td>O I C Q :<input type="text" name="oicq" value=<% =rs(dbfield_user_oicq) %>></td>
</tr>
<tr>
<td align="center"><input type="submit" value="更改" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'">
<input type="reset" value="复原" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'">
<input type="button" value="关闭" onclick="window.close()" class="normal" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'"></td>
</tr>
</form>
</table>
</body>
</html>
<% end if %>
<% my_conn.close
set my_conn=nothing %>
<% end if %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -