📄 admin_admin.asp
字号:
<!-- #include file="notacc.asp"--><html>
<head>
<title>添加投票</title>
<link href="css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<!-- #include file="conn.asp"-->
<br>
<div align="center">
<%
dim rs,us,pas,submit
us=trim(request.form("us"))
pas=trim(request.form("pas"))
submit=request.form("submit")
set rs=server.createobject("adodb.recordset")
rs.open "select us,pas from V_login",conn,1,1
if not rs.eof then
if submit<>"" then
conn.execute("update V_login set us='"&us&"',pas='"&pas&"'")
response.write "<script>alert('修改成功!');location.href='admin_admin.asp';</script>"
response.end
end if
%>
<form method="post" action="<%=request.servervariables("script_name")%>">
<table border="1" width="50%" cellpadding="2" cellspacing="0" bordercolordark="#f7f7f7" bordercolorlight="#cccccc" class="css">
<tr>
<td bgcolor="#f7f7f7" height="30" colspan="2">修改登录用户名及密码</td>
</tr>
<tr>
<td>用户名</td>
<td><input type="text" size="30" maxlength="40" name="us" value="<%=rs("us")%>" class="inputt"></td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" size="30" maxlength="40" name="pas" value="<%=rs("pas")%>" class="inputt"></td>
</tr>
<tr>
<td bgcolor="#f7f7f7" height="30" colspan="2" align="center"><input type="submit" name="submit" class="inputt" value="修改"> <input type="reset" name="reset" value="恢复原值" class="inputt"></td>
</tr>
</table>
</form>
<%
end if
rs.close
%>
<p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -