📄 admin_user_ac.asp
字号:
<!--#include file="conn.asp"-->
<%
if Request.Cookies("login")<>"yes" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您还未登陆或者超时,请重登陆!');"&"window.location.href = '../'"&" </script>"
response.end
end if
if request("ttype")="1" then
sql="select name,ac,question,lock,ltime,ip,email,vip,rz from in_user where id="&clng(request("id"))
ttype="1"
else
sql="select name,ac,question,lock,ltime,ip,email,vip,rz from en_user where id="&clng(request("id"))
ttype="2"
end if
rs.open sql,conn,1,1
if rs.recordcount=0 then
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('非法数据提交!');" & "window.close()" & "</script>"
Response.End
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css.css" type="text/css">
<title>用户帐户设置</title>
<style type="text/css">
<!--
.STYLE1 { color: #FF0000;
font-weight: bold;
}
.STYLE2 {color: #FF0000}
-->
</style>
</head>
<body>
<div align="center">
<table border="0" width="400" cellspacing="0" cellpadding="0" height="300" id="table1">
<tr>
<td valign="top">
<form method="POST" action="updata_user_ac.asp">
<table border="0" width="419" cellspacing="0" cellpadding="0" id="table2" height="449">
<tr>
<td height="30" background="images/jobbg1.gif" style="border: 1px solid #C0C0C0" colspan="2">
<p align="center"><font color="#0A5DF6"><b>用户帐户设置</b></font></td>
</tr>
<tr>
<td height="20" width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2">
<p align="center"><b>账 号:</b></td>
<td height="20" width="258" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2"> <%=rs("ac")%>(<%=rs("name")%>)</td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="32">
<p align="center"><b>密 码:</b></td>
<td width="258" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="32">
<input type="text" name="pwd" size="20" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<font color="#FF0000">若不更改,请勿填写</font></td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="20">
<p align="center"><b>密码问题:</b></td>
<td width="258" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" height="20" bgcolor="#EEFFF2">
<input type="text" name="question" size="20" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" value="<%=rs("question")%>"></td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="32">
<p align="center"><b>密码答案:</b></td>
<td width="258" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" height="32" bgcolor="#EEFFF2">
<input type="text" name="answer" size="20" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<font color="#FF0000">若不更改,请勿填写</font></td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="26">
<p align="center"><b>=========</b></td>
<td width="258" height="26" bgcolor="#EEFFF2" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0">
<div align="center">========================</div></td>
</tr>
<tr>
<td style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="22"><div align="center"><b>认证用户:</b> </div></td>
<td width="258" height="22" bgcolor="#EEFFF2" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0">是
<input type="radio" value="true" name="rz" <%if rs("rz")=true then response.write"checked"%>>
否
<input type="radio" name="rz" value="false" <%if rs("rz")=false then response.write"checked"%>>
<span class="STYLE2"><strong>正式版才可用</strong> </span></td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="22">
<p align="center"><b>VIP用户:</b></td>
<td width="258" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" height="22" bgcolor="#EEFFF2">
是
<input type="radio" value="true" name="vip" <%if rs("vip")=true then response.write"checked"%>>
否
<input type="radio" name="vip" value="false" <%if rs("vip")=false then response.write"checked"%>>
<span class="STYLE2"><strong>正式版才可用</strong></span></td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="22">
<p align="center"><b>是否锁定:</b></td>
<td width="258" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" height="22" bgcolor="#EEFFF2">
是<input type="radio" value="true" name="lock" <%if rs("lock")=true then response.write"checked"%>>
否<input type="radio" name="lock" value="false" <%if rs("lock")=false then response.write"checked"%>>
<span class="STYLE2"><strong>正式版才可用</strong></span></td>
</tr>
<tr>
<td width="191" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2" height="94">
<p align="center"><b>其他数据:</b></td>
<td width="258" height="94" bgcolor="#EEFFF2" style="border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0">
电子邮件地址:<%=rs("email")%><p>最后登陆时间:<%=rs("ltime")%><p>最后登陆 IP:<%=rs("ip")%></td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#EEFFF2" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0"><span class="STYLE2">提示:设置好后,</span><span class="STYLE1">需要用户退出</span><span class="STYLE2">(点“退出会员中心”[不是关闭网页])</span><span class="STYLE1">后,重新登录后,新设置才生效!</span></td>
</tr>
<tr>
<td height="30" colspan="2" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" bgcolor="#EEFFF2">
<p align="center">
<input type="submit" value="修改" name="B1"></td>
</tr>
</table>
<input type="hidden" name="ttype" value="<%=ttype%>">
<input type="hidden" name="id" value="<%=request("id")%>">
</form>
</td>
</tr>
</table>
</div>
</body>
</html>
<%
rs.close
set rs=nothing
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -