📄 reg.asp
字号:
<!--#include file="conn.asp" -->
<%
if session("name")="" or session("dd")="" then
response.write "SORRY <br>"
response.write "数据在携带中出现意外!<br>"
response.write "<a href=login.asp>回去重来</a>"
response.end
end if
dim rs,sql
sql="select * from mclass where mclass_id="&session("mclass")&""
set rs=server.createobject("adodb.recordset")
rs.Open sql,conn,1,3
if not rs.EOF then
%>
<html>
<head>
<title>修改我的个人资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body,table {font-size: 9pt; font-family: 宋体}
input { font-size: 9pt; color: #000000; padding-top: 3px}
.c { font-family: 宋体; font-size: 9pt; font-style: normal; line-height: 12pt; font-weight: normal; font-variant: normal; text-decoration: none}
--></style>
</head>
<script Language="JavaScript">
<!--
function Form1_Validator(theForm)
{
if (theForm.rq.value == "")
{
alert("用户密码提示必须填写!");
theForm.rq.focus();
return (false);
}
if (theForm.aq.value == "")
{
alert("用户密码提示答案必须填写!");
theForm.aq.focus();
return (false);
}
if (theForm.waifenye.value.length <1)
{
alert("分页设置不得为空!");
theForm.waifenye.focus();
return (false);
}
if (theForm.fenye.value.length <1)
{
alert("分页设置不得为空!");
theForm.fenye.focus();
return (false);
}
if (theForm.fenye.value == "0")
{
alert("分页设置不得为“0”!");
theForm.fenye.focus();
return (false);
}
if (theForm.waifenye.value == "0")
{
alert("分页设置不得为“0”!");
theForm.waifenye.focus();
return (false);
}
{
var txt = theForm.fenye.value;
if(checknumber(txt))
{
alert("分页只允许输入数字!");
return false;
}
var txt2 = theForm.waifenye.value;
if(checknumber(txt2))
{
alert("分页只允许输入数字!");
return false;
}
return true;
}
function checknumber(String)
{
var Letters = "1234567890";
var i;
var c;
for( i = 0; i < String.length; i ++ )
{
c = String.charAt( i );
if (Letters.indexOf( c ) ==-1)
{
return true;
}
}
return false;
}
return (true);
}
//-->
</script>
<body text="#000000" link="#000080" alink="#800000" vlink="#000080" topmargin="0" leftmargin="0">
<br>
<div align="center">
<table border="0" width="514" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%"> </td>
</tr>
<tr>
<td style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%">
<a target="mainFrame" href="system_userlist.asp?mclass=<%=session("dd")%>" style="text-decoration: none">
<font color="#000000">个人资料</font></a> -
<a target="mainFrame" href="vbscript:history.back()" style="text-decoration: none">
<font color="#3366FF">返回上页</font></a></td>
</tr>
</table>
</div>
<form action="regedit.asp" method="POST"onsubmit="return Form1_Validator(this)">
<ul>
<div align="center">
<center>
<table border="0" cellspacing="1" cellpadding="0" width="554" height="1" bgcolor="#DADADA">
<tr>
<td height="25" bgcolor="#EBEBEB" colspan="2">
基本资料</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right"><font size="2" class="c">用 户 名 </font></p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input type=hidden name=mclass size=16 maxlength="12" value=<%=request("mclass")%>> <%=session("name")%></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right"><font size="2" class="c">管理密码 </font></p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input type="password" name="pass" size="13" maxlength="10"><font size="2" class="c" value=<%=rs("pass")%>><font color="#CC0000">
</font></font>如不修改密码,请留空</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right"><font size="2" class="c">密码确认 </font></p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input type="password" name="rpass" size="13" maxlength="10"><font size="2" class="c"><font color="#CC0000"> </font></font>如不修改密码,请留空</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">密码提示 </p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input type="text" name="rq" size="27" maxlength="27" value=<%=rs("rq")%>>
<font size="2" class="c"><font color="#CC0000">**</font></font>(如:我是谁?) </td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">提示答案 </p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input type="text" name="aq" size="27" maxlength="27" value=<%=rs("aq")%>><font size="2" class="c"><font color="#CC0000"> **</font></font>
(答案:我是我) </td>
</tr>
<tr>
<td height="25" bgcolor="#EBEBEB" colspan="2">
详细资料</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">真实姓名
</td>
<td height="25" bgcolor="#FFFFFF">
<input name="ming" size="27" maxlength="100" value="<%if rs("ming")="未填" then
response.write ""
else
response.write rs("ming")
end if%>"><font color="#CC0000"> </font> </td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">性 别
</td>
<td height="25" bgcolor="#FFFFFF"><%
if rs("sex") ="0" then
response.write"<input type=radio value=0 name=sex checked>男"
response.write"<input type=radio value=1 name=sex >女"
else
response.write"<input type=radio value=0 name=sex >男"
response.write"<input type=radio value=1 name=sex checked>女"
end if
%>
</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right"><font size="2" class="c">我的公司 </font></p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input name="url" size="27" maxlength="100" value="<%if rs("url")="未填" then
response.write ""
else
response.write rs("url")
end if%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">我的部门
</td>
<td height="25" bgcolor="#FFFFFF">
<input name="bumen" size="27" maxlength="100" value="<%if rs("bumen")="未填" then
response.write ""
else
response.write rs("bumen")
end if%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">我的职务
</td>
<td height="25" bgcolor="#FFFFFF">
<input name="zhiwu" size="27" maxlength="100" value="<%if rs("zhiwu")="未填" then
response.write ""
else
response.write rs("zhiwu")
end if%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">我的电话 </td>
<td height="25" bgcolor="#FFFFFF">
<input name="phone" size="27" maxlength="100" value="<%if rs("phone")="未填" then
response.write ""
else
response.write rs("phone")
end if%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">我的手机
</td>
<td height="25" bgcolor="#FFFFFF">
<input name="mobile" size="27" maxlength="100" value="<%if rs("mobile")="未填" then
response.write ""
else
response.write rs("mobile")
end if%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">电子<font size="2" class="c">邮件
</font></p>
</td>
<td height="25" bgcolor="#FFFFFF">
<input maxlength="50" name="email" size="27" value="<%if rs("email")="未填" then
response.write ""
else
response.write rs("email")
end if%>"><font size="2" class="c"><font color="#CC0000"> </font>
</font>(如:cgamez@163.com) </td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">个人<font size="2" class="c">简介 </font></p>
</td>
<td height="25" bgcolor="#FFFFFF">
<textarea rows="3" name="show" cols="54"><%if rs("show")="未填" then
response.write ""
else
response.write rs("show")
end if%></textarea></td>
</tr>
<tr>
<td height="25" bgcolor="#EBEBEB" colspan="2">
其他信息</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">外页分页显示数 </td>
<td height="25" bgcolor="#FFFFFF">
<input name="waifenye" size="27" maxlength="100" value="<%=rs("waifenye")%>"> 外页每页显示内容条数</td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">内页分页显示数
</td>
<td height="25" bgcolor="#FFFFFF">
<input name="fenye" size="27" maxlength="100" value="<%=rs("fenye")%>">
内页每页显示内容条数</td>
</tr>
</table>
<br>
<br>
<font size="3" class="c" color="#000000">
<input type="SUBMIT" name="Submit" value="修改">
<input type="RESET" name="Reset" value="还原"> <input type="HIDDEN" name="action" value="RegSubmit">
</font>
</center>
</div>
</ul>
</form>
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -