📄 change.asp
字号:
<style type=text/css>
body { background:#799AE1; margin:0px; font:9pt 宋体; }
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover { color:#428EFF;text-decoration:underline; }
.sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title { }
.menu_title span { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2 { }
.menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style><%
if session("admin_name")="" then
response.redirect "login.asp"
response.end
end if
%><head>
<!--#include file="conn.asp"-->
<%set rs=server.createobject("adodb.recordset")%>
</head>
<%
if request("action")="change" then
sql="select top 1 * from admin"
rs.open sql,conn,3,3
rs("admin_name")=request("admin_name")
rs("admin_pass")=request("admin_pass")
rs.update
rs.close
response.write "密码更改成功"
else
%>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<table width="30%" border="0" align="center" cellspacing="1">
<tr>
<td width="100%">
<form method="POST" action="change.asp?action=change">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<%sql="select top 1 * from admin"
rs.open sql,conn,3,3%>
<td width="27%"><div align="left"><font color="#FFFFFF">用户名</font></div></td>
<td width="73%"> <div align="left">
<input type="text" name="admin_name" size="20" value="<%=rs("admin_name")%>" class=input>
</div></td>
</tr>
<tr>
<td width="27%"><font color="#FFFFFF">密码</font></td>
<td width="73%"><input type="text" name="admin_pass" size="20" value="<%=rs("admin_pass")%>" class=input></td>
</tr>
</table>
<%rs.close
%>
<p align="center">
<input type="submit" value="提交" name="B1" class=input>
<input name="reset" type="submit" id="reset" value="取消">
</p>
</form>
<p> </td>
</tr>
</table>
<%end if
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -