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

📄 topiclist.asp

📁 92google生成HTML新闻系统.rar
💻 ASP
字号:
<!--#include file="head.htm"-->
<!--#include file="conn.asp"-->
<html><head>
<title>Google排名 Baidu排名 排名研究 网络营销</title>
<meta name="keywords" content="就爱Google为您提供Google排名 Baidu排名 排名研究 网络营销 营销知识 营销服务">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<link href=./css/main.css rel=stylesheet>
<body BGCOLOR="#FFFFFF" leftmargin="0" topmargin="0"><div align=center>

<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table width="750" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top" bgcolor="f6f6f6"> 
            <table width="550" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td> 
                  <table width="548" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                        <td height="105">&nbsp;</td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td> 
                  <table width="548" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="3"><img src="images/witer.GIF" width="1" height="1"></td>
                    </tr>
                  </table>
                  <table width="548" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="3" background="images/dot_line.gif"><img src="images/dot_line.gif" width="3" height="3"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="3"><img src="images/witer.GIF" width="1" height="1"></td>
              </tr>
            </table>
            <table border="0" width="95%" align="CENTER">
              <tr> 
                  <td height="20">当前位置:<b><a href="http://www.92google.com"><font color="#666666" face="Arial, Helvetica, sans-serif">92Google</font></a></b>&gt;&gt;新闻专题</td>
              </tr>
            </table>
            <%
Const PAGESIZE=40
Const PARTSIZE=10
Atopicid=trim(request("topicid"))
if request("topicid")="" then
response.write"<center><br><br><font color=red>您所连接的专题不存在!</font><br><br>"
else
set rs1 = server.CreateObject ("Adodb.recordset")
sql="select topicid,topicname,topicinfo from topic where topicid="& request("topicid")
rs1.open sql,conn,1,1
if rs1.eof or rs1.bof then
response.write"<center><br><br><font color=red>您所连接的专题不存在!</font><br><br>"
else
%>
            <br>
            <table width="500" border="0" cellspacing="1" cellpadding="3" align="CENTER" bgcolor="#666666">
              <tr> 
                <td width="29" bgcolor="#CCCCCC">
                  <div align="CENTER"><strong><img src="images/ico.gif" alt="网络营销" width="11" height="12"></strong><font color="#CCCCCC"> 
                      </font></div>
                </td>
                <td bgcolor="#666666" width="468"><b>  </b><font color="#FFFFFF"><%=rs1("topicname")%></font></td>
              </tr>
            </table>
            <table width="500" border="0" cellspacing="0" cellpadding="0" align="CENTER">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <table width="500" border="0" cellpadding="5" cellspacing="1" align="CENTER" bgcolor="999999">
              <tr>
                <td valign="top" bgcolor="#eeeeee" class=c><b><font color="#FF0000">专题介绍:</font></b><font color=#666666><b><%=rs1("topicinfo")%></b></font></td>
              </tr>
              <tr> 
                <td valign="top" bgcolor="e1e1e1" class=c> 
                  <ul>
                    <%
dim pagecount,page,Spage,Epage,recordcount,i
page = request.querystring("page")
if page = "" or IsNull(page) then page = 1
if not IsNumeric(page) then page = 1
page = Cint(page)
set rs = server.CreateObject ("Adodb.recordset")
sql="select id,title,boardid,fpath,fname,addtime,ifshow from article where ifshow=1 and topicid="&request("topicid")&" order by id desc"

rs.open sql,conn,1,1
recordcount = RS.RecordCount
RS.PageSize = PAGESIZE
pagecount = RS.PageCount
if page < 1 then
    page = 1
elseif page > pagecount then
    page = pagecount
end if
if RS.EOF  then
    Response.Write("<center><font color=red>目前还没有内容</font>")
else
  if recordcount > 0 then RS.AbsolutePage = page
  for i = 1 to PAGESIZE
  if RS.EOF then exit for
%>
                    <li><a  href=./<%=rs("fpath")%>/<%=rs("fname")%> target=_blank><%=rs("title")%></a><br>
                      <%
