soft_class.asp
来自「利用C++编写的网络跟踪代码」· ASP 代码 · 共 474 行 · 第 1/2 页
ASP
474 行
</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="10" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="12"><img src="new/dbanner.gif" width="592" height="70" border="0"></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" cellpadding="0" cellspacing="0" background="new/ccd.jpg">
<tr>
<td height="12"> <table width="399" height="22" border="0" align="left" cellpadding="0" cellspacing="0"">
<tr>
<td width="22" height="15"> <div align="right"><img src="new/ee.gif" width="10" height="12">
</div></td>
<td width="377" 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>
<% call ShowChildClass(2) %></td>
</tr>
</table></td>
</tr>
</table><table class="tde" width="592" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <table width="590" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top"> <div align="right">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
</div>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" class="tdbg_rightall" style="word-break:break-all">
<tr>
<td width="280" height="32" align="center"><div align="left"><img src="img/soft.gif" alt="讯雷6下载" border="0"> <span class="STYLE6"> 软件名称</span></div></td>
<td width="60" align="center"> 软件大小</td>
<td width="60" align="center"> 下载次数</td>
<td width="100" align="center"> 软件等级</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f2f2f2" style="word-break:break-all">
<%
sqlSoft="select 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,S.SoftIntro,S.OperatingSystem,S.SoftType 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 SpecialID>0 then
' sqlSoft=sqlSoft & " and S.SpecialID=" & SpecialID
'end if
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
totalput=0
response.Write "<tr><td colspan='6' height='30' bgcolor='#FFFFFF'>没有任何软件</td></tr>"
else
totalput=rsSoft.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
call SoftContent2()
else
if (currentPage-1)*MaxPerPage<totalPut then
rsSoft.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rsSoft.bookmark
call SoftContent2()
else
currentPage=1
call SoftContent2()
end if
end if
end if
rsSoft.close
set rsSoft=nothing
sub SoftContent2()
dim SoftNum
SoftNum=0
do while not rsSoft.eof
%>
<tr valign="middle" class="tdbg_leftall">
<td width="20" align="right">
<%
if rsSoft("OnTop")=true then
response.write "<img src='images/Soft_ontop.gif' alt='固顶软件'> "
elseif rsSoft("Elite")=true then
response.write "<img src='images/Soft_elite.gif' alt='推荐软件'> "
else
response.write "<img src='images/Soft_common.gif' alt='普通软件'> "
end if
%> </td>
<td width="260" height="26"> <strong>
<%response.write "<a href='Soft_Show.asp?SoftID=" & rsSoft("SoftID") & "' target='_blank'>" & rsSoft("SoftName") & " " & rsSoft("SoftVersion") & "</a>"%>
</strong></td>
<td width="60" align="center"><%=rsSoft("SoftSize") & " KB"%></td>
<td width="60" align="center"><%=rsSoft("Hits")%></td>
<td width="100" align="center"> <%=string(rsSoft("Stars"),"★")%></td>
</tr> <tr bgcolor="#FFFFFF">
<td height="5" colspan="5" valign="top"></td>
</tr>
<tr>
<td height="50" colspan="6" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td height="50" colspan="3" valign="top">·<%=Left(nohtml(rsSoft("SoftIntro")),200)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="269"> 运行平台:<%=rsSoft("OperatingSystem")%></td>
<td width="189"> 软件性质:
<%
select case rsSoft("SoftType")
case 1
response.write "国产软件"
case 2
response.write "国外软件"
case 3
response.write "汉化补丁"
case 4
response.write "程序源码"
case 5
response.write "电影下载"
case 6
response.write "FLASH动画"
case 7
response.write "其他"
end select
%> </td>
<td width="105"> 本日下载:<%=rsSoft("DayHits")%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="5" colspan="6" bgcolor="#FFFFFF"></td>
</tr>
<%
SoftNum=SoftNum+1
if SoftNum>=MaxPerPage then exit do
rsSoft.movenext
loop
end sub
%>
<tr class='tdbg_leftall'>
<td colspan="6">
<%
if totalput>0 then
call showpage(strFileName,totalput,MaxPerPage,false,true,"个软件")
end if
%> </td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table></td>
</tr>
</table></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="70" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CC0000">
<tr>
<td height="12"><div align="center"><font color="#FFFFFF">广告位(590*70)</font></div></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>
<% call PopAnnouceWindow(400,300) %>
<% call ShowAD(0) %>
<% call ShowAD(4) %>
<% call ShowAD(5) %>
</body>
</html>
<%
set rsSoft=nothing
set rsPic=nothing
call CloseConn()
%>
<!--#include file="end.asp"-->
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?