📄 system_edit.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
if session("quanxian")<"3" then
response.write "SORRY <br>"
response.write "您的权限不够!请勿尝试非法访问!<br>"
response.end
end if
dim rs,sql
sql="select * from mclass where mclass_id="&request("id")&" and user_id="&session("dd")&""
set rs=server.createobject("adodb.recordset")
rs.Open sql,conn,1,3
if not rs.EOF then
%>
<html>
<head>
<title>修改<%=rs("name")%>个人资料</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>
<body text="#000000" link="#000080" alink="#800000" vlink="#000080" topmargin="0" leftmargin="0">
<p align="center">
<br>
</p>
<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="color: #3366FF; text-decoration: none">用户管理</a> - <%=rs("name")%>的个人资料
-
<a target="mainFrame" href="vbscript:history.back()" style="text-decoration: none">
<font color="#3366FF">返回上页</font></a></td>
</tr>
</table>
</div>
<form action="system_regedit.asp" method="POST">
<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" width="408">
<input type=hidden name=mclass_id size=16 maxlength="12" value=<%=rs("mclass_id")%>> <%=rs("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" width="408">
<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" width="408">
<input type="password" name="rpass" size="13" maxlength="10"><font size="2" class="c"><font color="#CC0000"> </font></font>如不修改密码,请留空</td>
</tr>
<tr>
<td height="25" bgcolor="#EBEBEB" width="143">
<p align="right"><font size="2" class="c">用户权限
</font></td>
<td height="25" bgcolor="#FFFFFF" width="408">
<select size="1" name="quanxian">
<option value="1" <%if rs("quanxian")="1" then%>selected<%end if%>>只读权限</option>
<option value="2" <%if rs("quanxian")="2" then%>selected<%end if%>>读写权限</option>
<option value="3" <%if rs("quanxian")="3" then%>selected<%end if%>>超级管理</option>
<option value="0" <%if rs("quanxian")="0" then%>selected<%end if%>>账户停用</option>
</select></td>
</tr>
<tr>
<td height="25" bgcolor="#EBEBEB" width="143">
<p align="right">查阅权限 </td>
<td height="25" bgcolor="#FFFFFF" width="408">
<input type="checkbox" name="chayue" value="1" <%if rs("chayue")="1" then%>checked<%end if%>>该用户仅可查阅自己添加的客户(如选中该项,用户将无法修改分类)
</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" width="408">
<input name="ming" size="27" maxlength="100" value="<%=rs("ming")%>"><font color="#CC0000"> **</font> </td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">性 别
</td>
<td height="25" bgcolor="#FFFFFF" width="408"><%
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" width="408">
<input name="url" size="27" maxlength="100" value=<%=rs("url")%>></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">所<font size="2" class="c">属</font>部门
</td>
<td height="25" bgcolor="#FFFFFF" width="408">
<input name="bumen" size="27" maxlength="100" value="<%=rs("bumen")%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">用户职务
</td>
<td height="25" bgcolor="#FFFFFF" width="408">
<input name="zhiwu" size="27" maxlength="100" value="<%=rs("zhiwu")%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">用户电话 </td>
<td height="25" bgcolor="#FFFFFF" width="408">
<input name="phone" size="27" maxlength="100" value="<%=rs("phone")%>"></td>
</tr>
<tr>
<td width="143" height="25" bgcolor="#EBEBEB">
<p align="right">用户手机
</td>
<td height="25" bgcolor="#FFFFFF" width="408">
<input name="mobile" size="27" maxlength="100" value="<%=rs("mobile")%>"></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" width="408">
<input maxlength="50" name="email" size="27" value=<%=rs("email")%>><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" width="408">
<textarea rows="3" name="show" cols="54"><%=rs("show")%></textarea></td>
</tr>
</table>
<br>
<br>
<font size="3" class="c" color="#000000">
<input type="SUBMIT" name="Submit" value="修改">
<input type="RESET" name="Reset" value="还原">
</font>
</center>
</div>
</ul>
<p align="center">
<font size="3" class="c" color="#000000">
<input type="HIDDEN" name="action" value="RegSubmit"> </font>
</form>
<p align="center"> </p>
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -