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

📄 admin.asp

📁 一个超市管理系统
💻 ASP
字号:
<!-- #include file="setup.asp" -->
<%

if Request.Cookies("username")="" then
error("<li>您还还未<a href=login.asp>登陆</a>社区")
end if


if Request("menu")="out" then
session("pass")=""
response.redirect "Default.asp"
end if
%>


<META http-equiv=Content-Type content=text/html;charset=gb2312>
<link href=images/skins/<%=Request.Cookies("skins")%>/bbs.css rel=stylesheet>



<%
select case Request("menu")
case ""
index
case "left"
left
case "top"
top2
case "login"
login

case "pass"
pass



end select


sub top2


%><body topmargin=0  rightmargin=0  leftmargin=0><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
  <tr>
  <td width="100%" class=a1 height="20">
  
 <center>
<B><FONT face=幼圆 color=ffffff>第四代 BBS 系统 -- BBSXP</FONT> <FONT color=#ffff66>安全</FONT> <FONT 
color=#ff0033>快速</FONT> <FONT color=#33ff33>方便 </FONT><FONT color=#0000ff>可靠 
</FONT><FONT color=#000000>可升级</FONT></B> 
  </td>
  </tr>
  </table>

<%
end sub

sub pass

if instr(administrators,"|"&Request.Cookies("username")&"|")=0 then
error2("你不是社区区长,无法登陆后台管理")
end if

session("pass")=""&Request("pass")&""
if adminpassword<>session("pass") then
error2("社区管理密码错误")
end if


rs.Open "log",Conn,1,3
rs.addnew
rs("username")=""&Request.Cookies("username")&""
rs("ip")=""&remoteaddr&":"&Request.ServerVariables("REMOTE_PORT")&""
rs("windows")=Request.Servervariables("HTTP_USER_AGENT")
rs("remark")="登陆社区管理"
rs.update
rs.close

conn.execute("delete from [log] where DateDiff('d',logtime,now)>1 ")


%>
<link href=images/skins/<%=Request.Cookies("skins")%>/bbs.css rel=stylesheet>
<br><center>
<p></p>

登陆成功!<br><br>




<%if datapath="database/" then%>
<font color="#FF0000"><b>注意:请更改您的数据库存放路径!以防止数据库被非法下载!</b><br>提示:用记事本打开 setup.asp 文件进行修改</font>
<%end if%>



<%
htmlend
end sub




sub login





%>


<br><br><br>


<form action="admin.asp" method="post">
<input type="hidden" value="pass" name="menu">


<table width="333" border="0" cellspacing="1" cellpadding="2" align="center" class=a2>
<tr>
<td width="328" class=a1 height="25"><div align="center">
登陆社区管理</div>
</td></tr><tr>
<td height="19" width="328" valign="top" class=a3>
<div align="center">请输入管理密码:
<input size="15" name="pass" type="password"><br>
<input type="submit" value=" 登陆 " name="Submit1"> <input type="reset" value=" 取消 " name="Submit">
</div></td></tr> </table>
</form>
<%
htmlend
end sub

sub left

%>




<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
	BACKGROUND: #799ae1; MARGIN: 0px; FONT: 9pt 宋体
}
TABLE {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
TD {
	FONT: 12px 宋体
}
IMG {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
A {
	FONT: 12px 宋体; COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	COLOR: #428eff; TEXT-DECORATION: underline
}
.sec_menu {
	BORDER-RIGHT: white 1px solid; BACKGROUND: #d6dff7; OVERFLOW: hidden; BORDER-LEFT: white 1px solid; BORDER-BOTTOM: white 1px solid
}
.menu_title {
	
}
.menu_title SPAN {
	FONT-WEIGHT: bold; LEFT: 8px; COLOR: #215dc6; POSITION: relative; TOP: 2px
}
.menu_title2 {
	
}
.menu_title2 SPAN {
	FONT-WEIGHT: bold; LEFT: 8px; COLOR: #428eff; POSITION: relative; TOP: 2px
}
</STYLE>

<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}

function message()
{
window.open('loading.htm','message')
}
</SCRIPT>

</HEAD>
<center>
  <TBODY>
  <TR>
    <TD vAlign=top>
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD vAlign=bottom height=42><IMG height=38 
            src="images/title.gif" width=158> </TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD class=menu_title onmouseover="this.className='menu_title2';" 
          onmouseout="this.className='menu_title';" 
          background=images/title_bg_quit.gif height=25><SPAN><B>
          <font color="#215DC6"><%=Request.Cookies("username")%></font></B> | 
          
          
          
<a target=_top href=?menu=out><font color=215DC6><B>退出</a>


          
          
          </font></a></B></SPAN> </TD></TR></TBODY></TABLE>&nbsp; 
          
          
          
          
          
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" onclick=showsubmenu(0) 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_3.gif height=25><SPAN>用户管理
          </SPAN></TD></TR>
        <TR>
          <TD id=submenu0 style="DISPLAY: none">
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20>
               <a target="main" href="admin_user.asp?menu=user"><font color="#000000">注册用户管理</font></a></TD></TR>
              </TBODY></TABLE></DIV>
            <DIV style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
          
          
          
          

                
                
                
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" onclick=showsubmenu(3) 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_4.gif height=25><SPAN>论坛管理 
          </SPAN></TD></TR>
        <TR>
          <TD id=submenu3 style="DISPLAY: none">
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20>
                <a target="main" href="admin_bbs.asp?menu=classs"><font color="#000000">
                建立论坛数据</font></a></TD></TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_bbs.asp?menu=bbsmanage"><font color="#000000">管理论坛资料</font></a></TD></TR>
              </TBODY></TABLE></DIV>
            <DIV style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <tr>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" onclick=showsubmenu(2) 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_2.gif 
            height=25><SPAN>设置管理</SPAN> </TD>
        </tr>
        <tr>
          <TD id=submenu2 style="DISPLAY: none">
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20>
                <a target="main" href="admin_setup.asp?menu=link"><font color="#000000">友情链接管理</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_setup.asp?menu=upclubconfig"><font color="#000000">更新社区资料</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_setup.asp?menu=variable"><font color="#000000">社区变量设置</font></a></TD>
                </TR>
              </TBODY></TABLE></DIV>
            <DIV style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20></TD></TR></TBODY></TABLE></DIV></TD>
        </tr>
        <TR>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" onclick=showsubmenu(6) 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_5.gif height=25><SPAN>社区管理</SPAN> 
          </TD></TR>
        <TR>
          <TD id=submenu6 style="DISPLAY: none">
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20>
                <a target="main" href="admin_club.asp?menu=message"><font color="#000000">短讯息管理</font></a></TD>
                </TR>
              <TR>
                <TD height=19>
                <a target="main" href="admin_club.asp?menu=affiche"><font color="#000000">发布社区公告</font></a></TD>
                </TR>
              </TBODY></TABLE></DIV>
            <DIV style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" onclick=showsubmenu(4) 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_7.gif height=25><SPAN>数据管理 
            </SPAN></TD></TR>
        <TR>
          <TD id=submenu4 style="DISPLAY: none">
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20>
                <a target="main" href="admin_fso.asp?menu=bak"><font color="#000000">备份数据库</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_fso.asp?menu=compress"><font color="#000000">压缩数据库</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_fso.asp?menu=css"><font color="#000000">编辑CSS模板</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_fso.asp?menu=statroom"><font color="#000000">统计占用空间</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_fso.asp?menu=files"><font color="#000000">上传附件管理</font></a></TD>
                </TR>
              </TBODY></TABLE></DIV>
            <DIV style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" onclick=showsubmenu(5) 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_6.gif height=25><SPAN>其他功能</SPAN> 
          </TD></TR>
        <TR>
          <TD id=submenu5 style="DISPLAY: none">
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20>
                <a target="main" href="admin_other.asp?menu=circumstance"><font color="#000000">主机环境变量</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_other.asp?menu=discreteness"><font color="#000000">组件支持情况</font></a></TD>
                </TR>
              <TR>
                <TD height=20>
                <a target="main" href="admin_other.asp?menu=log"><font color="#000000">登陆操作记录</font></a></TD>
                </TR>
              </TBODY></TABLE></DIV>
            </TD></TR></TBODY></TABLE>&nbsp; 

      <TABLE cellSpacing=0 cellPadding=0 width=158 align=center>
        <TBODY>
        <TR>
          <TD class=menu_title id=menuTitle1 
          onmouseover="this.className='menu_title2';" 
          onmouseout="this.className='menu_title';" 
          background=images/admin_left_9.gif height=25><SPAN>BBSXP信息</SPAN> 
          </TD></TR>
        <TR>
          <TD>
            <DIV class=sec_menu style="WIDTH: 158px">
            <TABLE cellSpacing=0 cellPadding=0 width=135 align=center>
              <TBODY>
              <TR>
                <TD height=20><BR>版本:BBSXP 2003<BR><BR>版权所有:<BR>

⌨️ 快捷键说明

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