📄 e_nosmallclass.asp
字号:
<% if not rsnosmall.EOF then %>
<%
fileExt=lcase(getFileExtName(rsnosmall("picname")))
Content=htmlencode4(rsnosmall("Content"))
content=replace(content,"[---分页---]","")
%>
<a class=middle href="E_ReadNews.asp?NewsID=<%=rsnosmall("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>">
<%if rsnosmall("picname")=("") then%>
<img src="IMAGES/flashorno.gif" width="110" height="80" border=1 style=border-color:#000000 align=top>
<%else%>
<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
<img src="<%=FileUploadPath & rsnosmall("picname")%>" width="110" height="80" border=1 style=border-color:#000000 align=top>
<%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="110" height="80" border=0 >
<param name=movie value="<%=FileUploadPath & rsnosmall("picname")%>">
<param name=quality value=high>
<param name='Play' value='-1'>
<param name='Loop' value='0'>
<param name='Menu' value='-1'>
<embed src="<%=FileUploadPath & rsnosmall("picname")%>" width="110" height="80" 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><br>
<br>
<a class=middle href="E_ReadNews.asp?NewsID=<%=rsnosmall("NewsID")%>" target=_blank title="<%=htmlencode4(rsnosmall("title"))%>">
<%=CutStr(rsnosmall("title"),18)%> </a> </td>
<%rsnosmall.movenext
i = i + 1
end if
%>
<!--图片换行显示4-->
<td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all">
<% if not rsnosmall.EOF then %>
<%
fileExt=lcase(getFileExtName(rsnosmall("picname")))
Content=htmlencode4(rsnosmall("Content"))
content=replace(content,"[---分页---]","")
%>
<a class=middle href="E_ReadNews.asp?NewsID=<%=rsnosmall("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>">
<%if rsnosmall("picname")=("") then%>
<img src="IMAGES/flashorno.gif" width="110" height="80" border=1 style=border-color:#000000 align=top>
<%else%>
<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
<img src="<%=FileUploadPath & rsnosmall("picname")%>" width="110" height="80" border=1 style=border-color:#000000 align=top>
<%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="110" height="80" border=0 >
<param name=movie value="<%=FileUploadPath & rsnosmall("picname")%>">
<param name=quality value=high>
<param name='Play' value='-1'>
<param name='Loop' value='0'>
<param name='Menu' value='-1'>
<embed src="<%=FileUploadPath & rsnosmall("picname")%>" width="110" height="80" 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><br>
<br>
<a class=middle href="E_ReadNews.asp?NewsID=<%=rsnosmall("NewsID")%>" target=_blank title="<%=htmlencode4(rsnosmall("title"))%>">
<%=CutStr(rsnosmall("title"),18)%> </a> </td>
<%rsnosmall.movenext
i = i + 1
end if
%>
</tr>
<!--图片换行结束-->
<%loop%>
</table>
</td></tr>
<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="E_NosmallClass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid
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>
<!--图片模版-->
</td></tr>
</table>
<% case "2" %>
<!--新闻模版-->
<!--无小类文章区-->
<table width="100%"><tr>
<td><%set rsnosmall=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(eChuang)("key")="super" or Request.cookies(eChuang)("key")="typemaster" or Request.cookies(eChuang)("key")="bigmaster" or Request.cookies(eChuang)("key")="smallmaster" or Request.cookies(eChuang)("key")="check" then
rsnosmall.Source="select * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="" then
rsnosmall.Source="select * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="selfreg" then
if Request.cookies(eChuang)("reglevel")=3 then
rsnosmall.Source="select * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("reglevel")=2 then
rsnosmall.Source="select * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("reglevel")=1 then
rsnosmall.Source="select * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
end if
else
rsnosmall.Source="select * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1) order by newsid DESC"
end if
rsnosmall.Open rsnosmall.Source,conn,1,1
if not rsnosmall.EOF then
rsnosmall.PageSize = MyPageSize
MaxPages = rsnosmall.PageCount
rsnosmall.absolutepage = MyPage
total = rsnosmall.RecordCount
i = 0
do until rsnosmall.Eof or i = rsnosmall.PageSize
if showyear=1 then
newsurl="E_ReadNews.asp?NewsID=" & rsnosmall("NewsID")
newswwwurl=rsnosmall("titleface")
datetime="<font class=middle>(" & year(rsnosmall("UpdateTime")) &"年"& Month(rsnosmall("UpdateTime")) &"月"& Day(rsnosmall("UpdateTime")) &"日)</font>"
else
newsurl="E_ReadNews.asp?NewsID=" & rsnosmall("NewsID")
newswwwurl=rsnosmall("titleface")
datetime="<font class=middle>("& Month(rsnosmall("UpdateTime")) &"月"& Day(rsnosmall("UpdateTime")) &"日)</font>"
end if
if rsnosmall("picnews")=1 then
img="<img src='images/news_img.gif' border='0'>"
else
img=""
end if
title=trim(rsnosmall("title"))
title=replace(title,"<br>","")
%></td></tr>
<tr>
<td>
<table width="98%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="62%"> <img src="IMAGES/006.gif" width="8" height="10">
<%=img%> <a class=middle href="<%if rsnosmall("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=rsnosmall("title")%>" target="_blank">
<<%=rsnosmall("titletype")%>><font color="<%=rsnosmall("titlecolor")%>">
<%=CutStr(title,46)%></font></<%=rsnosmall("titletype")%>></a>
<!--标题后评论提示-->
<% if rsnosmall("titlesize")>=1 then %>
<A class=middle HREF="<%=path%>review.asp?NewsID=<%=rsnosmall("NewsID")%>" target="_blank" ><font color=red><b>评</b></font></A>
<%end if %>
<!--标题后评论提示-->
</td>
<td width="10%" align="right">
<%if showauthor="1" then%>
<%=CutStr(rsnosmall("Author"),6)%>
<%end if%>
</td>
<td width="15%" align="left">
<%if showtime="1" then%>
<%=datetime%>
<%end if%>
</td>
<td width="5%" align="center">
<%if showclick="1" then%>
<font color=#666666><%=rsnosmall("click")%></font>
<%end if%>
</td>
<td width="8%" align="left">
<%if year(rsnosmall("updatetime"))=year(date()) and month(rsnosmall("updatetime"))=month(date()) and day(rsnosmall("updatetime"))=day(date()) then%>
<img src="images/new.gif">
<%end if%>
<%if rsnosmall("goodnews")="1" then%>
<img src="images/g.gif" >
<%end if%>
</td>
</tr>
</table>
</td>
</tr>
<%
rsnosmall.MoveNext
i = i + 1
loop
%>
</table>
<!--无小类文章区-->
<TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
<tr>
<td width="100%" align=center valign="middle">共 <%=total%>
条,当前第 <%=Mypage%>/<%=Maxpages%> 页,每页 <%=MyPageSize%> 条
<%
url="E_NosmallClass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid
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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -