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

📄 adminuser.asp

📁 人事管理始终是一个及其复杂的工作。本系统对学校教职工人事档案管理尤其是对学校年报工作有着极大方便的意义。该系统是ASP程序网络版系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%> 
<!--#include file="../Connections/conn.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="2"
MM_authFailedURL="loginfail.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
  If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
         (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
    MM_grantAccess = true
  End If
End If
If Not MM_grantAccess Then
  MM_qsChar = "?"
  If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  MM_referrer = Request.ServerVariables("URL")
  if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  Response.Redirect(MM_authFailedURL)
End If
%>
<%
set Rs = Server.CreateObject("ADODB.Recordset")
Rs.ActiveConnection = MM_conn_STRING
Rs.Source = "SELECT * FROM yonghu ORDER BY uname ASC"
Rs.CursorType = 0
Rs.CursorLocation = 2
Rs.LockType = 3
Rs.Open()
Rs_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
Rs_numRows = Rs_numRows + Repeat1__numRows
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
  NextItem = "&" & Item & "="
  If (InStr(1,MM_removeList,NextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
  End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
  NextItem = "&" & Item & "="
  If (InStr(1,MM_removeList,NextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
  End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "")  Then MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<html>
<head>
<title>已经册用户的管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="files/cssresult.css" type="text/css">
<link rel="stylesheet" href="../files/cssresult.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" background="../files/bg.jpg" leftmargin="0">
<p align="center"><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"><img src="top.gif" width="777" height="106" usemap="#Map" border="0" align="middle"></span></font></b></font></b></font></b></font></b></font><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"> 
  <map name="Map"> 
    <area shape="rect" coords="7,79,59,104" href="../index1.asp" target="_self">
    <area shape="rect" coords="62,79,113,106" href="../search.asp" target="_self">
    <area shape="rect" coords="116,78,208,103" href="../add.asp" target="_self">
    <area shape="rect" coords="307,77,359,103" href="admuserlogin.asp" target="_self">
    <area shape="rect" coords="697,75,749,103" href="loginout.asp" target="_self">
    <area shape="rect" coords="640,75,693,103" href="../index.asp" target="_self">
    <area shape="rect" coords="212,78,303,103" href="../view.asp" target="_self">
    <area shape="rect" coords="687,12,763,36" href="../help.htm" target="_blank">
  </map>
  </span></font></b></font></b></font></b></font></b></font><font color="#0000FF"></font></b></font></b></font><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"> 
  </span></font></b></font></b></font><font color="#660000"><b class="cssindexda">        <br>
  <span class="cssresult"><br>
  下列为已注册的用户 </span></b></font></p>
<table width="777" border="1" align="center" height="8">
  <tr align="center"> 
    <td class="cssresult" colspan="2" height="2"><font color="#0000FF">编辑</font></td>
    <td class="cssresult" width="7%" height="2"><font color="#0000FF">用户名</font></td>
    <td class="cssresult" width="10%" height="2"><font color="#0000FF">密码</font></td>
    <td class="cssresult" width="10%" height="2"><font color="#0000FF">部门</font></td>
    <td class="cssresult" width="12%" height="2"><font color="#0000FF">真实姓名</font></td>
    <td class="cssresult" width="9%" height="2"><font color="#0000FF">访问级别</font></td>
    <td class="cssresult" width="10%" height="2"><font color="#0000FF">E-Mail</font></td>
    <td class="cssresult" width="10%" height="2"><font color="#0000FF">电话</font></td>
    <td class="cssresult" width="10%" height="2"><font color="#0000FF">申请用途</font></td>
    <td class="cssresult" width="10%" height="2"><font color="#0000FF">个人信息</font></td>
  </tr>
  <% 
While ((Repeat1__numRows <> 0) AND (NOT Rs.EOF)) 
%>
  <tr align="center"> 
    <td class="cssresult" width="6%" height="2"><A HREF="upduser.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "ID=" & Rs.Fields.Item("ID").Value %>" target="_blank">修改</A></td>
    <td class="cssresult" width="6%" height="2"><A HREF="deluser.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "ID=" & Rs.Fields.Item("ID").Value %>" target="_blank">删除</A></td>
    <td class="cssresult" width="7%" height="2"><%=Rs("uname")%></td>
    <td class="cssresult" width="10%" height="2"><%=Rs("upassword")%></td>
    <td class="cssresult" width="10%" height="2"><%=Rs("ubumen")%></td>
    <td class="cssresult" width="12%" height="2"><%=Rs("uxinming")%></td>
    <td class="cssresult" width="9%" height="2"><%=Rs("uaccesslevel")%></td>
    <td class="cssresult" width="10%" height="2"><%=Rs("uemail")%></td>
    <td class="cssresult" width="10%" height="2"><%=Rs("uphone")%></td>
    <td class="cssresult" width="10%" height="2"><%=Rs("uyongtu")%></td>
    <td class="cssresult" width="10%" height="2"><%=Rs("uxinxi")%></td>
  </tr>
  <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Rs.MoveNext()
Wend
%>
</table>
<div align="center"> 
  <table width="777" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td> 
        <p align="center"><b><font color="#FF0000"><br>
          [说明]</font></b></p>
        <p class="cssresult" align="left">此页为管理注册用户的管理页面,你可以通过“删除”删除指定的用户或者<br>
          通过“修改”来修改指定已经注册用户的资料,尤其是“访问级别”你也可以直接新增加账户请点击<a href="register.asp"><font color="#FF0000"><b>[添加用户]</b></font></a><br>
          <br>
          此处的<font color="#FF0000">“访问级别”</font>项的值<br>
          为<font color="#FF0000">“0”</font>时表示<font color="#FF0000">未开通状态</font>,在注册成功后即是这个“0”状态,有待于管理员通过此处的“修改”来开通或者<br>
            关闭用户的访问级别即访问权限!该用户只可以浏览本系统的几个页面,而不可以查得任何教工信息!<br>
          为<font color="#FF0000">“1”</font>时表示一般用户即<font color="#FF0000">只可读</font>用户<br>
          为<font color="#FF0000">“2”</font>时表示<font color="#FF0000">系统管理员</font>级即可执行增加、修改和删除教工信息及管理用户功能。</p>
  </td>
    </tr>
  </table>
  <p>&nbsp;</p>
  </div>
</body>
</html>
<%
Rs.Close()
%>

⌨️ 快捷键说明

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