<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="function.asp"-->
<!--#include file="char.inc"-->
<%
typeid=ChkRequest(request("typeid"),1)	'防注入
request_BigClassID=ChkRequest(Request.QueryString("BigClassID"),1)	'防注入
request_SmallClassID=ChkRequest(Request.QueryString ("SmallClassID"),1)	'防注入
if typeid="" or request_bigclassid="" or request_smallclassid="" then
	Response.Write "<script>alert('未指定参数');history.back()</script>"
	response.end
else
	if not IsNumeric(request_SmallClassID) or not IsNumeric(request_bigclassid) or not IsNumeric(typeid) then
		response.write "<script>alert('非法参数');history.back()</script>"
		response.end
	else
		set rs=server.CreateObject("ADODB.RecordSet")
		rsSource="select * from "& db_BigClass_Table &" where bigclassid=" & request_BigClassID &" order by BigClassorder"
		rs.Open rsSource,conn,1,1
		E_BigClassName=rs("E_BigClassName")
		bigclassorder=rs("bigclassorder")
		bigclasszs=rs("bigclasszs")
		rs.close
		set rs=nothing

		set rs=server.CreateObject("ADODB.RecordSet")
		rsSource="select * from "& db_SmallClass_Table &" where smallclassid=" & request_smallClassID &" order by smallClassorder"
		rs.Open rsSource,conn,1,1
		E_smallclassname=rs("E_smallclassname")
		smallclassorder=rs("smallclassorder")
		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
	end if

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

	dim ArrayBigClassID(),ArrayE_BigClassName()
	ReDim ArrayBigClassID(int(rs.RecordCount)),ArrayE_BigClassName(int(rs.RecordCount))
	BigClassCount=rs.RecordCount
	for i=1 to BigClassCount
		ArrayBigClassID(i)=rs("BigClassID")
		ArrayE_BigClassName(i)=trim(rs("E_BigClassName"))
		rs.MoveNext
	next
	rs.close
	set rs=nothing

	set rs2=server.CreateObject("ADODB.RecordSet")  '专题
	rs2.Source="select Top "& top_sp &" * from "& db_Special_Table &"  order by SpecialID DESC "
	rs2.Open rs2.Source,conn,1,1

	set rs4=server.CreateObject("Adodb.RecordSet")
	rs4.source="select * from "& db_SmallClass_Table &" Where BigClassid=" & request_BigClassid &" order by SmallClassorder"
	rs4.open rs4.source,conn,1,1
	SmallClassCount=rs4.RecordCount
	dim ArraySmallClassID(10000),ArrayE_smallclassname(10000)
	for i=1 to SmallClassCount
		ArraySmallClassID(i)=rs4("SmallClassID")
		ArrayE_smallclassname(i)=trim(rs4("E_smallclassname"))
		rs4.MoveNext
	next
	rs4.Close
	set rs4=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=E_smallclassname%>__<%=E_BigClassName%>__<%=jjgn%></title>
<LINK href=news.css rel=stylesheet>
</head>
<!--#include file=top.asp -->
<body topmargin="0">
<table width="780" height="386" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="196" valign="top" background="IMAGES/ec_11.gif"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top" bgcolor="efefef"></td>
      </tr>
      <tr>
        <td height="184" valign="top">
          <!--总栏顺序号标记-->
          <%
dim typeorder
set rs8=server.CreateObject("ADODB.RecordSet")
rs8.Source="select * from "& db_type_Table &" where typeid=" & typeid &" order by typeorder"
rs8.Open rs8.Source,conn,1,1
typeorder=rs8("typeorder")
rs8.Close
set rs8=nothing
%>
          <!--总栏顺序号标记-->
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
              <td height="25" align="center" valign="middle" background="IMAGES/smenu_bg.gif"><font color="#000000"><%=E_smallclassname%>·小类 <%=typeorder%>-<%=bigclassorder%>-<%=smallclassorder%></font></td>
            </tr>
            <tr>
              <td width="30%" height="23" align="center" valign="top" background="I">
                <table width="100%" border="0" cellpadding="3" cellspacing="0" id="AutoNumber2" style="border-collapse: collapse">
                  <%
set rs6=server.CreateObject("ADODB.RecordSet")
rs6.Source="select * from "& db_SmallClass_Table &" where BigClassId="&request_bigclassid&" order by SmallClassorder"
rs6.Open rs6.Source,conn,1,1
do while not rs6.eof%>
                  <tr>
                    <td align=center valign="middle"><a class=class href="E_SmallClass.asp?typeid=<%=typeid%>&BigClassID=<%=rs6("bigclassid")%>&smallclassid=<%=rs6("smallclassid")%>"><%=rs6("E_smallclassname")%></a></td>
                  </tr>
                  <%rs6.movenext
loop
rs6.Close
set rs6=nothing
%>
              </table></td>
            </tr>
            <tr>
              <td height="25" valign="middle" background="IMAGES/smenu_bg.gif">
                <p align="center"><font color="#000000">本月最新</font> </td>
            </tr>
            <tr>
              <td height="24" align="center">
                <table width="96%" border="0" cellpadding="3" cellspacing="0">
                  <tr>
                    <td>
                      <%
dim ii
ii = 0
if uselevel=1 then
	if Request.cookies(eChuang)("key")="" then
		rsSource="select top " & top_txt & " * from "& db_News_Table &" where year(updatetime)="& year(now()) &" and month(updatetime)="& month(now())&" and checkked=1 and typeid="&typeid&"  order by click DESC,newsid desc"   '选择本月
	end if
	if Request.cookies(eChuang)("key")="selfreg" then
		if Request.cookies(eChuang)("reglevel")=3 then
			rsSource="select top " & top_txt & " * from "& db_News_Table &" where year(updatetime)="& year(now()) &"  and month(updatetime)="& month(now())&"  and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
		end if
		if Request.cookies(eChuang)("reglevel")=2 then
			rsSource="select top " & top_txt & " * from "& db_News_Table &" where year(updatetime)="& year(now()) &" and month(updatetime)="& month(now()) &" and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
		end if
		if Request.cookies(eChuang)("reglevel")=1 then
			rsSource="select top " & top_txt & " * from "& db_News_Table &" where year(updatetime)="& year(now()) &" and month(updatetime)="& month(now()) &" and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
		end if
	end if
	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
		rsSource="select top " & top_txt & " * from "& db_News_Table &" where year(updatetime)="& year(now()) &" and month(updatetime)="& month(now()) &" and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
	end if
else
	rsSource="select top "& top_txt &" * from "& db_News_Table 
	' &" where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
end if

set rs=server.CreateObject("ADODB.RecordSet")
rs.Open rsSource,conn,1,3
if rs.bof and rs.eof then 
	response.write "<br><div align=center>本月无更新<div>" 
else 
	do while not rs.eof 
	title=htmlencode4(trim(rs("title")))
%>
&nbsp;·
                  <%
typeid=checkstr(request("typeid"))
set rs11=server.CreateObject("ADODB.RecordSet")
rs11.Source="select * from "& db_Type_Table &" where typeid="&typeid&" order by typeorder"
rs11.Open rs11.Source,conn,1,1
mode=rs11("mode")
rs11.close
set rs11=nothing%>
                  <%if mode<>4 then%>
                  <%if mode="2" then%>
                  <%if rs("picname")<>"" then%>
                  <img src='images/news_img.gif' border='0'>
                  <%end if%>
                  <%end if%>
                  <a class=middle href="E_ReadNews.asp?NewsID=<%=rs("NewsID")%>" title="<%=title%>" target="_blank"> <font color="<%=rs("titlecolor")%>"><%=gottopic(title,14)%></font></a><font color="#FF0000"> <%=rs("click")%></font>
                  <%else%>
                  <%if mode="2" then%>
                  <%if rs("picname")<>"" then%>
                  <img src='images/news_img.gif' border='0'>
                  <%end if%>
                  <%end if%>
                  <a class=middle href="E_ReadNews.asp?NewsID=<%=rs("NewsID")%>" title="<%=title%>" target="_blank"> <font color="<%=rs("titlecolor")%>"><%=gottopic(title,12)%></font></a><font color="#FF0000"> <%=rs("click")%></font>
                  <%end if%>
                  <br>
                  <%  
	ii = ii + 1
    if ii>50 then exit do
	rs.movenext     
	loop
	end if  
	rs.close   
	set rs=nothing
