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

📄 admin_name.asp

📁 客户管理系统使用ASP.NET和Access
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="islogin.asp"-->
<!--#include file="../include/md5.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from admin"
rs.open sql,conn,3,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看管理员</title>
<style type="text/css">
<!--
@import url("style.css");
@import url("../style/admin.css");
-->
</style>
</head>

<body >
<br>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="table_1">
  <tr> 
    <td align="center" class="table_1_top">查看管理员例表 <a href="?action=add" style="color:#ffffff">添加管理员</a> 
      <a style="color:#ffffff" href="javascript:openScript('admin_pass_mod.asp ',300,200)">修改密码</a></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
        <tr> 
          <td width="113" height="20"> <div align="center">用户名:</div></td>
          <td width="157"><div align="center">最后登入ip</div></td>
          <td width="252"><div align="center">最后登入时间</div></td>
          <td width="189"><div align="center">删除</div></td>
        </tr>
        <% do while not rs.eof %>
        <tr> 
          <td height="20"> <div align="center"><%=rs("name")%>(<%=rs("n")%>)</div></td>
          <td><div align="center"><%=rs("lastip")%></div></td>
          <td><div align="center"><%=rs("lastsj")%></div></td>
          <td><div align="center"><a href="admin_do.asp?id=<%=rs("id")%>&action=del&adminu=<%=rs("name")%>" onclick='javascript: return confirm("警告!!!要删除该用户吗??") '>删除</a></div></td>
        </tr>
        <%
	   rs.movenext 
       loop
	   %>
    </table></td>
  </tr>
</table>
<%if request("action")="add" then%>
<form name="form1" method="post" action="admin_do.asp?action=save">
<input name="action" type="hidden" size="15" value="save">
  <hr align="center" size="1" style="color:#FFFFFF; width:90%;">
  <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="80">添加管理员</td>
      <td width="60">用户名:</td>
      <td width="105"> <input name="name" type="text" id="name" size="15"> </td>
      <td width="64"> 密码: </td>
      <td width="153"><input name="pass" type="text" id="pass3" size="15"></td>
      <td width="88"> <input type="submit" name="Submit" value="提交"> <div align="center"> 
        </div></td>
    </tr>
  </table>
</form>
  <%end if%>
</body>
</html>
<%
  rs.close
  set rs=nothing
  conn.close
  set conn=nothing
%>
<SCRIPT LANGUAGE="JavaScript">
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,status=no' );
}
</SCRIPT>

⌨️ 快捷键说明

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