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

📄 e_nosmallclass.asp

📁 zheng fu wang zhan gong neng qi quan
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<%@ Language=VBScript%>
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="function.asp"-->
<!--#'include file="char.inc"-->
<%
typeid=checkstr(request("typeid"))
request_BigClassID=ChkRequest(Request.QueryString("BigClassID"),1)	'防注入
if typeid="" or request_bigclassid="" then
	Show_Err("未指定参数<br><br><a href='javascript:history.back()'>返回</a>")
	response.end
else
	if not IsNumeric(request_BigClassID) or not IsNumeric(typeid) then
		Show_Err("非法参数<br><br><a href='javascript:history.back()'>返回</a>")
		response.end
	else
		set rs=server.CreateObject("ADODB.RecordSet")
		rs.Source="select * from "& db_BigClass_Table &" where bigclassid=" & request_bigclassid &" order by BigClassorder"
		rs.Open rs.Source,conn,1,1
		E_BigClassName=rs("E_BigClassName")
		bigclassorder=rs("bigclassorder")
		bigclasszs=rs("bigclasszs")
		rs.close
		set rs=nothing

		PageShowSize = 10            '每页显示多少个页
		MyPageSize   = 20           '每页显示多少条新闻
			
		if Not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Or Request("page") <=0 Then
			MyPage=1
		else
			MyPage=Int(Abs(Request("page")))
		end if

		set rs=server.CreateObject("ADODB.RecordSet")
        rs.Source="select * from "& db_BigClass_Table &" where typeid=" & typeid &" order by BigClassorder"
        rs.Open rs.Source,conn,1,1

		dim digclassid
		bigclassid=checkstr(request("bigclassid"))
		set rs=server.CreateObject("ADODB.RecordSet")
		rs.Source="select * from "& db_smallClass_Table &" where bigclassid="& bigclassid &" order by smallClassorder"
		rs.Open rs.Source,conn,1,1
		i=1
		Dim ArraytypeID(10000),ArrayE_BigClassName(10000),ArrayE_smallclassview(10000)

        if not rs.EOF then
		rseof=1
		end if
	 end if

		rs.close

		dim typename
		set rs5=server.CreateObject("ADODB.RecordSet")
		rs5.Source="select * from "& db_Type_Table &" where typeid=" & typeid &" order by typeorder"
		rs5.Open rs5.Source,conn,1,1
		typename=rs5("typename")
		typeorder=rs5("typeorder")
		rs5.Close
		set rs5=nothing
end if
%>

<html><head>
<meta http-equiv="Content-Type" content="">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=E_BigClassName%>__<%=typeName%>__<%=jjgn%>_建站铺修正版_bbs.jzpu.com</title>
<LINK href=news.css rel=stylesheet>
</head>
<body topmargin="0">
<!--#include file="top.asp"-->
<%
dim E_BigClassName
bigclassid=checkstr(request("bigclassid"))
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_bigclass_Table &" where typeid="& bigclassid &" order by bigclassorder"
rs.Open rs.Source,conn,1,1
'E_BigClassName=rs("E_BigClassName")
rs.close
set rs=nothing
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr valign="top"> 
		<td width="210"> 
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr> 
					<td height="200" valign="top" background="Images/ecowo_07.gif">
	<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#999999" width="100%" id="AutoNumber4" height="25">
		<tr> 
			<td height="25" align=center background="IMAGES/smenu_bg.gif"><font color="#000000">最新图文</font>			</td>
		</tr>
		<tr> 
			<td width="100%" height="20" align=center><br> 
<%
set rs3=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
		rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
		end if
		if Request.cookies(eChuang)("key")="" then
			rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and newslevel=0 and typeid="&typeid&" and picname is not null order by NewsID DESC"
		end if
		if Request.cookies(eChuang)("key")="selfreg" then
			if Request.cookies(eChuang)("reglevel")=3 then
				rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1  and typeid="&typeid&" and picname is not null order by NewsID DESC"
			end if
			if Request.cookies(eChuang)("reglevel")=2 then
				rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1  and typeid="&typeid&" and picname is not null order by NewsID DESC"
			end if
			if Request.cookies(eChuang)("reglevel")=1 then
				rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1  and typeid="&typeid&" and picname is not null order by NewsID DESC"
			end if
		end if
	else
		rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
	end if
rs3.Open rs3.Source,conn,1,1
	if not rs3.EOF then
		while not rs3.EOF
			fileExt=lcase(getFileExtName(rs3("picname")))
			Content=htmlencode4(rs3("Content"))
			%>
		<table width="90%" border="0" cellspacing="0" cellpadding="3" align="center" style="TABLE-LAYOUT: fixed">
			<tr> 
				<td style="WORD-WRAP: break-word">
					<a class=middle href="E_ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> 
						<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
						<img  src="<%=FileUploadPath & rs3("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 align="left">
						<param name=movie value="<%=FileUploadPath & rs3("picname")%>">
						<param name=quality value=high>
						<param name='Play' value='-1'>
						<param name='Loop' value='0'>
						<param name='Menu' value='-1'>
						<embed src="<%=FileUploadPath & rs3("picname")%>" width="65" height="65" border=0 align="left" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
						</object>
						<%end if%>
						<%=rs3("title")%>
					</a>
				</td>
			</tr>
		</table>
	
<%
rs3.MoveNext
	wend
	    else
		Response.Write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"" style=""TABLE-LAYOUT: fixed""><tr><td width=100% align=center height=18 background='IMAGES/menu-d.gif'>暂无</td></tr></table>"
	    end if
	rs3.close
	set rs3=nothing
%>
			</td>
		  </tr>
		</table>
</td>
<td> 
	<table width="550" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr> 
          <td height="25" background="IMAGES/lmenu_bg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=m_tittle>&nbsp;</font>栏目导航&nbsp;&nbsp;<a href="./" class="daohang">网站首页</a>&gt;&gt;<a href=E_Type.asp?typeid=<%=typeid%> class="daohang"><%=typename%></a> 
            <% Response.Write "&gt;&gt;" & E_BigClassName & "" %> 
		  </td>
        </tr>
        <tr> 
            <td>
             <script language=javascript src=./zongg/ad.asp?i=16></script>
			</td>
        </tr>
	
		<tr> 
		<td height="25" background="IMAGES/lmenu_bg.gif"></td>
		</tr>
		</table>
		
<!--无小类文章区-->

<!--模版开始-->
      <% select case bigclasszs %>
      <% case "1" %>
      <!--图片模版-->
	  
<%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

%><table width="100%">
        <tr> 
          <td> <table width="90%" border="0" cellspacing="0" cellpadding="3" align="center">
              <!--图片换行显示1-->
<% do until rsnosmall.Eof or i = rsnosmall.PageSize %>
              <tr> 
<%
fileExt=lcase(getFileExtName(rsnosmall("picname")))
Content=htmlencode4(rsnosmall("Content"))
content=replace(content,"[---分页---]","")
%>
<% if not rsnosmall.EOF then %>
                <tr><td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> 
                    <% 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> </div></td>
<%rsnosmall.movenext
i = i + 1
end if
%></td>
<!--图片换行显示2-->
                <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
%>
<!--图片换行显示3-->
                <td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> 

⌨️ 快捷键说明

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