📄 nobigclass.asp
字号:
rsnodigclass.Open rsnodigclass.Source,conn,1,1
if not rsnodigclass.EOF then
rsnodigclass.PageSize = MyPageSize
MaxPages = rsnodigclass.PageCount
rsnodigclass.absolutepage = MyPage
total = rsnodigclass.RecordCount
i = 0
%>
<tr>
<td>
<table width="98%" border="1" cellspacing="0" cellpadding="3" bordercolorlight=#cccccc bordercolordark=#ffffff align="center">
<!--网址换行显示1-->
<% do until rsnodigclass.Eof or i = rsnodigclass.PageSize %>
<tr>
<%
Content=htmlencode4(rsnodigclass("Content"))
%>
<% if not rsnodigclass.EOF then %>
<td width=25% align=center valign="middle">
<div align="center"> <a class=middle href="<%=rsnodigclass("Original")%>" target=_blank title="<%=CutStr(nohtml(rsnodigclass("Content")),80)%>"><%=CutStr(rsnodigclass("title"),30)%></a>
</div></td>
<%rsnodigclass.movenext
i = i + 1
end if %>
<!--网址换行显示2-->
<td width=25% align=center valign="middle">
<%if not rsnodigclass.EOF then%>
<div align="center"> <a class=middle href="<%=rsnodigclass("Original")%>" target=_blank title="<%=CutStr(nohtml(rsnodigclass("Content")),80)%>"><%=CutStr(rsnodigclass("title"),30)%></a>
</div>
</td>
<%rsnodigclass.movenext
i = i + 1
end if %>
</tr>
<!--网址换行结束-->
<%loop%>
</table></td>
<tr>
<td> <TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0 >
<tr>
<td width="100%" align=center valign="middle">共 <%=total%>
条,当前第 <%=Mypage%>/<%=Maxpages%> 页,每页 <%=MyPageSize%> 条
<%
url="nobigclass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid
request_smallClassid
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rsnosmall.PageSize)+1
if PageNextSize >1 then
PagePrev=PageShowSize*(PageNextSize-1)
Response.write "<a class=black href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a class=black href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a class=black href='" & Url & "&page=" & Prev_Page & "' title='第" & Prev_Page & "页'>上一页</a> "
end if
if Maxpages>=PageNextSize*PageShowSize then
PageSizeShow = PageShowSize
Else
PageSizeShow = Maxpages-PageShowSize*(PageNextSize-1)
End if
If PageSizeShow < 1 Then PageSizeShow = 1
for PageCounterSize=1 to PageSizeShow
PageLink = (PageCounterSize+PageNextSize*PageShowSize)-PageShowSize
if PageLink <> MyPage Then
Response.write "<a class=black href='" & Url & "&page=" & PageLink & "'>[" & PageLink & "]</a> "
else
Response.Write "<B>["& PageLink &"]</B> "
end if
If PageLink = MaxPages Then Exit for
Next
if Mypage+1 <=Pagetpage then
Next_Page = MyPage + 1
Response.write "<a class=black href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if
if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A class=black href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a class=black href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
else
Response.write "<tr><td align=center> 本大类无小类文章区暂无信息</td></tr>"
End If
rsnodigclass.close
set rsnodigclass=nothing
%>
</td>
</tr>
</table></tr></table>
</table>
</tr>
<tr>
<td>
</tr>
</table>
<!--网址模版-->
<% case 4 %>
<!--软件模版-->
<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<%set rsnodigclass=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(Forcast_SN)("key")="super" or Request.cookies(Forcast_SN)("key")="typemaster" or Request.cookies(Forcast_SN)("key")="bigmaster" or Request.cookies(Forcast_SN)("key")="smallmaster" or Request.cookies(Forcast_SN)("key")="check" then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="selfreg" then
if Request.cookies(Forcast_SN)("reglevel")=3 then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
end if
else
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1) order by newsid DESC"
end if
rsnodigclass.Open rsnodigclass.Source,conn,1,1
if not rsnodigclass.EOF then
rsnodigclass.PageSize = MyPageSize
MaxPages = rsnodigclass.PageCount
rsnodigclass.absolutepage = MyPage
total = rsnodigclass.RecordCount
i = 0
do until rsnodigclass.Eof or i = rsnodigclass.PageSize
if showyear=1 then
newsurl="ReadNews.asp?NewsID=" & rsnodigclass("NewsID")
newswwwurl=rsnodigclass("titleface")
datetime="<font class=middle>(" & year(rsnodigclass("UpdateTime")) &"年"& Month(rsnodigclass("UpdateTime")) &"月"& Day(rsnodigclass("UpdateTime")) &"日)</font>"
else
newsurl="ReadNews.asp?NewsID=" & rsnodigclass("NewsID")
newswwwurl=rsnodigclass("titleface")
datetime="<font class=middle>("& Month(rsnodigclass("UpdateTime")) &"月"& Day(rsnodigclass("UpdateTime")) &"日)</font>"
end if
if rsnodigclass("picnews")=1 then
img="<img src='images/news_img.gif' border='0'>"
else
img=""
end if
title=trim(rsnodigclass("title"))
title=replace(title,"<br>","")
%>
<tr>
<%
fileExt=lcase(getFileExtName(rsnodigclass("picname")))
Content=htmlencode4(rsnodigclass("Content"))
content=replace(content,"[---分页---]","")%>
<td><div align="center">
<table width="95%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#EFEFEF">
<td colspan="2"> <img src="images/news_img.gif" width="9" height="9">
<a class=middle href="<%if rsnodigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=htmlencode4(title)%>" target="_blank">
<font color="<%=rsnodigclass("titlecolor")%>"><strong>
<%=CutStr(title,40)%>
</strong></font> </a> </td>
<td width="22%" align="right" bgcolor="#EFEFEF">
<%if showtime="1" then%>
<%=datetime%>
<%end if%>
<%if showclick="1" then%>
<font color=#666666>[<%=rsnodigclass("click")%>]</font>
<%end if%>
</td>
<td width="13%" align="center">
<%if year(rsnodigclass("updatetime"))=year(date()) and month(rsnodigclass("updatetime"))=month(date()) and day(rsnodigclass("updatetime"))=day(date()) then%>
<img src="images/new.gif">
<%end if%>
<%if rsnodigclass("goodnews")="1" then%>
<img src="images/g.gif" >
<%end if%>
</td>
</tr>
<tr>
<td width="16%"> <a class=middle href="<%if rsnodigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target=_blank title="<%=htmlencode4(rsnodigclass("title"))%>">
<%if rsnodigclass("picname")=("") then%>
<img src="IMAGES/softno.gif" width="65" height="65" border=0 align="left">
<%else%>
<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
<img src="<%=FileUploadPath & rsnodigclass("picname")%>" width="65" height="65" border=0 align="left">
<%end if%>
<%if fileext="swf" then%>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width="65" height="65" border=0 >
<param name=movie value="<%=FileUploadPath & rsnodigclass("picname")%>">
<param name=quality value=high>
<param name='Play' value='-1'>
<param name='Loop' value='0'>
<param name='Menu' value='-1'>
<embed src="<%=FileUploadPath & rsnodigclass("picname")%>" width="6" 5height="65" border=0 pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
</object>
<%end if%>
<%end if%>
</a> </td>
<td colspan="3" valign="top"> <a class=middle href="<%if rsnodigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><%=CutStr(nohtml(rsnodigclass("Content")),250)%></a>
</td>
</tr>
</table>
</div>
</td>
</tr>
<%
rsnodigclass.MoveNext
i = i + 1
loop
%>
<TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0 >
<tr>
<td width="100%" align=center valign="middle">共 <%=total%>
条,当前第 <%=Mypage%>/<%=Maxpages%> 页,每页 <%=MyPageSize%> 条
<%
url="nobigclass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid
request_smallClassid
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rsnosmall.PageSize)+1
if PageNextSize >1 then
PagePrev=PageShowSize*(PageNextSize-1)
Response.write "<a class=black href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a class=black href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a class=black href='" & Url & "&page=" & Prev_Page & "' title='第" & Prev_Page & "页'>上一页</a> "
end if
if Maxpages>=PageNextSize*PageShowSize then
PageSizeShow = PageShowSize
Else
PageSizeShow = Maxpages-PageShowSize*(PageNextSize-1)
End if
If PageSizeShow < 1 Then PageSizeShow = 1
for PageCounterSize=1 to PageSizeShow
PageLink = (PageCounterSize+PageNextSize*PageShowSize)-PageShowSize
if PageLink <> MyPage Then
Response.write "<a class=black href='" & Url & "&page=" & PageLink & "'>[" & PageLink & "]</a> "
else
Response.Write "<B>["& PageLink &"]</B> "
end if
If PageLink = MaxPages Then Exit for
Next
if Mypage+1 <=Pagetpage then
Next_Page = MyPage + 1
Response.write "<a class=black href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if
if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A class=black href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a class=black href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
else
Response.write "<tr><td align=center> 本大类无小类文章区暂无信息</td></tr>"
End If
rsnosmall.close
set rsnosmall=nothing
%>
</td>
</tr>
</table>
<!--软件模版-->
<%end select%>
<!--无大类文章区结束-->
</td>
</tr>
<tr valign="top">
<td height="20" background="IMAGES/menu-d-t.gif"></td>
<td height="20" bgcolor="#FFFFFF"></td>
<td height="20" background="IMAGES/menu-l-t.gif" bgcolor="#FFFFFF" class="daohang"></td>
</tr>
</table>
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0"><!--最后的广告-->
<tr>
<td height="19" align="center" background="IMAGES/menu-guest-t.gif" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td valign="bottom">
<div align="center">
<a class=daohang href="./" >
<script language=javascript src=./zongg/ad.asp?i=13></script>
</a>
</div>
</td>
</tr>
</table>
<!--#include file="bottom.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -