article_index.asp

来自「利用C++编写的网络跟踪代码」· ASP 代码 · 共 405 行 · 第 1/2 页

ASP
405
字号
              </tr>
            </table>
            <table width="99%" height="5" border="0" align="center"  cellpadding="0" cellspacing="0">
              <tr> 
                <td height="5"> 
                  <% call ShowPicArticle3(0,4,16,3,0,125,100,55,false,true) %>
                </td>
              </tr>
            </table>
            <table width="100%" height="6" border="0" align="center"  cellpadding="0" cellspacing="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="12"></td>
        </tr>
      </table>
      <table width="592" height="26" border="0" align="center" class="44" cellpadding="0" cellspacing="0" background="new/ccd.jpg">
        <tr> 
          <td height="12"> <table  width="220" height="22" border="0" align="left" cellpadding="0" cellspacing="0"">
              <tr> 
                <td width="18" height="15"> <div align="right"><img src="new/ee.gif" width="10" height="13"> 
                  </div></td>
                <td width="195" style="FILTER: dropshadow(color=#cccccc,offx=1,offy=1);color:#333333"> 
                  <table width="100%" height="1" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="1"></td>
                    </tr>
                  </table>
                  &nbsp;&nbsp;栏目文章</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="12"></td>
        </tr>
      </table>
      <table  width="592" border="0" align="center" cellpadding="0" cellspacing="10" bgcolor="#F7f7f7" class="4">
        <tr align="center"> 
          <td width="100%" colspan="4" valign="middle"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <%
	dim ClassCount,iClassID
	sqlRoot="select C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID,C.Child,C.Readme From ArticleClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=0 and IsElite=True and LinkUrl='' order by C.RootID"
	Set rsRoot= Server.CreateObject("ADODB.Recordset")
	rsRoot.open sqlRoot,conn,1,1

	dim sqlClassAD,rsClassAD,ClassAD
	sqlClassAD="select * from Advertisement where IsSelected=True"
	sqlClassAD=sqlClassAD & " and (ChannelID=0 or ChannelID=" & ChannelID & ")"
	sqlClassAD=sqlClassAD & " and ADType=2 order by ID Desc"
	set rsClassAD=server.createobject("adodb.recordset")
	rsClassAD.open sqlClassAD,conn,1,1
	
	if rsRoot.bof and rsRoot.eof then 
		response.Write("还没有任何栏目,请首先添加栏目。")
	else
		ClassCount=rsRoot.recordcount
		iClassID=0
		do while not rsRoot.eof
%>
                <td valign="top"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td>
<table width="280" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="#EAEAEA" class="title_main">
                          <tr> 
                            <td width="5">&nbsp;</td>
                            <td height="25" > <b><font color=990000> </font></b>
                              <table width="100%" height="3" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="1"></td>
                                </tr>
                              </table>
                              <b><font color=cc0000>
                              <%
				arrClassID=rsRoot(0)
				response.write "·<a href='" & rsRoot(3) & "?ClassID=" & rsRoot(0) & "' title='" & rsRoot(6) & "'><font color=cc0000>" & rsRoot(1) & "</font></a>"
				if rsRoot(5)>0 then
					set trs=conn.execute("select ClassID from ArticleClass where RootID=" & rsRoot(2) & " and Child=0 and LinkUrl=''")
					do while not trs.eof
						arrClassID=arrClassID & "," & trs(0)
						trs.movenext
					loop
				end if
				%>
                              </font></b></td>
                            <td width="45" class="title_maintxt"> <table width="100%" height="3" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="1"></td>
                                </tr>
                              </table>
                              <%response.write "<a href='" & rsRoot(3) & "?ClassID=" & rsRoot(0) & "'><font color='#666666'>更多...</font></a>&nbsp;"%>
                            </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
                          <tr> 
                            <td height="100" valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="152" valign="top"><table width="100%" height="1" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr> 
                                        <td height="5"></td>
                                      </tr>
                                    </table>
                                    <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td> <%
sql="select top 8 A.ArticleID,A.ClassID,L.LayoutID,L.LayoutFileName,A.Title,A.Key,A.Author,A.CopyFrom,A.UpdateTime,A.Editor,A.TitleFontColor,A.TitleFontType,"
sql=sql & "A.Hits,A.OnTop,A.Hot,A.Elite,A.Passed,A.IncludePic,A.Stars,A.PaginationType,A.ReadLevel,A.ReadPoint,A.DefaultPicUrl from Article A"
sql=sql & " inner join Layout L on A.LayoutID=L.LayoutID where A.Deleted=False and A.Passed=True and A.ClassID in (" & arrClassID & ")  order by A.OnTop,A.ArticleID desc"
rsArticle.open sql,conn,1,1
if rsArticle.bof and  rsArticle.eof then
	response.write "<li>没有任何文章</li>"
else
	call ArticleContent(30,false,false,false,2,false,false)
end if
rsArticle.close
				%> </td>
                                      </tr>
                                    </table>
                                    
                                  </td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                   
                  </table></td>
                <%
			iClassID=iClassID+1
			if iClassID mod 2=0 then
				response.write "</tr><tr><td height='15'></td></tr><tr><td colspan='3' align='center'>"
				if not rsClassAD.bof and not rsClassAD.eof then
					if rsClassAD("isflash")=true then
						ClassAD= "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'"
						if rsClassAD("ImgWidth")>0 then ClassAD = ClassAD & " width='" & rsClassAD("ImgWidth") & "'"
						if rsClassAD("ImgHeight")>0 then ClassAD = ClassAD & " height='" & rsClassAD("ImgHeight") & "'"
						ClassAD = ClassAD & "><param name='movie' value='" & rsClassAD("ImgUrl") & "'><param name='quality' value='high'><embed src='" & rsClassAD("ImgUrl") & "' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'"
						if rsClassAD("ImgWidth")>0 then ClassAD = ClassAD & " width='" & rsClassAD("ImgWidth") & "'"
						if rsClassAD("ImgHeight")>0 then ClassAD = ClassAD & " height='" & rsClassAD("ImgHeight") & "'"
						ClassAD = ClassAD & "></embed></object>"
					else
						ClassAD ="<a href='" & rsClassAD("SiteUrl") & "' target='_blank' title='" & rsClassAD("SiteName") & ":" & rsClassAD("SiteUrl") & vbcrlf & rsClassAD("SiteIntro") & "'><img src='" & rsClassAD("ImgUrl") & "'"
						if rsClassAD("ImgWidth")>0 then ClassAD = ClassAD & " width='" & rsClassAD("ImgWidth") & "'"
						if rsClassAD("ImgHeight")>0 then ClassAD = ClassAD & " height='" & rsClassAD("ImgHeight") & "'"
						ClassAD = ClassAD & " border='0'></a>"
					end if
					response.write ClassAD
					rsClassAD.movenext
				end if
				response.write "</td><tr><td height='15'></td></tr><tr>"
			else
				response.write "<td width='5'></td>"
			end if
			rsRoot.movenext
		loop
	end if
	rsRoot.close
	set rsRoot=nothing
%>
              </tr>
            </table>
           </td>
        </tr>
      </table> 
      <table width="100%" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="12"></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="860" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="10"><img src="new/dbb.gif" width="860" height="18"></td>
  </tr>
</table>
<!--#include file="end.asp"-->
<% call PopAnnouceWindow(400,300) %>
<% call ShowAD(0) %>
<% call ShowAD(4) %>
<% call ShowAD(5) %>
</body>
</html>
<%
set rsArticle=nothing
set rsPic=nothing
call CloseConn()
%>


⌨️ 快捷键说明

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