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

📄 index.asp

📁 信息管理系统 管理页面:admin/index.asp 用户和密码都是admin
💻 ASP
📖 第 1 页 / 共 2 页
字号:

<!--#include file="conn.asp"-->

<%
dim rs,sql,b,bb,i,tj,class1,class2,ijob
class1=trim(request("class1"))
class2=trim(request("class2"))
ijob=request("ijob")
if request("page")="" then
  ThisPage=1		
else
  ThisPage=request("page")
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-首页-</title>
<link rel="stylesheet" type="text/css" href="1.CSS">
<style type="text/css">
<!--
.样式1 {color: #FF0000}
-->
</style>
</head>
<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.thisForm.username.value.length<1)
	{
	    alert("用户名不能为空!");
	    return false;
	}
	if(document.thisForm.password.value.length<1)
	{
	    alert("密码不能为空!");
	    return false;
	}
}

//-->
</SCRIPT>
<body topmargin="0">
<div align="center">
<!--#include file=top.asp-->
</div>
<table cellSpacing="0" cellPadding="0" width="726" align="center" bgColor="#ffffff" border="0" height="410">
  <tr>
    <td height="331">
    <table cellSpacing="0" cellPadding="0" width="779" border="0" height="406">
      <tr>
        <td vAlign="top" width="180" height="406">
        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
          <tr>
            <td> </td>
          </tr>
          <!--buyer-->
          <tr>
            <td>
            <div align="left">
              <table cellSpacing="0" cellPadding="0" width="100" background="img/login_r3_c1.gif" border="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr>
              <td vAlign="top" width="173">
              <img border="0" src="img/mail_login_r1_c1.gif"></td>
                </tr>
                <tr>
              <td vAlign="top" background="img/mail_login_r3_c1.gif" width="173">
              <table class="font_10_e_black" cellSpacing="0" cellPadding="3" width="98%" align="center" border="0">
                <!---------------------->
                <form id="f1" name="thisForm" action="Loginchk.asp" method="POST">
                  <tr>
                    <td width="48%">
                    <p align="center">&nbsp;登陆帐号:</td>
                    <td width="52%">
                    <input class="form_e_10_black" id="username2" maxLength="20" size="10" name="username"></td>
                  </tr>
                  <tr>
                    <td>
                    <p align="center">&nbsp;登陆密码:</td>
                    <td>
                    <input class="form_e_10_black" id="password2" type="password" maxLength="32" size="10" value name="password"></td>
                  </tr>
                  <tr>
                    <td> <span class="样式1"><a href="forget.asp" class="样式1">忘记密码?</a></span></td>
                    <td>
                    <input onclick="javascript:return CheckForm();" type="image" src="img/mail_login_r5_c2.gif" border="0" name="I3">
                    </td>
                  </tr>
                </form>
              </table>
              </td>
                </tr>
                <tr>
              <td vAlign="top" width="173">
              <img alt src="img/mail_login_r7_c1.gif" border="0" name="mail_login_r7_c1"></td>
                </tr>
              </table>
            </div>
            </td>
          </tr>
          <tr>
            <td height="20"> </td>
          </tr>
          <tr>
            <td>
            <table class="font_10_e_blue" cellSpacing="0" cellPadding="0" width="100" border="0">
              <tr>
                <td><img border="0" src="img/left_form_r1_c1.gif"></td>
              </tr>
              <tr>
                <td background="img/left_form_r2_c1.gif">
                <table cellSpacing="1" cellPadding="0" width="95%" align="center" border="0">
<%
dim id
set rs=server.createobject("adodb.recordset")
sql = "select * from class1 order by paixu desc"
'Set Rs=Conn.Execute(SQL)
rs.open sql,conn,1,1
do while not rs.eof
id=rs("id")
%>
                  <tr>
                    <td width="8%">
                    <img src="img/point05.gif"> </td>
                    <td width="92%" bgColor="#f6f6f6"><a href="index.asp?class1=<%=id%>&ijob=1">
                    <font color="#800000"><%=rs("class1")%></font></a></td>
                  </tr>
                  <%
                  dim rs1,sql1,o
                  o=1
                  set rs1=server.createobject("adodb.recordset")
                  sql1 = "select * from class2 where class1="&id&" order by paixu desc"
                  'Set Rs1=Conn.Execute(SQL1)
                  rs1.open sql1,conn,1,1
                  %>
                  <tr>
                    <td vAlign="top" width="8%" bgColor="#f6f6f6"></td>
                    <td width="92%" bgColor="#f6f6f6">
                  <%do while not rs1.eof%><a href="index.asp?class1=<%=id%>&class2=<%=rs1("id")%>&ijob=2"><%=rs1("class2")%></a>&nbsp; 
                  <%
                  rs1.movenext
                  o=o+1
                  if o>5 then '控制二级分类显示个数如果要全部显示可以删除该判断代码
                  response.write "....."
                  exit do
                  end if
                  loop
                  rs1.close
                  set rs1=nothing
                  %>
                    </td>
                  </tr>
<%
rs.movenext
loop
rs.close
%>
                  <tr>
                    <td vAlign="top" width="8%"> </td>
                    <td width="92%" bgColor="#f6f6f6">
                    <div align="right">
                      <a href="classlist.asp">
                      <img src="img/_more.gif" border="0"></a></div>
                    </td>
                  </tr>
                </table>
                </td>
              </tr>
              <tr>
                <td>
                <img src="img/left_form_r4_c1.gif" border="0" name="left_form_r4_c1"></td>
              </tr>
            </table>
            </td>
          </tr>
          <tr>
            <td> </td>
          </tr>
          <tr>
            <td>
            <div align="left">              </div>
            </td>
          </tr>
        </table>
        </td>
        <td vAlign="top" width="417" height="406">
        <table width="595" height="288" border="0" cellPadding="0" cellSpacing="0" class="INPUT_index">
          <tr>
            <td height="17" width="597" colspan="2"></td>
          </tr>
          <tr>
              <td height="123" width="185" valign="top" style="border-bottom-style: solid; border-bottom-width: 1" bgcolor="#F6F6F6">
              <table width="91%" height="106" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" class="INPUT_index" style="border-collapse: collapse">
                <tr>
                  <td width="100%" height="22"> <img src="img/tan01.gif" width="150" height="25"></td>
                </tr>
                <tr>
                  <td height="84">
                  <table cellSpacing="1" cellPadding="0" align="right" border="0" height="95">
                    <form name="myform" action="search.asp" method="post">
  <tr>
                      <td width="91" height="35" bgcolor="#F6F6F6">
                      <div align="right">
                        关键字:</div>
                      </td>
                      <td width="79" height="35" bgcolor="#F6F6F6">
                      <input class="headinput" size="12" name="key"> </td>
                    </tr>
                    <tr>
                      <td height="32" bgcolor="#F6F6F6" width="91">
                      <div align="right">
                        类&nbsp;&nbsp;别:</div>
                      </td>
                      <td height="32" bgcolor="#F6F6F6" width="79">
                      <select name="select">
                      <option selected>全部范围</option>
                      </select></td>
 
                    </tr>

                  
                    <tr>
                      <td colspan="2"><div align="center">
                        <input name="B1" type="submit" class="greenfont" style="color: #2969AD; border: 1px solid #2E99CC" value="搜索" valign="center">                      
                        </div>
                      <td colSpan="2" height="29" bgcolor="#F6F6F6">
                        <table cellSpacing="0" cellPadding="0" width="101%" border="0" height="14" style="border-bottom-width: 0">                      <tr>
                          <td width="91" height="14" style="border-bottom-style: none; border-bottom-width: medium">
                         

                          </td>
                        </tr>
                     
                        </form>
                      </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>              </td>
              <td height="123" width="412" valign="top" style="border-bottom-style: solid; border-bottom-width: 1" bgcolor="#F6F6F6">
              <table border="0" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="57">
                <tr>

⌨️ 快捷键说明

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