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

📄 admin.asp

📁 SMS是SP服务中一种流行的服务类型,用户可以通过发送短信来定制电影,视频,交友,下载等在线服务, 联盟程序正是处于用户与SP商之间的一种接口平台,平台下可以发展站长,站长在自己的站上做宣传. 手
💻 ASP
字号:
<!--#include file="check.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员管理</title>
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {font-weight: bold}
-->
</style>
</head>
<body>
<%
dim action,adid
action=request.QueryString("action")
adminid=request.QueryString("adminid")
call ConnectionDatabase
select case action
case "list"
%>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
      <tr bgcolor="#E3E2C3">
        <td height="23"><div align="center" class="style4"> 管理员管理</div></td>
      </tr>
      <tr>
        <td height="111" valign="top">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
            <tr bgcolor="#EDEDE1">
              <td height="26" colspan="2"><span class="forumRow">&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;: : <span class="style4">管理员列表</span> : :</strong></span></td>
            </tr>
           
            <tr bgcolor="#E3E2C3">
              <td width="28%" height="26" align="left">&nbsp;&nbsp;&nbsp;&nbsp;管理员</td>
              <td height="26" align="left">操作</td>
              </tr>
			 <%
		    set Rs=GrateRs("select * from admin",1)
			do while not Rs.eof 
			%>
            <tr bgcolor="#F1F1F1">
              <td height="26" align="left"><%=Rs("username")%></td>
              <td height="26" align="left"> <a href="admin.asp?action=edit&adminid=<%=Rs("adminid")%>">编辑</a> / <a href="admin.asp?action=delete&adminid=<%=Rs("adminid")%>">删除</a> / <a href="admin.asp?action=addnew">增加管理员</a> </td>
              </tr>
			<%
			Rs.movenext
			loop
			%>
          </table>
       </td>
      </tr>
      <tr align="center" bgcolor="#EDEDE1">
        <td height="35" align="right">          <span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.ifbest.net" target="_blank">IFStudio</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<%
case "edit"
set Rs=GrateRs("select * from admin where adminid="&adminid,1)
%>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
      <tr bgcolor="#E3E2C3">
        <td height="23"><div align="center" class="style4">管理员管理</div></td>
      </tr>
      <tr>
        <td height="111" valign="top"><form name="form1" method="post" action="admin.asp?action=updateedit&adminid=<%=Rs("adminid")%>">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
            <tr bgcolor="#EDEDE1">
              <td height="26" colspan="3"><span class="forumRow">&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;: : <span class="style4">编辑管理员</span> : :</strong></span></td>
            </tr>
            <tr bgcolor="#F1F1F1">
              <td height="80" colspan="3" align="left">&nbsp;&nbsp;
                <table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                  <tr bgcolor="#F1F1F1">
                    <td width="17%" height="26" align="right">&nbsp;用户名  </td>
                    <td width="83%" height="26"><input name="inputusr" type="text" class="inputbox" id="inputusr" value="<%=Rs("username")%>"></td>
                  </tr>
                  <tr bgcolor="#F1F1F1">
                    <td height="26" align="right">密  码 </td>
                    <td height="26"><input name="inputpwd" type="password" class="inputbox" id="inputpwd"></td>
                  </tr>
                </table></td>
              </tr>
            <tr bgcolor="#F1F1F1">
              <td width="13%" height="26" align="center">&nbsp;</td>
              <td height="26" colspan="2" align="left"><input name="Submit" type="submit" class="inputbutton" value=" 提交修改 "></td>
            </tr>
          </table>
        </form></td>
      </tr>
      <tr align="center" bgcolor="#EDEDE1">
        <td height="35" align="right">          <span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.ifbest.net" target="_blank">IFStudio</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<%
