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

📄 info_index.asp

📁 该软件是帮助大学生更好的生活
💻 ASP
字号:
<!--#include file="Inc/func_info.asp"-->
<%
'请勿改动下面这三行代码
const ChannelID=2
Const ShowRunTime="Yes"
MaxPerPage=20
SkinID=0
PageTitle="首页"
Set rsArticle= Server.CreateObject("ADODB.Recordset")
Set rsPic= Server.CreateObject("ADODB.Recordset")
%>
<html>
<head>
<title><%=strPageTitle & " >> " & PageTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="inc/Skin_CSS.asp"-->
<%call MenuJS()%>
</head>
<body <%=Body_Label%> onmousemove='HideMenu()'>
<!--#include file="top.asp"-->
<table border="0" align="center" cellpadding="0" cellspacing="0" class=border2>
  <tr>
    <td width="592" valign="top" style='padding:10px,0px,0px,10px'><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
              <tr> 
                <%
	dim sqlRoot,rsRoot,trs,arrClassID,TitleStr,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" width="276"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr><td class='title_bg_left'>&nbsp;
			</td>
                            <td class='title_bg_center'><%
				arrClassID=rsRoot(0)
				response.write "<a href='" & rsRoot(3) & "?ClassID=" & rsRoot(0) & "' title='" & rsRoot(6) & "'>" & rsRoot(1) & "</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
				%></td>
                            <td align="right" class='title_bg_right'>&nbsp;</td>
                          </tr></table>
						  
						  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="border4">
                                <tr> 
                                  <td valign="top"> 
                                  <%
sql="select top 6 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(20,True,True,false,1,false,True)
end if
rsArticle.close
				%></td>
                  </tr></table>                
						  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="10"></td>
                            </tr>
                          </table></td><%
			iClassID=iClassID+1
			if iClassID mod 2=0 then
				response.write "</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>"
			else
				response.write "<td></td>"
			end if
			rsRoot.movenext
		loop
	end if
	rsRoot.close
	set rsRoot=nothing
%>
      </tr></table>
	  
    </td><td width="186" rowspan="2" valign="top" background="Skin/1/td_bg_right.gif" style='padding:10px,10px,10px,10px'><table border="0" cellpadding="0" cellspacing="0" class="border186">
      <tr>
        <td class="title_txt_left">&nbsp;</td>
        <td class="title_txt_center">最 新 推 荐</td>
        <td class="title_txt_right">&nbsp;</td>
      </tr>
    </table>
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td valign="top" class="border4"><% call ShowElite(6,18) %></td>
        </tr>
      </table>      
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td class="title_txt_left">&nbsp;</td>
          <td class="title_txt_center">最 新 热 门</td>
          <td class="title_txt_right">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td valign="top" class="border4"><% call ShowHot(6,18) %></td>
        </tr>
      </table>      
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
      <table border="0"  cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td class="title_txt_left">&nbsp;</td>
          <td class="title_txt_center">专 题 栏 目</td>
          <td class="title_txt_right">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" height="100%" border="0"  cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td valign="top" class="border4"><% call ShowSpecial(8) %></td>
        </tr>
      </table>      
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
      <table border="0"  cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td class="title_txt_left">&nbsp;</td>
          <td class="title_txt_center">本 站 统 计</td>
          <td class="title_txt_right">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" height="100%" border="0"  cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td valign="top" class="border4"><% call ShowSiteCount() %></td>
        </tr>
      </table>      
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
      <table border="0"  cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td class="title_txt_left">&nbsp;</td>
          <td class="title_txt_center">用 户 排 行</td>
          <td class="title_txt_right">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" height="100%" border="0"  cellpadding="0" cellspacing="0" class="border186">
        <tr>
          <td valign="top" class="border4"><% call ShowTopUser(5) %></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td valign="top"><table width='100%' border='0' align="center"cellpadding='2' cellspacing='0' class="title" style="border-top:solid #999999 1px">
        <tr>
          <td width="22%" align="center"><img src="Images/checkarticle.gif" width="15" height="15" align="absmiddle">&nbsp;&nbsp;信息文章搜索:</td>
          <td width="78%" align="center"><% call ShowSearchForm("info_Search.asp",2) %></td>
        </tr>
      </table></td>
  </tr>
</table>
<% call Bottom() %>
</td>
</tr></table>
<% call PopAnnouceWindow(400,300) %>
<% call ShowAD(0) %>                         
<% call ShowAD(4) %>                         
<% call ShowAD(5) %>                         
</body>
</html>
<script>
 mtDropDown.initialize();
</script>
<%
set rsArticle=nothing
set rsPic=nothing
call CloseConn()
%>

⌨️ 快捷键说明

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