<%@ Language=VBScript%>
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="function.asp"-->
<!--#include file="char.inc"-->
<%
E_typeid=ChkRequest(request("E_typeid"), 1)
if E_typeid="" then
	Response.Write "<script>alert('未指定参数');history.back()</script>"
	response.end
else
	if not IsNumeric(E_typeid) then
		response.write "<script>alert('非法参数');history.back()</script>"
		response.end
	else
		dim tE_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
		tE_typename=rs5("E_typename")
		E_typeorder=rs5("E_typeorder")
		rs5.Close
		set rs5=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

		%>
		<%
		dim E_typeid
		E_typeid=checkstr(request("E_typeid"))
		set rs=server.CreateObject("ADODB.RecordSet")
		rs.Source="select * from "& db_wygkcn_BigClass_Table &" where E_typeid="& E_typeid &" order by E_bigclassorder"
		rs.Open rs.Source,conn,1,1
		i=1

		if not rs.EOF then
			rseof=1
		end if
	end if
	end if
	rs.close
	%>
<!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-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Description" content="<%=SiteDescription%>">
<meta name="keywords" content="<%=SiteKeywords%>">
<title><%=tE_typename%>__<%=eChSys_Com%></title>
<LINK href="CSS/Wygkcn_Home.css" rel=stylesheet>
<LINK href="CSS/Wygkcn_News.css" rel="stylesheet">
<script language="JavaScript1.2">
<!--
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body>

<!--内容部分开始-->
<div id="EC_Content">
<%
dim E_typename
E_typeid=checkstr(request("E_typeid"))
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_wygkcn_Type_Table &" where E_typeid="& E_typeid &" order by E_typeorder"
rs.Open rs.Source,conn,1,1
mode=rs("mode")
E_typename=rs("E_typename")
rs.close
set rs=nothing
%>
<!--#include file="Top.asp"-->

<!--中间内容部分开始-->
<div id="nobig_center">
<!--左边部分开始-->
<div class="nobig_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&" 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&"  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&"  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&"  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&" 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&"  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>
<!--左边部分结束-->

<!--右边部分开始-->
<div class="nobig_right float_right">

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

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

<div class="class_list1 lm_class_bg">
<H4><%=E_typename%>·[本栏]</H4>
<!--无大类文章区开始-->
<% select case mode%>
<% case 1 %>
<!--图片模版-->
<ul>
<% 
set rsnobigclass=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
				rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="" then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="selfreg" then
					if Request.cookies(echsys)("reglevel")=3 then
						rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
					end if
				if Request.cookies(echsys)("reglevel")=2 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("reglevel")=1 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				
			end if
			else
			rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
			end if
				rsnobigclass.Open rsnobigclass.Source,conn,1,1

if not rsnobigclass.EOF then
rsnobigclass.PageSize     = MyPageSize
MaxPages         = rsnobigclass.PageCount
rsnobigclass.absolutepage = MyPage
total            = rsnobigclass.RecordCount
i = 0
%>
<%
fileExt=lcase(getFileExtName(rsnobigclass("picname")))
Content=htmlencode4(rsnobigclass("Content"))
content=replace(content,"[---分页---]","")
do until rsnobigclass.Eof or i = rsnobigclass.PageSize
%>
<%if not rsnobigclass.EOF then%>
<% 
content=htmlencode4(rsnobigclass("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=<%=rsnobigclass("EC_ArticleID")%>" target=_blank title="<%=CutStr(nohtml(Content),150)%>...">
                <%if   rsnobigclass("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 & rsnobigclass("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 & rsnobigclass("picname")%>">
                  <param name=quality value=high>
                  <param name='Play' value='-1'>
                  <param name='Loop' value='0'>
                  <param name='Menu' value='-1'>
                  <embed src="<%=FileUploadPath & rsnobigclass("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=<%=rsnobigclass("EC_ArticleID")%>" target=_blank title="<%=rsnobigclass("title")%>"><%=CutStr(rsnobigclass("title"),16)%></a>
</div>

</li>
<%
rsnobigclass.movenext
i = i + 1
end if
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_NobigClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID
'request_E_SmallClassID
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rsnobigclass.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
rsnobigclass.close
set rsnobigclass=nothing
%>
</li>
</ul>

<!--图片模版结束-->
<!--新闻列表模版开始-->
<% case 2 %>
<ul class=list>
      <%set rsnobigclass=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
				rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="" then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="selfreg" then
					if Request.cookies(echsys)("reglevel")=3 then
						rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
					end if
				if Request.cookies(echsys)("reglevel")=2 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("reglevel")=1 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				
			end if
			else
			rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
			end if
				rsnobigclass.Open rsnobigclass.Source,conn,1,1

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

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

				if showyear=1 then
					newsurl="wygkcn_ShowArticle.asp?EC_ArticleID=" & rsnobigclass("EC_ArticleID")
					newswwwurl=rsnobigclass("titleface")
					datetime="(" & year(rsnobigclass("UpdateTime"))  &"."& Month(rsnobigclass("UpdateTime"))  &"."& Day(rsnobigclass("UpdateTime")) &")"
				else
					newsurl="wygkcn_ShowArticle.asp?EC_ArticleID=" & rsnobigclass("EC_ArticleID")
					newswwwurl=rsnobigclass("titleface")
					datetime="("& Month(rsnobigclass("UpdateTime"))  &"."& Day(rsnobigclass("UpdateTime")) &")"
				end if
				if rsnobigclass("picnews")=1 then
					img="<font class=pic_word>[图]</font>"
				else
					img=""
				end if
					title=trim(rsnobigclass("title"))
					title=replace(title,"<br>","")
%>
<li> <%if showtime="1" then%><span><%=datetime%></span><%end if%>
·<a href="<%if rsnobigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=rsnobigclass("title")%>" target="_blank"> <<%=rsnobigclass("titletype")%>><font color="<%=rsnobigclass("titlecolor")%>"> <%=CutStr(title,46)%></font></<%=rsnobigclass("titletype")%>></a>
<!--标题后评论提示-->
<% if rsnobigclass("titlesize")>=1 then %>
<a href="<%=path%>review.asp?EC_ArticleID=<%=rsnobigclass("EC_ArticleID")%>" target="_blank" ><font color=red><b>评</b></font></a>	<%=img%> 
<%end if %>
<!--标题后评论提示-->
<%if year(rsnobigclass("updatetime"))=year(date()) and month(rsnobigclass("updatetime"))=month(date()) and day(rsnobigclass("updatetime"))=day(date()) then%>
<img src="images/new.gif">
<%end if%>       
</li>
<%
rsnobigclass.MoveNext
i = i + 1
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_NobigClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID
'request_E_SmallClassID
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rsnobigclass.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
rsnobigclass.close
set rsnobigclass=nothing
%>
</li>
</ul>

<% case 3 %>
<!--网址模版-->
<ul>
<%
set rsnobigclass=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
				rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="" then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="selfreg" then
					if Request.cookies(echsys)("reglevel")=3 then
						rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
					end if
				if Request.cookies(echsys)("reglevel")=2 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("reglevel")=1 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
			end if
			else
			rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
			end if
			rsnobigclass.Open rsnobigclass.Source,conn,1,1

if not rsnobigclass.EOF then
rsnobigclass.PageSize     = MyPageSize
MaxPages         = rsnobigclass.PageCount
rsnobigclass.absolutepage = MyPage
total            = rsnobigclass.RecordCount
i = 0
%>
<% do until rsnobigclass.Eof or i = rsnobigclass.PageSize %>
<li class=class_site_list>
<%
Content=htmlencode4(rsnobigclass("Content"))
%>
<% if not rsnobigclass.EOF then %>

<a href="<%=rsnobigclass("Original")%>" target=_blank title="<%=CutStr(nohtml(rsnobigclass("Content")),80)%>"><%=CutStr(rsnobigclass("title"),30)%></a>

</li>
<%
rsnobigclass.movenext
i = i + 1
end if
loop
%>
<li class="list_pages">
<%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_NobigClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID
'request_E_SmallClassID
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rsnobigclass.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
rsnobigclass.close
set rsnobigclass=nothing
%>
</li>
</ul>
<% case 4 %>
<!--软件产品模板-->
<ul>
<%
set rsnobigclass=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
				rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="" then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("key")="selfreg" then
					if Request.cookies(echsys)("reglevel")=3 then
						rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
					end if
				if Request.cookies(echsys)("reglevel")=2 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				if Request.cookies(echsys)("reglevel")=1 then
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1 ) order by EC_ArticleID DESC"
				end if
				end if
				else
					rsnobigclass.Source="select  * from "& db_wygkcn_Article_Table &" where (E_typeid=" & E_typeid &"  and E_BigClassID is null and E_SmallClassID is null and Checked=1) order by EC_ArticleID DESC"
				end if
			rsnobigclass.Open rsnobigclass.Source,conn,1,1


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

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

					if showyear=1 then
						newsurl="wygkcn_ShowArticle.asp?EC_ArticleID=" & rsnobigclass("EC_ArticleID")
						newswwwurl=rsnobigclass("titleface")
						datetime="(" & year(rsnobigclass("UpdateTime"))  &"."& Month(rsnobigclass("UpdateTime"))  &"."& Day(rsnobigclass("UpdateTime")) &")"
					else
						newsurl="wygkcn_ShowArticle.asp?EC_ArticleID=" & rsnobigclass("EC_ArticleID")
						newswwwurl=rsnobigclass("titleface")
						datetime="("& Month(rsnobigclass("UpdateTime"))  &"."& Day(rsnobigclass("UpdateTime")) &")"
					end if
					if rsnobigclass("picnews")=1 then
						img="<font class=pic_word>[图]</font>"
					else
						img=""
					end if
						title=trim(rsnobigclass("title"))
						title=replace(title,"<br>","")
%>
<%
fileExt=lcase(getFileExtName(rsnobigclass("picname")))
Content=htmlencode4(rsnobigclass("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 rsnobigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=htmlencode4(title)%>" target="_blank"> <font color="<%=rsnobigclass("titlecolor")%>"><strong> <%=CutStr(title,40)%> </strong></font> </a> <%if year(rsnobigclass("updatetime"))=year(date()) and month(rsnobigclass("updatetime"))=month(date()) and day(rsnobigclass("updatetime"))=day(date()) then%>
<img src="images/new.gif">
<%end if%>
</H5>
<div class="float_left s_pic">
<a href="<%if rsnobigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target=_blank title="<%=htmlencode4(rsnobigclass("title"))%>">
                  <%if   rsnobigclass("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 & rsnobigclass("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 & rsnobigclass("picname")%>">
                    <param name=quality value=high>
                    <param name='Play' value='-1'>
                    <param name='Loop' value='0'>
                    <param name='Menu' value='-1'>
                    <embed src="<%=FileUploadPath & rsnobigclass("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 rsnobigclass("titleface")="无" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><%=CutStr(nohtml(rsnobigclass("Content")),300)%></a> 
</div>
<div class="clear_float"></div>
</div>
</li>
<%
rsnobigclass.MoveNext
i = i + 1
loop
%>
<li class="list_pages">
共 <%=total%> 条，当前第 <%=Mypage%>/<%=Maxpages%> 页，每页 <%=MyPageSize%> 条
<%
url="wygkcn_NobigClass.asp?E_typeid=" & E_typeid & "&E_BigClassID=" & request_E_BigClassID
'request_E_SmallClassID
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rsnobigclass.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
rsnobigclass.close
set rsnobigclass=nothing
%>
</li>
</ul>
<%end select%>
<!--无大类文章区结束-->

</div>

</div>
<!--列表部分结束-->


</div>
<!--右边部分结束-->
<div class=clear_float></div><!--清除浮动属性-->

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