%>                    </td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="587" valign="top" bgcolor="#FFFFFF">
	<div align="center"> 
  <table width="100%" border="0" cellpadding="0" cellspacing="0"> 
    <tr> 
      <td height="25" background="IMAGES/lmenu_bg.gif"> <%
  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")
rs5.Close
set rs5=nothing

%> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%=bigclasszs%>栏目导航 <a class="daohang" href="./" >网站首页</a>&gt;&gt;<a class="daohang" href="E_Type.asp?typeid=<%=typeid%>"><%=typename%></a>&gt;&gt;<a class="daohang" href='E_BigClass.asp?typeid=<%=typeid%>&BigClassID=<%=request_BigClassID%>'><%=E_BigClassName%></a>&gt;&gt;<%=E_smallclassname%></td> 
    </tr> 
    <tr> 
      <td><div align="center"> 
          <script language=javascript src=./zongg/ad.asp?i=12></script> 
        </div></td> 
    </tr> 
  </table> 
  <!--模版开始--> 
  <% select case bigclasszs %> 
  <% case "1" %> 
  <!--图片模版--> 
  <%
set rs3=server.CreateObject("ADODB.RecordSet")
%> 
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4"> 
    <tr> 
      <td height="25" background="IMAGES/lmenu_bg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=body><%=E_smallclassname%></font></td> 
    </tr> 
    <%
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 * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="" then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="selfreg" then
	if Request.cookies(eChuang)("reglevel")=3 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=2 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=1 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
end if
else
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
rs3.Open rs3.Source,conn,1,1

if not rs3.EOF then
Rs3.PageSize     = MyPageSize
MaxPages         = Rs3.PageCount
Rs3.absolutepage = MyPage
total            = Rs3.RecordCount
i = 0

%> 
    <tr> 
      <td> <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center"> 
          <!--图片换行显示1--> 
          <% do until rs3.Eof or i = rs3.PageSize %> 
          <tr> 
            <%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")
