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

📄 list.asp

📁 html生成静态页的小程序
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Const dbdns=""%>
<!--#include file="AppCode/Conn.asp"-->
<!--#include file="AppCode/fun/function.asp"-->
<!--#include file="AppCode/Pager.asp"-->
<!--#include file="vbs.asp"-->
<%
ClassID=myCdbl(Request.QueryString("id"))
Sql="select * from Ok3w_Class where ID=" & ClassID
Rs.Open Sql,Conn,0,1
SortPath = Rs("SortPath")
SortName = Rs("SortName")
Rs.Close
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<base href="<%=GetPageUrlPath()%>" />
<title><%Call Class_PageTitle(SortPath)%> - 文章分类 - <%=SysSiteName%></title>
<script language="javascript">
var sPath = document.location.protocol + "//" + document.location.host + document.location.pathname;
if(sPath.indexOf("/article/")>=0)
{
	var sPath_tmp = sPath.split("/article/");
	var BasePath = sPath_tmp[0]+"/";
	document.write('<base href="'+BasePath+'" />');
}
</script>
<link href="css/css2.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/page.css">
</head>

<body>
<!--#include file="top.asp"-->
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="40">您当前位置:<a href="">网站首页</a> &gt;&gt;
    <%Call Class_Nav(SortPath)%> &gt;&gt; 文章列表</td>
    <form id="form1" name="form1" method="get" action="search.asp">
      <td width="344"><span style="font-weight: bold">站内查找:</span>
          <input name="keyword" type="text" id="keyword" size="29" />
          <input type="submit" name="Submit" value="搜索" />
      </td>
    </form>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #AEE1DC;">
        <tr>
          <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/index5_37.gif" style="border-bottom:1px solid #AEE1DC;">
              <tr>
                <td width="10" align="left" class="black14b">&nbsp;</td>
                <td align="left" class="black14b"><%=SortName%>&gt;&gt;</td>
                <td width="35" align="right"><img src="images/index5_39.gif" width="35" height="29" /></td>
              </tr>
          </table>
<!--小类导航 开始-->	
<%
Sql="select ID,SortName from Ok3w_Class where ParentID=" & ClassID & " order by OrderID desc"
Rs.Open Sql,Conn,0,1
If Not(Rs.Eof And Rs.Bof) Then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:8px 8px 0px 8px; line-height:200%;"><%Do While Not Rs.Eof%>
        <a href="article/list_<%=Rs("ID")%>_1.html"><%=Rs("SortName")%></a>
        <%
	Rs.MoveNext
	If Not Rs.Eof Then Response.Write(" <font color=""#999999"">|</font> ")
Loop
%>
    </td>
  </tr>
</table>
<hr size="1" color="#AEE1DC" />
<%End If
Rs.Close%>
<!--小类导航 结束-->          </td>
        </tr>
        <tr>
          <td height="311" valign="top"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
<%		  
Set Page = New TurnPage
Sql="select Id,Title,AddTime from Ok3w_Article where IsPass=1 and IsDelete=0 and SortPath like '%," & ClassID & ",%' order by AddTime desc,ID desc"
Call Page.GetRs(Conn,Rs,Sql,20)
i_Count = 0
Do While Not Rs.Eof And Not Page.Eof
i_Count = i_Count + 1
%>			
            <tr>
              <td width="10" height="30" align="center"><span class="gray">·</span></td>
              <td align="left"><a href="article/<%=Rs("Id")%>.html" class="gray14"><%=Rs("Title")%></a></td>
              <td width="130" align="right" class="gray"><%=Format_Time(Rs("AddTime"),1)%></td>
            </tr>
<%
	Rs.MoveNext
	Page.MoveNext
	If i_Count Mod 5 = 0 Or Rs.Eof Then
%>
			<tr>
              <td colspan="3"><hr size="1" color="#EBEBEB" /></td>
            </tr>
<%
	End If
Loop
Rs.Close
%>			
          </table>
            <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0">
              <tr>
                <td align="left"><%Call Page.GetPageHtmlList("article/list_" & ClassID)%></td>
              </tr>
          </table></td>
        </tr>
      </table>
     </td>
    <td width="360" align="right" valign="top"><table width="344" border="0" cellpadding="3" cellspacing="1" bgcolor="#AEE1DC">
      <tr>
        <td align="center" bgcolor="#FFFFFF"><%=GetAdSense(6)%></td>
      </tr>
    </table>
    <table width="344" border="0" cellpadding="0" cellspacing="1" bgcolor="#AEE1DC"  style="margin-top:8px;">
      <tr>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/index5_37.gif">
            <tr>
              <td width="10">&nbsp;</td>
              <td align="left" class="black14b">阅读排行</td>
              <td align="right"><img src="images/index5_39.gif" width="35" height="29" /></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td align="left" bgcolor="#FFFFFF" class="gray14"><%Call Ok3w_Article_List(ClassID,15,20,False,False,False,"hot")%></td>
      </tr>
    </table>
      <table width="344" border="0" cellpadding="3" cellspacing="1" bgcolor="#AEE1DC" style="margin-top:8px;">
        <tr>
          <td align="center" bgcolor="#FFFFFF"><%=GetAdSense(7)%></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="8"></td>
  </tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>

⌨️ 快捷键说明

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