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

		set rs=server.CreateObject("ADODB.RecordSet")
		rsSource="select * from "& db_wygkcn_SmallClass_Table &" where E_SmallClassID=" & request_E_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   = 30           '每页显示多少条新闻
			
		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_wygkcn_BigClass_Table &" where E_typeid=" & E_typeid &" order by E_bigclassorder"
	rs.Open rsSource,conn,1,1

	dim ArrayE_BigClassID(),ArrayE_BigClassName()
	ReDim ArrayE_BigClassID(int(rs.RecordCount)),ArrayE_BigClassName(int(rs.RecordCount))
	BigClassCount=rs.RecordCount
	for i=1 to BigClassCount
		ArrayE_BigClassID(i)=rs("E_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_wygkcn_Special_Table &"  order by EC_SpecialID DESC "
	rs2.Open rs2.Source,conn,1,1

	set rs4=server.CreateObject("Adodb.RecordSet")
	rs4.source="select * from "& db_wygkcn_SmallClass_Table &" Where E_BigClassID=" & request_E_BigClassID &" order by SmallClassorder"
	rs4.open rs4.source,conn,1,1
	SmallClassCount=rs4.RecordCount
	dim ArrayE_SmallClassID(10000),ArrayE_smallclassname(10000)
	for i=1 to SmallClassCount
		ArrayE_SmallClassID(i)=rs4("E_SmallClassID")
		ArrayE_smallclassname(i)=trim(rs4("E_smallclassname"))
		rs4.MoveNext
	next
	rs4.Close
	set rs4=nothing
end if	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Description" content="<%=SiteDescription%>">
<meta name="keywords" content="<%=SiteKeywords%>">
<title><%=E_smallclassname%>__<%=E_BigClassName%>__<%=eChSys_Com%></title>
<LINK href="CSS/Wygkcn_Home.css" rel="stylesheet">
<LINK href="CSS/Wygkcn_News.css" rel="stylesheet">
</head>
<body>
<!--内容部分开始-->
<div id="EC_Content">
<!--#include file="Top.asp"-->
<!--中间内容部分开始-->
<div id="Small_center">
<!--左边部分开始-->
<div class="small_left float_left">
<div class="new_art lianmu_bg">
<H3>最新更新</H3>
<DIV class=new_art_list>
<ul class=list>
<%
set rs3=server.CreateObject("ADODB.RecordSet")
	if uselevel=1 then
		if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
		rs3.Source ="select top 10 * from "& db_wygkcn_Article_Table &" where  Checked=1 and E_typeid="&E_typeid&" and E_BigClassID="&request_E_BigClassID&" and E_SmallClassID=" & request_E_SmallClassID &" order by EC_ArticleID DESC"
		end if
		if Request.cookies(echsys)("key")="" then
			rs3.Source ="select top 10 * from "& db_wygkcn_Article_Table &" where  Checked=1 and newslevel=0 and E_typeid="&E_typeid&"   and E_typeid="&E_typeid&" and E_BigClassID="&request_E_BigClassID&" and E_SmallClassID=" & request_E_SmallClassID &" order by EC_ArticleID DESC"
		end if
		if Request.cookies(echsys)("key")="selfreg" then
			if Request.cookies(echsys)("reglevel")=3 then
				rs3.Source ="select top 10 * from "& db_wygkcn_Article_Table &" where  Checked=1  and E_typeid="&E_typeid&"  and E_typeid="&E_typeid&" and E_BigClassID="&request_E_BigClassID&" and E_SmallClassID=" & request_E_SmallClassID &"  order by EC_ArticleID DESC"
			end if
			if Request.cookies(echsys)("reglevel")=2 then
				rs3.Source ="select top 10 * from "& db_wygkcn_Article_Table &" where  Checked=1  and E_typeid="&E_typeid&"  and E_typeid="&E_typeid&" and E_BigClassID="&request_E_BigClassID&" and E_SmallClassID=" & request_E_SmallClassID &"  order by EC_ArticleID DESC"
			end if
			if Request.cookies(echsys)("reglevel")=1 then
				rs3.Source ="select top 10 * from "& db_wygkcn_Article_Table &" where  Checked=1  and E_typeid="&E_typeid&"  and E_typeid="&E_typeid&" and E_BigClassID="&request_E_BigClassID&" order by EC_ArticleID DESC"
			end if
		end if
	else
		rs3.Source ="select top 10 * from "& db_wygkcn_Article_Table &" where  Checked=1 and E_typeid="&E_typeid&"  and E_typeid="&E_typeid&" and E_BigClassID="&request_E_BigClassID&" and E_SmallClassID=" & request_E_SmallClassID &"  order by EC_ArticleID DESC"
	end if
rs3.Open rs3.Source,conn,1,1
	if not rs3.EOF then
		while not rs3.EOF
			newsurl="wygkcn_ShowArticle.asp?EC_ArticleID=" & Rs3("EC_ArticleID")
		    newswwwurl=rs3("titleface")
			fileExt=lcase(getFileExtName(rs3("picname")))
			Content=htmlencode4(rs3("Content"))
			%>
<li>
·<a href="<%if rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=htmlencode4(rs3("title"))%>" target="_blank"> <font color="<%=rs3("titlecolor")%>"> <%=CutStr(htmlencode4(rs3("title")),40)%> </font> </a>
</li>
<%
rs3.MoveNext
wend
else
Response.Write "<li>·本栏目暂无更新</li>"
end if
rs3.close
set rs3=nothing
%>
</ul>
</div>
</div>
</div>
<!--左边部分结束-->
<%
dim E_typename 
set rs5=server.CreateObject("ADODB.RecordSet")
rs5.Source="select * from "& db_wygkcn_Type_Table &" where E_typeid=" & E_typeid &" order by E_typeorder"
rs5.Open rs5.Source,conn,1,1
E_typename=rs5("E_typename")
rs5.Close
set rs5=nothing
%>
<!--右边部分开始-->
<div class="small_right float_right">

<!--位置导航部分开始-->
<div class="position">
<img src="Images/lm_dot.gif" width="11" height="11">&nbsp;&nbsp;您的位置&nbsp;&nbsp;<a href="./" >首页</a> >> <a href="wygkcn_Type.asp?E_typeid=<%=E_typeid%>" ><%=E_typename%></a> >><a href="wygkcn_BigClass.asp?E_typeid=<%=E_typeid%>&E_BigClassID=<%=request_E_BigClassID%>"><%=E_BigClassName%></a> >><%=E_smallclassname%>>>列表
</div>
<!--位置导航部分结束-->

<!--列表部分开始-->
<div class=class_listcnt>

<div class="class_list1 lm_class_bg">
<H4><%=E_smallclassname%></H4>
<!--无大类文章区开始-->
<% select case bigclasszs%>
<% case 1 %>
<!--图片模版-->
<ul>
<%
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="selfreg" then
	if Request.cookies(echsys)("reglevel")=3 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=2 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=1 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
end if
else
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID 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

%>
<%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")
do until rs3.Eof or i = rs3.PageSize 
%>
<% if not rs3.EOF then %>
<% 
content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")
%>
<li class=class_pic_list>					
<div class="piclist" onMouseOver="this.className='piclist piclist_Hover'" onMouseOut="this.className='piclist'" >
<a href="wygkcn_ShowArticle.asp?EC_ArticleID=<%=rs3("EC_ArticleID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>">
                  <%if   rs3("picname")=("") then%>
                  <img  src="IMAGES/flashorno.gif" width="110" height="80" border="0" 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="0" 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>
</div>

<div class=piclist_title>
<a  href="wygkcn_ShowArticle.asp?EC_ArticleID=<%=rs3("EC_ArticleID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>"> <%=CutStr(rs3("title"),16)%> </a>
</div>
</li>
<%
rs3.movenext
i = i + 1
end if
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_SmallClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID & "&E_SmallClassID=" & request_E_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 href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一页</a> "
Response.write "<a href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a 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 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 href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if

if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A  href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a  href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
else
Response.write "·本类暂无信息"
				
End If
Rs3.close
set rs3=nothing
%>
</li>
</ul>
<!--图片模版结束-->
<!--新闻列表模版开始-->
<% case 2 %>
<ul class=list>
<%
set rs3=server.CreateObject("ADODB.RecordSet")		
if uselevel=1 then
if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="selfreg" then
	if Request.cookies(echsys)("reglevel")=3 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=2 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=1 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
end if
else
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID 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="wygkcn_ShowArticle.asp?EC_ArticleID=" & rs3("EC_ArticleID")
newswwwurl=rs3("titleface")
datetime="(" & year(rs3("UpdateTime"))  &"."& Month(rs3("UpdateTime"))  &"."& Day(rs3("UpdateTime")) &")"

if rs3("picname")<>"" then
img="<font class=pic_word>[图]</font>"
else
img=""
end if

title=trim(rs3("title"))
title=replace(title,"<br>","")
%>

<li><%if showtime="1" then%><span><%=datetime%></span><%end if%>
·<a href="<%if rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><font color="<%=rs3("titlecolor")%>"><%=CutStr(title,46)%></font></a>
                    <!--标题后评论提示-->
                    <% if rs3("titlesize")>=1 then %>
                    <A  HREF="<%=path%>Review.asp?EC_ArticleID=<%=rs3("EC_ArticleID")%>" target="_blank" ><font color=red><b>评</b></font></A>
                    <%end if %>
                    <!--标题后评论提示-->
                    <%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%>      
</li>
<%
rs3.MoveNext
i = i + 1
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_SmallClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID & "&E_SmallClassID=" & request_E_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 href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a 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  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  href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if

if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
else
Response.write "·本类暂无信息"
				
End If
Rs3.close
set rs3=nothing
%>
</li>
</ul>
<% case 3 %>
<!--网址模版-->
<ul>
<%
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="selfreg" then
	if Request.cookies(echsys)("reglevel")=3 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=2 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=1 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
end if
else
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID 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 %>
<li class=class_site_list>
<%
Content=htmlencode4(rs3("Content"))
%>
<% if not rs3.EOF then %>
<a href="<%=rs3("Original")%>" target=_blank title="<%=CutStr(nohtml(rs3("Content")),80)%>"> <%=CutStr(rs3("title"),30)%> </a>
</li>
<%
rs3.movenext
i = i + 1
end if
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_SmallClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID & "&E_SmallClassID=" & request_E_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 href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a 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 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  href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if

if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
else
Response.write "·本类暂无信息"
				
End If

Rs3.close
set rs3=nothing
%>
</li>
</ul>
<% case 4 %>
<!--软件产品模板-->
<ul>
<%
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(echsys)("key")="super" or Request.cookies(echsys)("key")="typemaster" or Request.cookies(echsys)("key")="bigmaster" or Request.cookies(echsys)("key")="smallmaster" or Request.cookies(echsys)("key")="check" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="" then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
end if
if Request.cookies(echsys)("key")="selfreg" then
	if Request.cookies(echsys)("reglevel")=3 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=2 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
	if Request.cookies(echsys)("reglevel")=1 then
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1 ) order by EC_ArticleID DESC"
	end if
end if
else
rs3.Source="select * from "& db_wygkcn_Article_Table &" where (E_SmallClassID=" & request_E_SmallClassID &" and Checked=1) order by EC_ArticleID 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="wygkcn_ShowArticle.asp?EC_ArticleID=" & rs3("EC_ArticleID")
newswwwurl=rs3("titleface")
datetime="(" & Month(rs3("UpdateTime"))  &"."& Day(rs3("UpdateTime")) &")"

title=htmlencode4(trim(rs3("title")))
%>
<%
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
content=replace(content,"[---分页---]","")%>
<li>
<div>
<H5><%if showtime="1" then%><Span class=float_right><%=datetime%></span><%end if%>
<img src="images/news_img.gif" width="9" height="9"> <a  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>
<%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%>
</H5>
<div class="float_left s_pic">
<a  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="80" height="80" border=0 align="left">
                        <%else%>
                        <%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
                        <img  src="<%=FileUploadPath & rs3("picname")%>" width="80" height="80" 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="80" 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="80" 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>
</div>
<div class="float_right EC_s_cnt">
<a href="<%if rs3("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><%=CutStr(nohtml(rs3("Content")),300)%></a>
</div>
<div class="clear_float"></div>
</div>
</li>
<%
rs3.MoveNext
i = i + 1
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_SmallClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID & "&E_SmallClassID=" & request_E_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 href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a 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 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 href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if

if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
else
Response.Write "·暂无信息"
				
End If
Rs3.close
set rs3=nothing
%>
</li>
</ul>
<% end select%>
</div>
<!--小类文章区结束-->
</div>
<!--列表部分结束-->
</div>
<!--右边部分结束-->
<div class=clear_float></div><!--清除浮动属性-->
</div>
<!--中间内容部分结束-->

<!--#include file="bottom.asp" -->
</div>
<!--内容部分结束-->
</body>
</html>
