type.asp

来自「纪念伟大领袖的专题网站」· ASP 代码 · 共 1,261 行 · 第 1/5 页

ASP
1,261
字号

			<!--图片换行显示1-->
			 	<%
				if not rsnodigclass.EOF then
				do while not rsnodigclass.EOF
				%>
				<tr> 
					<%
					fileExt=lcase(getFileExtName(rsnodigclass("picname")))
					Content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")
					%>
					<td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> 
					<%if not rsnodigclass.EOF then%>
					<div align="center"> 
                    <% content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")%>
                    <a class=middle href="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>..."> 
                    <%if   rsnodigclass("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 & rsnodigclass("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 & 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="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="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=rsnodigclass("title")%>"><%=CutStr(rsnodigclass("title"),18)%></a> 
                  </div>
				  </td>
					<%rsnodigclass.movenext   
					end if %>
<!--图片换行显示2-->
					<%
					fileExt=lcase(getFileExtName(rsnodigclass("picname")))
					Content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")
					%>
                <td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> 
				<%if not rsnodigclass.EOF then%>
                  <div align="center"> 
                    <%
					content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")%>
                    <a class=middle href="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>"> 
                    <%if rsnodigclass("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 & rsnodigclass("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 & 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="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="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=rsnodigclass("title")%>"><%=CutStr(rsnodigclass("title"),18)%></a> 
					</div>
					</td>
					<%rsnodigclass.movenext   
					end if %>
<!--图片换行显示3-->
					<%
					fileExt=lcase(getFileExtName(rsnodigclass("picname")))
					Content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")
					%>
					<td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> 
					<%if not rsnodigclass.EOF then%>
						<div align="center"> 
                    <%
					content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")%>
                    <a class=middle href="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>"> 
                    <%if rsnodigclass("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 & rsnodigclass("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 & 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="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="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=rsnodigclass("title")%>"><%=CutStr(rsnodigclass("title"),18)%></a> 
                  </div></td>
                <%rsnodigclass.movenext   
				end if %>
<!--图片换行显示4-->
					<%
					fileExt=lcase(getFileExtName(rsnodigclass("picname")))
					Content=htmlencode4(rsnodigclass("Content"))
					content=replace(content,"[---分页---]","")
					%>
					<td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> 
					<%if not rsnodigclass.EOF then%>
					<div align="center"> 
                    <%content=rsnodigclass("Content")
					content=replace(content,"[---分页---]","")%>
                    <a class=middle href="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>..."> 
                    <%if rsnodigclass("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 & rsnodigclass("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 & 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="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="ReadNews.asp?NewsID=<%=rsnodigclass("NewsID")%>" target=_blank title="<%=rsnodigclass("title")%>"><%=CutStr(rsnodigclass("title"),18)%></a> 
					</div>
					</td>
					<%rsnodigclass.movenext   
					end if %>
              </tr>
<!--图片换行结束-->
		
              <%loop%>
			<%
			else
			Response.Write "<tr><td> <div align='center'><table width='98%' border='0' cellpadding='3' cellspacing='0'><tr><td width='62%'>&nbsp;&nbsp;<img src='IMAGES/006.gif' width='8' height='10'> 无大类文章暂无</td></tr></table></div></td></tr>"
		    end if
			rsnodigclass.close
			set rsnodigclass=nothing
			%>
    </table>
	    </table>
<!--图片模版-->

<% case 2 %>
<!--新闻模版-->
		
		<td><%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
			while not rsnodigclass.EOF
				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> 
          <td> <div align="center"> 
              <table width="98%" border="0" cellpadding="3" cellspacing="0">
                <tr> 
                  <td width="62%">&nbsp;&nbsp;<img src="IMAGES/006.gif" width="8" height="10"> 
                    <%=img%> <a class=middle href="<%if rsnodigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=rsnodigclass("title")%>" target="_blank"> 
                    <<%=rsnodigclass("titletype")%>><font color="<%=rsnodigclass("titlecolor")%>"> 
                    <%=CutStr(title,46)%></font></<%=rsnodigclass("titletype")%>></a> 
                    <!--标题后评论提示-->
                    <% if rsnodigclass("titlesize")>=1 then %>
                    <A class=middle HREF="<%=path%>review.asp?NewsID=<%=rsnodigclass("NewsID")%>" target="_blank" ><font color=red><b>评</b></font></A> 
                    <%end if %>
                    <!--标题后评论提示-->
                  </td>
                  <td width="10%" align="right"> 
                    <%if showauthor="1" then%>
                    <%=CutStr(rsnodigclass("Author"),6)%> 
                    <%end if%>
                  </td>
                  <td width="15%" align="left"> 
                    <%if showtime="1" then%>
                    <%=datetime%> 
                    <%end if%>
                    &nbsp; </td>
                  <td width="5%" align="center"> 
                    <%if showclick="1" then%>
                    <font color=#666666><%=rsnodigclass("click")%></font> 
                    <%end if%>
                  </td>
                  <td width="8%" align="left">
                    <%if showtime="1" then%>
                    <%if year(rsnodigclass("updatetime"))=year(date()) and month(rsnodigclass("updatetime"))=month(date()) and day(rsnodigclass("updatetime"))=day(date()) then%>
                    <%end if%>
                    <img src="images/new.gif"> 
                    <%end if%>
                    <%if rsnodigclass("goodnews")="1" then%>
                    <img src="images/g.gif" > 

⌨️ 快捷键说明

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