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

📄 soft_index.asp

📁 该软件是帮助大学生更好的生活
💻 ASP
字号:
<!--#include file="Inc/func_soft.asp"-->
<%
'请勿改动下面这三行代码
const ChannelID=3
Const ShowRunTime="Yes"
MaxPerPage=20
SkinID=0
PageTitle="首页"
Set rsSoft= 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()%>
<script language="JavaScript" type="text/JavaScript">
function refreshMe()
{
    window.refresh;
}
</script>
</head>
<body <%=Body_Label%> onmousemove='HideMenu()' onLoad="javascipt:setTimeout('refreshMe()',1000);">
<!--#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" cellpadding="0" cellspacing="0">
      <tr>
        <td class='title_bg_left'>&nbsp; </td>
        <td class='title_bg_center'>推荐下载</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" style='padding:5px,0px,5px,5px'><% call ShowPicSoft(0,4,10,1,4,120,100,200,false,true) %></td>
        </tr>
      </table>
      <table width="100%" border="0" 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 SoftClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=0 and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " 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("<img src='skin/1/xiao.gif'>还没有任何栏目,请首先添加栏目。") 
	else 
		ClassCount=rsRoot.recordcount
		iClassID=0
		do while not rsRoot.eof 
%>
          <td valign="top" width="275">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="10"></td>
              </tr>
            </table>
            <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 SoftClass where RootID=" & rsRoot(2) & " and Child=0 and LinkUrl='' and BrowsePurview>=" & UserLevel)
					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" style='padding:5px,0px,5px,5px'>
                  <%
	sqlSoft="select top 8 S.SoftID,S.ClassID,C.ClassName,L.LayoutFileName,S.SoftName,S.SoftVersion,S.Author,S.AuthorEmail,S.Keyword,S.UpdateTime,S.Editor,S.Hits,S.DayHits,S.WeekHits,S.MonthHits,S.SoftSize,S.OnTop,S.Elite,S.Passed,S.Stars,S.SoftLevel,S.SoftPoint from Soft S"
	sqlSoft=sqlSoft & " inner join (SoftClass C inner join Layout L on C.LayoutID=L.LayoutID) on S.ClassID=C.ClassID where S.Deleted=False and S.Passed=True "
	if instr(arrClassID,",")>0 then
		sqlSoft=sqlSoft &  " and S.ClassID in (" & arrClassID & ")"
	else
		sqlSoft=sqlSoft &  " and S.ClassID=" & Clng(arrClassID)
	end if
	sqlSoft=sqlSoft & " order by S.OnTop,S.SoftID desc"

	Set rsSoft= Server.CreateObject("ADODB.Recordset")
	rsSoft.open sqlSoft,conn,1,1
	if rsSoft.bof and  rsSoft.eof then
		response.Write("<img src='skin/1/xiao.gif'>没有任何软件")
	else
		call SoftContent(36,False,True,False,0,False,True)
	end if
	rsSoft.close
		%></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 width='5'></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 width="10" class="title_txt_left"></td>
          <td width="166" class="title_txt_center">今日下载Top10</td>
            <td width="10" class="title_txt_right"></td>
        </tr>
        <tr>
          <td height="60" colspan="3" valign="top" class="border4"><%call ShowTopDay(10,20)%></td>
        </tr>
      </table>
        <table border="0"  cellpadding="0" cellspacing="0" class="border186">
          <tr>
            <td height="10" colspan="3"></td>
          </tr>
          <tr>
            <td width="10" class="title_txt_left"></td>
            <td width="166" class="title_txt_center">本周下载Top10</td>
            <td width="10" class="title_txt_right"></td>
          </tr>
          <tr>
            <td height="60" colspan="3" valign="top" class="border4"><%call ShowTopWeek(10,20)%></td>
          </tr>
        </table>
        <table border="0"  cellpadding="0" cellspacing="0" class="border186">
          <tr>
            <td height="10" colspan="3"></td>
          </tr>
          <tr>
            <td width="10" class="title_txt_left"></td>
            <td width="166" class="title_txt_center">本月下载Top10</td>
            <td width="10" class="title_txt_right"></td>
          </tr>
          <tr>
            <td height="60" colspan="3" valign="top" class="border4"><%call ShowTopMonth(10,20)%></td>
          </tr>
        </table>
        <table border="0"  cellpadding="0" cellspacing="0" class="border186">
          <tr>
            <td height="10" colspan="3"></td>
          </tr>
          <tr>
            <td width="10" class="title_txt_left"></td>
            <td width="166" class="title_txt_center">累计下载Top10</td>
            <td width="10" class="title_txt_right"></td>
          </tr>
          <tr>
            <td height="60" colspan="3" valign="top" class="border4"><%call ShowTop(10,20,0)%></td>
          </tr>
        </table>
        <table border="0"  cellpadding="0" cellspacing="0" class="border186">
          <tr>
            <td height="10" colspan="3"></td>
          </tr>
          <tr>
            <td width="10" class="title_txt_left"></td>
            <td width="166" class="title_txt_center">下载统计</td>
            <td width="10" class="title_txt_right"></td>
          </tr>
          <tr>
            <td height="60" colspan="3" valign="top" class="border4"><% call ShowSiteCount() %></td>
          </tr>
        </table>
        <table border="0"  cellpadding="0" cellspacing="0" class="border186">
          <tr>
            <td height="10" colspan="3"></td>
          </tr>
          <tr>
            <td width="10" class="title_txt_left"></td>
            <td width="166" class="title_txt_center">最新调查</td>
            <td width="10" class="title_txt_right"></td>
          </tr>
          <tr>
            <td height="60" colspan="3" valign="top" class="border4"><% call ShowVote() %></td>
          </tr>
        </table>
        </td>
  </tr>
  <tr>
    <td valign="top" style='padding-left:10px'><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td class='title_bg_left'>&nbsp; </td>
            <td class='title_bg_center'>栏目导航</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" style='padding:5px,0px,5px,5px'><% call ShowClassNavigation() %></td>
          </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="10"></td>
          </tr>
        </table>
        <table width='100%' border='0' cellpadding='2' cellspacing='0' class="title" style="border-top:solid #999999 1px">
          <tr>
            <td width="22%"><img src="Images/checkarticle.gif" width="15" height="15" align="absmiddle">&nbsp;&nbsp;软件搜索:</td>
            <td width="78%"><% call ShowSearchForm("Soft_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 rsSoft=nothing                         
set rsPic=nothing                         
call CloseConn()                         
%>

⌨️ 快捷键说明

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