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

📄 addczy.asp

📁 企业进销存管理系统
💻 ASP
字号:
<!--#include file="../conn/conn.asp"-->
<%'判断权限'
set rs=server.createobject("adodb.recordset")
sql="select * from userlist where name='"&session("name")&"' and quan='a'"
rs.open sql,conn,1,3
if rs.eof then%>
<script language="javascript">
alert("对不起!您没有这个权限")
history.back(1)
</script>
<%response.end()
else%>
<html>
<head>
<script language="JavaScript">
function k()
{cname.focus()}
function k1()
{if (event.keyCode==13)
{pass.focus()}}
function k2()
{if (event.keyCode==13)
{repass.focus()
repass.select()
}}
function ti()
{if (event.keyCode==13)
{send()}}
function send()
{
if (cname.value=="")
{alert("请输入操作员姓名");cname.focus();return}
if (pass.value=="")
{alert("请输入密码");pass.focus();return }
if (pass.value != repass.value)
{alert("输入的密码不同");pass.focus();pass.select();return }
myform.hcname.value=cname.value
myform.hpass.value=pass.value
myform.hrepass.value=repass.value
myform.hsel.value=sel.value
myform.hsubb.value=subb.value
myform.submit()
}
function res()
{
cname.value=""
pass.value=""
repass.value=""
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>操作员管理界面</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body onload="k()">
<table width="100%" height="292"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td height="140" valign="top">
<form action="check.asp" method="post" name="myform">
  <input type="hidden" name="hcname">
  <input type="hidden" name="hpass">
  <input type="hidden" name="hrepass">
  <input type="hidden" name="hsel">
  <input type="hidden" name="hsubb" value="确认">
</form>
 <table width="80%" border="1" align="center" cellpadding="0" cellspacing="0"  bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF">
  <tr bgcolor="#FF9933"> 
    <td height="18" colspan="2" nowrap class="word_white"> &nbsp;当前位置:系统设置> 添加操作员 >&gt;&gt;</td>
  </tr>  <tr bgcolor="#CCE3FF"> 
    <td width="28%" height="23" align="center">操作员姓名:</td>
    <td width="72%"><input name="cname" type="text" id="cname" onKeyUp="k1()"></td>
  </tr>
  <tr bgcolor="#CCE3FF">
    <td height="23" align="center">操作员权限:</td>
    <td>
        <select name="sel">
		<option value="c">普通操作员</option>
		<option value="a" selected>系统管理员</option>
        </select>
 </td>
  </tr>
  <tr bgcolor="#CCE3FF"> 
    <td height="23" align="center">输入 &nbsp;密码:</td>
    <td><input name="pass" type="password" id="pass" onKeyup="k2()">
      <font color="#3300FF">&nbsp; </font></td>
  </tr>
  <tr bgcolor="#CCE3FF"> 
    <td height="23" align="center">确认&nbsp;&nbsp;密码:</td>
    <td><input name="repass" type="password" id="repass" onkeyup="ti()">
    </td>
  </tr>
  <tr bgcolor="#CCE3FF"> 
    <td height="38" colspan="2"><div align="center"> 
        <input name="subb" type="button" class="btn_grey" id="subb2" onclick="send()" value="确认">
        &nbsp; 
        <input name="but" type="button" class="btn_grey" id="res" onclick="res()" value="重写">
    &nbsp; </div></td>
  </tr>
</table>
</form></td>
  </tr>
</table>
 <!--#include file="../Bottom.asp"-->
</body>
</html>
<%end if%>

⌨️ 快捷键说明

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