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

📄 default.asp

📁 生活者姿态整站程序 生活者姿态整站程序 生活者姿态整站程序
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/const.asp"-->
<%
   	dim totalPut   
   	dim CurrentPage
   	dim TotalPages
   	dim i,j
   	dim keyword
   	dim sql
   	dim rs
	dim updown
	dim order_name
	order_name=Request("Order")
   	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
	if request("updown")<>"" then
		updown="desc"
	else
		updown=""
	end if
	select case order_name
		case "showname"
		order_name="showname"
		case "hot"
		order_name="hot"
		case "dateandtime"
		order_name="dateandtime"
		case "hits"
		order_name="hits"
		case "orders"
		order_name="orders"
		case "size"
		order_name="size"
		case else
		order_name="id"
		updown="desc"
	end select
 	set rs=server.createobject("adodb.recordset")
	dim classid,Nclassid
	dim classname,Nclassname

	if request("classid")="" then
'		classid=""
'		classname="所有软件"
		classid="classid=1 and  "
		sql="select class from class where classid=1"
		rs.open sql,conn,1,1
		if rs.bof and rs.eof then
			response.write "还没有任何栏目,请到管理页面添加"
			response.end
		else
		classname=rs("class")
		end if
		rs.close
	else
		classid="classid="&cstr(request("classid"))&" and  "
		sql="select class from class where classid="&cstr(request("classid"))
		rs.open sql,conn,1,1
		classname=rs("class")
		rs.close
	end if
	if request("Nclassid")="" then
		Nclassid=""
		Nclassname="所有软件"
	else
		Nclassid=" Nclassid="&cstr(request("Nclassid"))&" and  "
		sql="select Nclass.Nclass,class.class from Nclass,class where Nclass.classid=class.classid and Nclass.Nclassid="&cstr(request("Nclassid"))
		rs.open sql,conn,1,1
		classname=rs("class")
		Nclassname=rs("Nclass")
		rs.close
	end if

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0052)http://www.ActiveEdu.net -->
<HTML>
<HEAD><TITLE><%=classname%></TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<link rel="stylesheet" href="images/style.css">

<SCRIPT language=javascript>
function popwin2(id,path)
{		window.open("openarticle.asp?id="+id+"&ppath="+path,"");
}
</SCRIPT>
</HEAD>
<BODY bgcolor=#ffffff topmargin="0">

<!--#include file="head_music.asp"-->
<table width=778 border=0 align="center" cellpadding=0 cellspacing=2 background="../images/bg2.gif">
  <tbody> 
  
<tr> 
            
      <td align=left width=22% valign="top"> <table width="140" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="426DB4">
          <tr> 
            <td height="20" background="../images/biao_t.gif"> <font color="#FFFFFF"> <A class=white href='Default.asp?classid=<%=request("classid")%>'><%=classname%></A></font></td>
          </tr>
          <tr> 
            <td bgcolor="#F7F7F7" height="20" valign="top"><br> <TABLE border=0 cellpadding=4 cellspacing=0 width=120 height="101" align="center">
                <TR> 
                  <TD width="120" height="101" 
                  valign=top background=images/a-27.gif bgcolor=#ffffff><FONT style=line-height:150%>
                    <%
	if request("classid")="" then
	sql="select Nclass,Nclassid from Nclass where classid=1"
	else
	sql="select Nclass,Nclassid from Nclass where classid="&request("classid")
	end if
	rs.open sql,conn,1,1%>
                    </FONT> <TABLE width="100%" border="0" cellspacing="0">
                      <%do while not rs.eof%>
                      <TR> 
                        <TD height="20" align="right" background="../images/news_bg.gif"><img src="images/into.gif"></td>
                        <TD height="20" align="left" background="../images/news_bg.gif"> 
                          <%if not Rs.eof then%>
                          <A href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=rs("Nclassid")%>"><%=Rs("Nclass")%></A></TD>
                        <%rs.movenext   
		end if %>
                      </TR>
                      <%loop
  Rs.Close
   %>
                    </TABLE> </TD>
                </TR>
              </TABLE></td>
          </tr>
        </table>
        <br>
        <table width="140" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="426DB4">
          <tr> 
            <td height="20" background="../images/biao_t.gif"> <font color="#FFFFFF"> 其他分类</font></td>
          </tr>
          <tr> 
            <td bgcolor="#F7F7F7" height="40" valign="top"> <TABLE border=0 cellpadding=4 cellspacing=0 width=120 align="center">
                <TR> 
                  <TD background=images/a-27.gif bgcolor=#ffffff valign=top width="191" align="center"> 
                    <form action="default.asp" method=get>
                      <select name="classid" size="1" id="classid" style="color:#008080;font-size: 9pt" onChange='javascript:submit()'>
                        <%
	sql="select class,classid from class"
	rs.open sql,conn,1,1
	if rs.bof and rs.eof then
%>
                        <option value="">Not Record!</option>
                        <%else%>
                        <%
	do while not rs.eof
%>
                        <option <%if request("classid")<>"" then%><%if cint(rs("classid"))=cint(request("classid")) then%> selected  <%end if%><%end if%>value="<%=rs("classid")%>"><%=rs("class")%></option>
                        <%
	rs.movenext
	loop
	end if
	rs.close
%>
                      </select>
                    </form></TD>
                </TR>
              </TABLE></td>
          </tr>
        </table> 
        <br>
        <table width="140" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="426DB4">
          <tr> 
            <td height="20" background="../images/biao_t.gif"> <font color="#FFFFFF"> 软件搜索</font></td>
          </tr>
          <tr> 
            <td bgcolor="#F7F7F7" height="40" valign="top"><TABLE border=0 cellpadding=4 cellspacing=0 width=120 height="100" align="center">
                <TR> 
                  <TD background=images/a-27.gif bgcolor=#ffffff valign=top width="191"> 
                    <%
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from Nclass order by Nclassid asc"
rs.open sql,conn,1,1
%>
                    <SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("Nclass"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("Nclassid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.Nclassid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT> <form method="post" name="myform" action="query.asp">
                      <input type="radio" name="action" value="title" checked>
                      名称 
                      <input type="radio" name="action" value="content">
                      简介<br>
                      栏目: 
                      <SELECT name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1" style="color:#008080;font-size: 9pt">
                        <OPTION selected value="">未指定条件</OPTION>
                        <% sql = "select * from class"
        rs.open sql,conn,1,1
        do while not rs.eof
        %>
                        <OPTION value="<%=trim(rs("classid"))%>"><%=trim(rs("class"))%></OPTION>
                        <%
        rs.movenext
        loop
        rs.close
        %>
                      </SELECT>

⌨️ 快捷键说明

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