RS.MoveNext()
next
end if
%>
                  </ul>
                  <%if pagecount > 0 then
    response.write("<table width=""95%"" align=center cellspacing=3 cellpadding=3><tr><td align=right>")
    response.write("页次:<font color=red><b>" & page & "</font>/" & pagecount & "</b>&nbsp;&nbsp;每页<b>" & pagesize & "</b>&nbsp;&nbsp;共<b>" & recordcount & "</b>篇文章&nbsp;&nbsp;分页:")
    Spage = page mod PARTSIZE
    if page > PARTSIZE then
        if Spage = 0 then Spage = PARTSIZE
        Spage = page - Spage + 1
    else
        Spage = 1
    end if
    Epage = Spage + PARTSIZE - 1
    if Epage > pagecount then Epage = pagecount
    if page > PARTSIZE then
        response.write("<a href=""topiclist.asp?topicid=" & Atopicid & "&page=" & Spage - 1 & """>[<<]</a>")
    end if
    for i = Spage to Epage
        if i = page then
            response.write("[<font color=red><b>" & i & "</b></font>]")
        else
            response.write("[<a href=""topiclist.asp?topicid=" & Atopicid & "&page=" & i & """>" & i & "</a>]")
        end if
    next
    if Epage < pagecount then
        response.write("<a href=""topiclist.asp?topicid=" & Atopicid & "&page=" & Epage + 1 & """>[>>]</a>")
    end if
    if Spage <> 1 then response.write("[<a href=""topiclist.asp?topicid=" & Atopicid & "&page=1"">首页</a>]")
    if Epage <> pagecount then response.write("[<a href=""topiclist.asp?topicid=" & Atopicid & "&page=" & pagecount & """>尾页</a>]")
    response.write("</td></tr></table><br>")    
end if
rs.close
set rs=nothing
%>
                  <%end if
  end if 
  rs1.close
  set rs1=nothing
%>
                </td>
              </tr>
            </table>
            <table width="500" border="0" cellspacing="0" cellpadding="0" align="CENTER">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <div align="CENTER"></div>
          </td>
          <td width="200" valign="top" bgcolor="#f6f6f6"> 
              <table width="198" border="0" cellspacing="1" cellpadding="0" height="100%" bgcolor="#999999">
                <tr> 
                  <td bgcolor="#CCCCCC" valign="TOP" height="110"> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#666666">
                      <tr> 
                        <td width="21"> 
                          <div align="CENTER"><img src="images/ico.gif" alt="网络营销" width="11" height="12"></div>
                        </td>
                        <td width="157"><font color="#FFFFFF">文章搜索</font></td>
                      </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
                      <tr> 
                        <form action="search.asp" method="post">
                          <td> 
                            <div align="RIGHT"> 
                              <div align="CENTER"> 
                                <input type=text size=12 name="keyword">
                                <input type=submit value="搜索" name="submit">
                                <input type=hidden name=datesearch value=all>
                                <input type="hidden" name="AreaSearch" value=1>
                              </div>
                            </div>
                          </td>
                        </form>
                      </tr>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0" align="center" height="50" width="190">
                      <tr> 
                        <td height="55"><img src="images/ad/sms1.gif" alt="网络营销" width="190" height="50" border="0"></a></td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr> 
                  <td bgcolor="#CCCCCC" valign="TOP" height="195"><img src="images/ad/sms.gif" width="198" height="108" border="0"></a> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#666666">
                      <tr> 
                        <td width="21"> 
                          <div align="CENTER"><img src="images/ico.gif" alt="网络营销" width="11" height="12"></div>
                        </td>
                        <td width="157"><font color="#FFFFFF">精彩专题</font></td>
                      </tr>
                    </table>
                    <table width="198" border="0" cellspacing="0" cellpadding="5" height="185">
                      <tr> 
                        <td> 
                          <script language=JavaScript src="./js/topic.js"></script>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="2"><img src="images/witer.GIF" width="1" height="1"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</div>
<!--#include file="down.htm" --> 
</body>
</html>

⌨️ 快捷键说明

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