%> 
            <% if not rs3.EOF then %> 
            <td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> <div align="center"> 
                <% content=htmlencode4(rs3("Content"))
                       content=replace(content,"[---分页---]","")%> 
                <a class=middle href="E_ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>"> 
                <%if   rs3("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 & rs3("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 & 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="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=<%=rs3("NewsID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> <%=CutStr(rs3("title"),18)%> </a> </div></td> 
            <%rs3.movenext
i = i + 1
end if
%> 
            <!--图片换行显示2--> 
            <td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> <% if not rs3.EOF then %> 
              <div align="center"> 
                <%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")
%> 
                <a class=middle href="E_ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>"> 
                <%if rs3("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 & rs3("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 & 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="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=<%=rs3("NewsID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> <%=CutStr(rs3("title"),18)%> </a> </div></td> 
            <%rs3.movenext
i = i + 1
end if
%> 
            <!--图片换行显示3--> 
            <td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> <% if not rs3.EOF then %> 
              <div align="center"> 
                <%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")
%> 
                <a class=middle href="E_ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>"> 
                <%if rs3("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 & rs3("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 & 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="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=<%=rs3("NewsID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> <%=CutStr(rs3("title"),18)%> </a> </div></td> 
            <%rs3.movenext
i = i + 1
end if
%> 
            <!--图片换行显示4--> 
            <td width=25% align=center valign="top" style="table-layout:fixed; word-break:break-all"> <% if not rs3.EOF then %> 
              <div align="center"> 
                <%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")
%> 
                <a class=middle href="E_ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>"> 
                <%if rs3("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 & rs3("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 & 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="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=<%=rs3("NewsID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> <%=CutStr(rs3("title"),18)%> </a> </div></td> 
            <%rs3.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_SmallClass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid & "&smallClassid=" & request_smallClassid
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs3.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>&nbsp;本类暂无信息</td></tr>"
				
End If
Rs3.close
set rs3=nothing
%> </td> 
          </tr> 
        </table></td> 
    </tr> 
  </table> 
  <% case "2" %> 
  <!--新闻模版--> 
  <%
set rs3=server.CreateObject("ADODB.RecordSet")
%> 
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4"> 
    <tr> 
      <td height="25" background="IMAGES/lmenu_bg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=body><%=E_smallclassname%></font></td> 
    </tr> 
    <%
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 * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="" then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="selfreg" then
	if Request.cookies(eChuang)("reglevel")=3 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=2 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=1 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
end if
else
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
rs3.Open rs3.Source,conn,1,1

if not rs3.EOF then
Rs3.PageSize     = MyPageSize
MaxPages         = Rs3.PageCount
Rs3.absolutepage = MyPage
total            = Rs3.RecordCount

i = 0
do until rs3.Eof or i = rs3.PageSize

newsurl="E_ReadNews.asp?NewsID=" & rs3("NewsID")
newswwwurl=rs3("titleface")
datetime="<font class=middle>(" & year(rs3("UpdateTime"))  &"年"& Month(rs3("UpdateTime"))  &"月"& Day(rs3("UpdateTime")) &"日)</font>"

if rs3("picname")<>"" then
img="<img src='images/news_img.gif' border='0'>"
else
img=""
end if

title=trim(rs3("title"))
title=replace(title,"<br>","")
%> 
    <tr> 
      <td>
	  <div align="center"> 
          <table width="98%" border="0" cellpadding="0" cellspacing="0"> 
            <tr> 
              <td width="57%">&nbsp;&nbsp;<img src="IMAGES/point.gif" width="10" height="7" border="0"> <%=img%> <a class=middle href="<%if rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><font color="<%=rs3("titlecolor")%>"><%=CutStr(title,38)%></font></a> 
                <!--标题后评论提示--> 
                <% if rs3("titlesize")>=1 then %> 
                <A class=middle HREF="<%=path%>Review.asp?NewsID=<%=rs3("NewsID")%>" target="_blank" ><font color=red><b>评</b></font></A> 
                <%end if %> 
                <!--标题后评论提示-->				</td> 
              <td width="10%" align="right"> <%if showauthor="1" then%> 
                <%=CutStr(rs3("Author"),6)%> 
                <%end if%>				</td> 
              <td width="20%" align="right"> <%if showtime="1" then%> 
                <%=datetime%> 
                <%end if%>			  </td> 
              <td width="5%" align="right"> <%if showclick="1" then%> 
                <font color=#666666><%=rs3("click")%></font> 
                <%end if%>			  </td> 
              <td width="8%" align="right"> <%if year(rs3("updatetime"))=year(date()) and month(rs3("updatetime"))=month(date()) and day(rs3("updatetime"))=day(date()) then%> 
                <img src="images/new.gif"> 
                <%end if%> 
                <%if rs3("goodnews")="1" then%> 
                <img src="images/g.gif" > 
                <%end if%>			  </td>
			 </tr>
          </table> 
          <%
rs3.MoveNext
i = i + 1
loop
%> 
        </div>		</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_SmallClass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid & "&smallClassid=" & request_smallClassid
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs3.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><div align=center>&nbsp;本类暂无信息</div></td></tr>"
				
End If
Rs3.close
set rs3=nothing
%>          </td> 
          </tr> 
        </table>	</td> 
  </tr> 
</table> 
  <% case "3" %> 
  <!--网址模版--> 
  <%
set rs3=server.CreateObject("ADODB.RecordSet")
%> 
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4"> 
    <tr> 
      <td height="25" background="IMAGES/lmenu_bg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=body><%=E_smallclassname%></font></td> 
    </tr> 
    <%
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 * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="" then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="selfreg" then
	if Request.cookies(eChuang)("reglevel")=3 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=2 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=1 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
end if
else
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
rs3.Open rs3.Source,conn,1,1

if not rs3.EOF then
Rs3.PageSize     = MyPageSize
MaxPages         = Rs3.PageCount
Rs3.absolutepage = MyPage
total            = Rs3.RecordCount
i = 0
%> 
    <tr><td> <table width="98%" border="1" cellspacing="0" cellpadding="3" bordercolorlight=#cccccc  bordercolordark=#ffffff align="center"> 
          <!--网址换行显示1--> 
          <% do until rs3.Eof or i = rs3.PageSize %> 
          <tr> 
            <%
Content=htmlencode4(rs3("Content"))
%> 
            <% if not rs3.EOF then %> 
            <td width=50% align=center valign="middle"> <div align="center"> <a class=middle href="<%=rs3("Original")%>" target=_blank title="<%=CutStr(nohtml(rs3("Content")),80)%>"> <%=CutStr(rs3("title"),30)%> </a></div></td> 
            <%rs3.movenext
i = i + 1
end if
%> 
            <!--网址换行显示2--> 
            <% if not rs3.EOF then %> 
            <td width=50% align=center valign="middle"> <div align="center"> <a class=middle href="<%=rs3("Original")%>" target=_blank title="<%=CutStr(nohtml(rs3("Content")),80)%>"> <%=CutStr(rs3("title"),30)%> </a> </div></td> 
            <%rs3.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_SmallClass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid & "&smallClassid=" & request_smallClassid
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs3.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>&nbsp;本类暂无信息</td></tr>"
				
End If

Rs3.close
set rs3=nothing
%> </td> 
          </tr> 
        </table>		</td>
    </tr> 
  </table> 
  <% case "4" %> 
  <!--软件模版--> 
  <%
set rs3=server.CreateObject("ADODB.RecordSet")
%> 
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" > 
    <tr> 
      <td>
	   <table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4"> 
          <tr> 
            <td height="25" background="IMAGES/lmenu_bg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=body><%=E_smallclassname%></font> </td> 
          </tr> 
       </table> 
        <%
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 * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="" then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(eChuang)("key")="selfreg" then
	if Request.cookies(eChuang)("reglevel")=3 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=2 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
	if Request.cookies(eChuang)("reglevel")=1 then
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1 ) order by newsid DESC"
	end if
end if
else
rs3.Source="select * from "& db_News_Table &" where (SmallClassid=" & request_SmallClassid &" and checkked=1) order by newsid DESC"
end if
rs3.Open rs3.Source,conn,1,1

if not rs3.EOF then
Rs3.PageSize     = MyPageSize
MaxPages         = Rs3.PageCount
Rs3.absolutepage = MyPage
total            = Rs3.RecordCount

i = 0
do until rs3.Eof or i = rs3.PageSize

newsurl="E_ReadNews.asp?NewsID=" & rs3("NewsID")
newswwwurl=rs3("titleface")
datetime="<font class=middle>(" & Month(rs3("UpdateTime"))  &"月"& Day(rs3("UpdateTime")) &"日)</font>"


title=htmlencode4(trim(rs3("title")))
%> 
        <div align="center"> 
          <table width="95%" border="0" cellpadding="3" cellspacing="0"> 
            <tr bgcolor="#EFEFEF"> 
              <td colspan="2">&nbsp;<img src="images/news_img.gif" width="9" height="9" border="0">&nbsp; <a class=middle href="<%if rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><strong><font color="<%=rs3("titlecolor")%>"> <%=CutStr(title,40)%> </font></strong></a>			  </td> 
              <td width="22%" align="right" bgcolor="#EFEFEF"> <%if showtime="1" then%> 
                <%=datetime%> 
                <%end if%> 
                <%if showclick="1" then%> 
                <font color=#666666>[<%=rs3("click")%>]</font> 
                <%end if%>			  </td> 
              <td width="13%" align="center" bgcolor="#EFEFEF"><div align="right"> 
                  <%if year(rs3("updatetime"))=year(date()) and month(rs3("updatetime"))=month(date()) and day(rs3("updatetime"))=day(date()) then%> 
                  <img src="images/new.gif" border="0"> 
                  <%end if%> 
                  <%if rs3("goodnews")="1" then%> 
                  <img src="images/g.gif" border="0"> 
                  <%end if%> 
                </div>			 </td> 
            </tr> 
            <tr> 
              <%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")%> 
              <td width="16%"><a class=middle href="<%if rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> 
                <%if   rs3("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 & 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 > 
                  <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="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 rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><%=CutStr(nohtml(rs3("Content")),250)%></a>			  </td> 
            </tr> 
          </table> 
          <%
rs3.MoveNext
i = i + 1
loop
%> 
          <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0 > 
            <tr> 
              <td width="100%" align=center valign="middle">共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
                <%
url="E_SmallClass.asp?typeid=" & typeid & "&BigClassid=" & request_BigClassid & "&smallClassid=" & request_smallClassid
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs3.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> <div align='center'> 暂无信息</div></td></tr>"
				
End If
Rs3.close
set rs3=nothing
%> </td> 
            </tr> 
          </table> 
          <!--模版结束--> 
        </div>		</td> 
    </tr> 
  </table> 
  <% end select%> 
</div></td>
  </tr>
</table>

<!--#include file=bottom.asp -->
</body>
</html>
<%end if%>