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

📄 admin.asp

📁 网络购物
💻 ASP
字号:
<%'=========================================''         凡人网络购物系统V4.0免费版'    FreeDown.Net info@freedown.net '            www.freedown.net'     版权所有·免费版仅供研究测试只用'            商业使用请购买正版''=========================================%>
<%
if session("admin_name")="" then
    response.redirect "login.asp"
end if
%>
<!--#include file="conn.asp"-->
<%
 if request("types")="addname" then
 response.redirect "ad.asp"
 end if
%>
<%
if request("types")="mod" then
response.redirect "ad.asp"
end if
%>
<%
if request("types")="del" then
response.redirect "ad.asp"
end if
%>
<html>
<head>
</head>

<body bgcolor="#FFFFFF" text="#000000" background="blue.gif">
<% set rs=server.createobject("adodb.recordset") 
   sql="select count(*) from admin"
   rs.open sql,conn,3,3
   if rs(0)=0 then
   response.write "<center>对不起,还没有管理员,请新增一个管理员。"
   rs.close
   set rs=nothing
 %>
<p align="center"><font style="font-size: 9pt; font-weight: 700">新增一个管理员</font></p>
  <form action="admin.asp" method=post>
    <table wadmin_idth="242" border="1" cellspacing="0" cellpadding="5" style="border-collapse: collapse" bordercolor="#FFFFFF" bgcolor="#F5EFE7">
      <tr> 
        <td wadmin_idth="71" height="30"><span style="font-size: 9pt">管理员:</span></td>
        <td wadmin_idth="155" height="30"> 
          <input type="text" name="admin_name1" size="20">
       
      </td>
    </tr>
    <tr> 
        <td wadmin_idth="71" height="30"><span style="font-size: 9pt">密&nbsp; 码:</span></td>
        <td wadmin_idth="155" align="center" height="30"> 
          <input type="admin_password" name="admin_pass1" size="20">
      </td>
    </tr>
  </table>
  <p>
    <input type="submit" name="addname" value="提交">
	<input type=hidden name="types" value="addname">
  </p>
   </form>
  <% else %>
    <div align="center">
  <p><font style="font-size: 9pt; font-weight: 700">新增一个管理员</font></p>
  <form action="admin.asp" method=post>
    <table wadmin_idth="242" border="1" bordercolor="#FFFFFF" style="border-collapse: collapse" cellpadding="5" cellspacing="0" bgcolor="#F5EFE7">
      <tr> 
        <td wadmin_idth="71" height="30"><span style="font-size: 9pt">管理员:</span></td>
        <td wadmin_idth="155" height="30"> 
          <input type="text" name="admin_name1" size="20">
       
      </td>
    </tr>
    <tr> 
        <td wadmin_idth="71" height="30"><span style="font-size: 9pt">密&nbsp; 码:</span></td>
        <td wadmin_idth="155" height="30"> 
          <input type="admin_password" name="admin_pass1" size="20">
      </td>
    </tr>
  </table>
  <p>
    <input type="submit" name="addname" value="提交">
	<input type=hidden name="types" value="addname">
  </p>
   </form>
   <% set rs3=server.createobject("adodb.recordset")
    sql3="select * from admin"
    rs3.open sql3,conn,3,3
  %>
 <%rs3.movefirst
   for i=1 to rs3.recordcount
  %>
  <div align="center">
 <form method=post action="admin.asp">
    <table wadmin_idth="400" border="1" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#FFFFFF" cellpadding="5" cellspacing="0">
      <tr>
        <td wadmin_idth="50" height="30"><%=trim(rs3("admin_id"))%> </td>
        <td wadmin_idth="140" height="30"> 
          <input type="text" name="admin_name" value="<%=trim(rs3("admin_name"))%>" size="10">
        </td>
        <td wadmin_idth="140" height="30"> 
          <input type="password" name="admin_pass" value="<%=trim(rs3("admin_pass"))%>" size="10"> 
          </td>
		<form method=post>
        <td wadmin_idth="59"> 
          <input type="submit" name="modify" value="修改">
		  <input type="hidden" name="admin_id" value="<%=rs3("admin_id")%>">
		  <input type="hidden" name="types" value="mod">
   </td>
   </form>
   <form method=post>
        <td wadmin_idth="57"> 
          <input type="submit" name="del" value="删除">
		  <input type="hidden" name="admin_id" value="<%=rs3("admin_id")%>">
		  <input type="hidden" name="types" value="del"><span style="font-size: 9pt">(修改后自动md5加密)</span>
   </td>
   </form>
   </tr>
   </table>
   </form>
 <%
 rs3.movenext
 next
 rs3.close
 set rs3=nothing
  end if
 conn.close
 set conn=nothing
%>
</div>
</body>
</html>

⌨️ 快捷键说明

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