case "addnew"
%>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
      <tr bgcolor="#E3E2C3">
        <td height="23"><div align="center" class="style4">管理员管理</div></td>
      </tr>
      <tr>
        <td height="111" valign="top"><form name="form1" method="post" action="admin.asp?action=updateaddnew">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
            <tr bgcolor="#EDEDE1">
              <td height="26" colspan="3"><span class="forumRow">&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;: : <span class="style4">编辑管理员</span> : :</strong></span></td>
            </tr>
            <tr bgcolor="#F1F1F1">
              <td height="80" colspan="3" align="left">&nbsp;&nbsp;
                <table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                  <tr bgcolor="#F1F1F1">
                    <td width="17%" height="26" align="right">&nbsp;用户名  </td>
                    <td width="83%" height="26"><input name="inputusr" type="text" class="inputbox" id="inputusr"></td>
                  </tr>
                  <tr bgcolor="#F1F1F1">
                    <td height="26" align="right">密  码 </td>
                    <td height="26"><input name="inputpwd" type="password" class="inputbox" id="inputpwd"></td>
                  </tr>
                </table></td>
              </tr>
            <tr bgcolor="#F1F1F1">
              <td width="13%" height="26" align="center">&nbsp;</td>
              <td height="26" colspan="2" align="left"><input name="Submit" type="submit" class="inputbutton" value=" 增加管理员 "></td>
            </tr>
          </table>
        </form></td>
      </tr>
      <tr align="center" bgcolor="#EDEDE1">
        <td height="35" align="right">          <span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.ifbest.net" target="_blank">IFStudio</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<%
case "delete"
set Rs=GrateRs("select * from admin where adminid="&adminid,3)
if not Rs.eof then 
Rs.delete
Rs.update
end if
response.write "<script language='JavaScript'>{window.alert('成功删除!');window.location='admin.asp?action=list';}</script>"
case "updateaddnew"
set Rs=GrateRs("select * from admin",3)
if request.form("inputusr")<>"" and request.form("inputpwd")<>"" then 
Rs.addnew
Rs("username")=request.form("inputusr")
Rs("password")=md5(request.form("inputpwd"))
Rs.update
else
 response.write "<script language='JavaScript'>{window.alert('错误,管理员资料没有填完整!');window.location='admin.asp?action=list';}</script>"
end if
response.write "<script language='JavaScript'>{window.alert('添加成功!');window.location='admin.asp?action=list';}</script>"
case "updateedit"
set Rs=GrateRs("select * from admin where adminid="&adminid,3)
if request.form("inputusr")<>"" then 
Rs("username")=request.form("inputusr")
if not request.form("inputpwd")="" then Rs("password")=md5(request.form("inputpwd"))
Rs.update
else
 response.write "<script language='JavaScript'>{window.alert('错误,管理员资料没有填完整!');window.location='admin.asp?action=list';}</script>"
end if
response.write "<script language='JavaScript'>{window.alert('修改成功!');window.location='admin.asp?action=list';}</script>"
case else
%>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="1" class="tablegg">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#F1F1F1">
        <tr bgcolor="#E3E2C3">
          <td height="23"><div align="center" class="style4">
            <div align="center" class="style4">管理员管理</div>
          </div></td>
        </tr>
        <tr>
          <td height="84" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
              <tr bgcolor="#EDEDE1">
                <td height="26" colspan="2"><span class="forumRow">&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;: : 系统错误 : :</strong></span></td>
              </tr>
              <tr bgcolor="#F1F1F1">
                <td width="10%" height="26" align="center">□</td>
                <td width="90%" height="26">您没有管理的权限或者您的登录已经超时,请重新<a href="index.asp" target="_parent">登录</a>!</td>
              </tr>
              <tr bgcolor="#F1F1F1">
                <td height="26" align="center">□</td>
                <td height="26">调用参数非法导致错误,请不要越权使用!</td>
              </tr>
          </table></td>
        </tr>
        <tr align="center" bgcolor="#EDEDE1">
          <td height="35" align="right"><span class="style1">Copyright 2003 - 2005 IFBEST Inc. AllRights Reserved Design By <a href="http://www.258sp.com" target="_blank">258sp商务平台</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<%
end select
call DBConnEnd
%>
</body>
</html>

⌨️ 快捷键说明

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