⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_add.asp

📁 矮子多用户版客户管理系统2.0Bate2
💻 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="&session("dd")&"" 
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 {	FONT-FAMILY: "宋体","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt}
TD {	FONT-FAMILY: "宋体","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt; line-height: 150%}
a:link {  color: #3366FF; text-decoration: none}
a:visited {  color: #3366FF; text-decoration: none}
a:hover {  color: #FF0080; text-decoration: underline}
.p1 {	FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.p2 {	COLOR: #c0c0c0; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
input {  font-family: "宋体"; font-size: 9pt;color:#0000FF}

</STYLE>
</head>
<script Language="JavaScript">
<!--
function Form1_Validator(theForm)
{ 



  if (theForm.name.value == "")
  {
    alert("用户名称必须填写!");
    theForm.name.focus();
    return (false);
  }

 
  if (theForm.name.value.length >30)
  {
    alert("用户名称填写是否正确?请确认!");
    theForm.name.focus();
    return (false);
  }

 

    return (true);
}
//-->
</script>

<body text="#000000" link="#3366FF" alink="#FF0080" vlink="#3366FF" topmargin="0" leftmargin="0">

<p align="center">

<br>
<font size="3"><b></b></font></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")%>">用户管理</a> - 增加新用户</td>
		</tr>
		</table>
    </div>
<form action="user_addok.asp" method="POST" onsubmit="return Form1_Validator(this)">
<input name="user_id" type="hidden"  value="<%=rs("user_id")%>">

  <ul>
  <input name="mclass_folder" type="hidden"  value="<%=rs("mclass_folder")%>">
    <div align="center">
      <center>
    <table border="0" cellspacing="1" cellpadding="0" width="554" height="101" bgcolor="#DADADA">
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">
   <p align="right"><font class="c">用户账号&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF">
   &nbsp;<input name="name" size="25" maxlength="100"><font size="2" class="c"  value="123456"><font color="#CC0000">
   </font></font><font color="#CC0000">此项目为必须填写项</font></td>
      </tr>
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">  
   <p align="right">用户姓名&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF">
   &nbsp;<input name="ming" size="25" maxlength="100"> 用户姓名可以不填</td>    
      </tr>
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">  
   <p align="right">用户性别&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF">   <input type="radio" value="0" name="sex" checked>男     
      <input type="radio" value="1" name="sex">女&nbsp;</td>    
      </tr>
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">  
   <p align="right"><font class="c">所属公司&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF">
   &nbsp;<input name="url"   size="25" maxlength="100"value=<%=rs("url")%>><font color="#CC0000"> </font>
	您的用户所属公司,非必填</td>    
      </tr>
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">初始<font class="c">密码&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF">
   &nbsp;<font size="2" class="c"  value="123456">[<font color="#CC0000">123456</font>]<font color="#CC0000"> 
	红色</font>部分为用户初始密码,</font>用户可自行进行更改</td>
      </tr>
      <tr> 
 <td width="143" height="25" bgcolor="#EBEBEB">     
   <p align="right"><font class="c">用户权限&nbsp; 
   </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF">
   &nbsp;<select size="1" name="quanxian">
	<option value="1">只读权限</option>
	<option value="2">读写权限</option>
	<option value="3">超级管理</option>
	</select></td>
      </tr>
      <tr> 
 <td width="143" height="25" bgcolor="#EBEBEB">     
   <p align="right">查阅权限&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF">
   &nbsp;<input type="checkbox" name="chayue" value="1">该用户仅可查阅自己添加的客户(如选中该项,用户将无法修改分类)</td>
      </tr>
      </table>   
    <br>

    <br>

    <font size="3" class="c" color="#000000">     
      <input type="submit" name="Submit" value="确定">&nbsp;&nbsp;&nbsp; 
      <input type="RESET" name="Reset" value="还原">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   </font>
      </center>
    </div>
  </ul>
  <p align="center">     

 <font size="3" class="c" color="#000000">     
      <input type="HIDDEN" name="action" value="RegSubmit">&nbsp; </font>
</form>
<p align="center"> </p>
</body>
</html>
<%end if%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -