📄 admin_user.asp
字号:
<tr valign="top" bgcolor="#ffffff">
<td>站内短信量:</td>
<td>
<select name="usermessenge" class='form' id="usermessenge">
<option value="5">5</option>
<option selected value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
<option value="35">35</option>
<option value="50">50</option>
<option value="80">80</option>
<option value="100">100</option>
</select></td>
<td>短信箱可用的短信存量(初始值为 10 ,站内短信方便用户之间相互沟通。</td>
</tr>
<tr>
<td align="middle" bgcolor="#1C3566" colspan="3">
<script language="javascript">
<!--
function process_data(theform) {
if (theform.username.value=="") {
alert("请输入用户名!");
theform.username.focus();
return false;
}
var username=theform.username.value;
if (username.length<6) {
alert("你所输入的用户名太短,至少也要输入 6 个字符");
theform.username.focus();
return false;
}
if (username.length>16) {
alert("你所输入的用户名太长,最多只能输入 16 个字符");
theform.username.focus();
return false;
}
if (theform.name.value=="") {
alert("请输入昵称!");
theform.name.focus();
return false;
}
var name=theform.name.value;
if (name.length<6) {
alert("你所输入的昵称太短,至少也要输入 6 个字符");
theform.name.focus();
return false;
}
if (name.length>18) {
alert("你所输入的昵称太长,最多只能输入 18 个字符");
theform.name.focus();
return false;
}
if (theform.email.value=="") {
alert("请输入 Email 地址!");
theform.email.focus();
return false;
}
if (theform.email.value.indexOf("@") == -1) {
alert("请输入正确的 Email 地址");
theform.email.focus();
return false;
}
if (theform.email.value!=theform.email2.value) {
alert("两次输入的Email不相同,请确认并重新输入!");
theform.email.focus();
return false;
}
if (theform.password.value=="") {
alert("请输入登陆密码!");
theform.password.focus();
return false;
}
var password=theform.password.value;
if (password.length<6) {
alert("你所输入的密码太短,至少也要输入 6 个字符");
theform.password.value="";
theform.password2.value="";
theform.password.focus();
return false;
}
if (password.length>18) {
alert("你所输入的密码太长,最多只能输入 18 个字符");
theform.password.value="";
theform.password2.value="";
theform.password.focus();
return false;
}
if (theform.password.value!=theform.password2.value) {
alert("两次输入的密码不相同,请确认并重新输入!");
theform.password.value="";
theform.password2.value="";
theform.password.focus();
return false;
}
if (theform.question1.value=="") {
alert("请输入的第一组密码提示问题!");
theform.question1.focus();
return false;
}
var question1=theform.question1.value;
if (question1.length<6) {
alert("你所输入的第一组密码提示问题太短,至少也要输入 6 个字符");
theform.question1.focus();
return false;
}
if (question1.length>30) {
alert("你所输入的第一组密码提示问题太长,最多只能输入 30 个字符");
theform.question1.focus();
return false;
}
if (theform.answer1.value=="") {
alert("请输入的第一组密码提示问题答案!");
theform.answer1.focus();
return false;
}
var answer1=theform.answer1.value;
if (answer1.length<6) {
alert("你所输入的第一组密码提示问题答案太短,至少也要输入 6 个字符");
theform.answer1.focus();
return false;
}
if (answer1.length>20) {
alert("你所输入的第一组密码提示问题答案太长,最多只能输入 20 个字符");
theform.answer1.focus();
return false;
}
if (theform.question2.value=="") {
alert("请输入的第二组密码提示问题!");
theform.question2.focus();
return false;
}
var question2=theform.question2.value;
if (question2.length<6) {
alert("你所输入的第二组密码提示问题太短,至少也要输入 6 个字符");
theform.question2.focus();
return false;
}
if (question2.length>30) {
alert("你所输入的第二组密码提示问题太长,最多只能输入 30 个字符");
theform.question2.focus();
return false;
}
if (theform.answer2.value=="") {
alert("请输入的第二组密码提示问题答案!");
theform.answer2.focus();
return false;
}
var answer2=theform.answer2.value;
if (answer2.length<6) {
alert("你所输入的第二组密码提示问题答案太短,至少也要输入 6 个字符");
theform.answer2.focus();
return false;
}
if (answer2.length>20) {
alert("你所输入的第二组密码提示问题答案太长,最多只能输入 20 个字符");
theform.answer2.focus();
return false;
}
}
//-->
</script>
<input class="button" type="submit" value="提交申请" name="submit">
<input class="button" type="reset" value="重置表单" name="reset">
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<%end sub
sub edit()
UserID=replace(trim(request("ID")),"'","")
set rs=server.createobject("adodb.recordset")
sql="select * from userinfo where ID="&UserID&""
rs.open sql,conn,1,1
if rs.eof and rs.bof then
Response.Write ("<script>alert(' 操作错误!\n\n 用户不存在。');history.back();</script>")
Response.end
End If
%>
<table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" border="0" align="center">
<form name="uform" onsubmit="return process_data(this)" method="post" action="admin_Save.asp?info=user_edit&ID=<%=UserID%>">
<tr>
<td>
<table cellspacing="1" cellpadding="4" width="100%" border="0">
<tr>
<td bgcolor="#1C3566" colspan="3">
<font color="#FFFFFF"><b>资料修改</b>,请输入完整的信息.</font></td>
</tr>
<tr>
<td bgcolor="#1C3566" colspan="3">
<font color="#FFFFFF"><b>必填选项</b>,带*的均为必填选项,除用户名外,其它所有选项均为保密.</font></td>
</tr>
<tr bgcolor="#dfefff">
<td width="20%"> <input type="button" value="重设昵称" class="button" onclick="window.open("admin_userinfo.asp?info=add_name&ID=<%=UserID%>","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=390,height=218");"></td>
<td width="30%"> <input type="button" value="重设密码" class="button" onclick="window.open("admin_userinfo.asp?info=modpassword&ID=<%=UserID%>","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=390,height=218");"></td>
<td width="50%"> <input type="button" value="修正积分及其他" class="button" onclick="window.open("admin_userinfo.asp?info=modmo&ID=<%=UserID%>","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=260");"></td>
</tr>
<tr bgcolor="#dfefff">
<td width="20%">用户名:<br>
</td>
<td width="30%">
<input maxlength="16" name="username" disabled value="<%=rs("UserName")%>" class='form' size="25">
</td>
<td width="50%"> *用户名长度<font face="Times New Roman">2-18</font>字符,可使用英文字母、数字,第一位不得为数字。
</td>
</tr>
<tr bgcolor="#ffffff">
<td>
<p>Email地址:<br>
</p>
</td>
<td>
<input maxlength="50" value="<%=rs("email")%>" onchange="javascript:this.value=this.value.toLowerCase();" size="38" name="email" class='form'></td>
<td> *50个字符以内,请如实填写,以保证身份验证通过和取回密码。</td>
</tr>
<tr bgcolor="#dfefff">
<td>重复确认Email地址:</td>
<td>
<input maxlength="50" value="<%=rs("email")%>" onchange="javascript:this.value=this.value.toLowerCase();" size="38" name="email2" class='form'></td>
<td> *请再输入Email地址。</td>
</tr>
<tr valign="top" bgcolor="#ffffff">
<td nowrap>性别:</td>
<td>
<input type="radio" name="usersex" value="先生" <%if rs("sex")="先生" then response.write"checked" end if%>>
男
<input type="radio" name="usersex" value="女士" <%if rs("sex")="女士" then response.write"checked" end if%>>
女 </td>
<td> *请输入您的性别</td>
</tr>
<tr>
<td bgcolor="#1C3566" colspan="3">
<font color="#FFFFFF"><b>第一组密码保护设置</b>(当您遗失密码的时候,可通过填写密码保护资料来设置、启用新的密码)</font></td>
</tr>
<tr valign="top" bgcolor="#dfefff">
<td>密码提示问题<font face="Times New Roman">A</font>:</td>
<td>
<input value="<%=rs("question1")%>" name="question1" type="text" id="question1" maxlength="30" size="35" class='form'></td>
<td> *当您忘记密码时可以通过密码提示问题和答案找回密码 <br>
例如:我的哥哥是谁? </td>
</tr>
<tr valign="top" bgcolor="#ffffff">
<td>密码提示答案<font face="Times New Roman">A</font>:</td>
<td>
<input value="<%=rs("answer1")%>" name="answer1" type="password" id="answer1" maxlength="20" size="35" class='form'></td>
<td> *请输入密码提示问题答案<br>
密码提示问题答案长度应不少于<font face="Times New Roman">6</font>位</td>
</tr>
<tr>
<td bgcolor="#1C3566" colspan="3">
<font color="#FFFFFF"><b>第二组密码保护设置</b>(当您遗失密码的时候,可通过填写密码保护资料来设置、启用新的密码)</font></td>
</tr>
<tr valign="top" bgcolor="#dfefff">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -