<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<%yiid=getsaferequest(trim(request("yiid")))
erid=getsaferequest(trim(request("erid")))
if yiid="" then
	response.write "错误!版面编号不能为空!<a href=# onclick='javascript:window.history.go(-1)'>返回</a>"
	response.end
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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site_name%></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!--#include file="top.asp"-->
<div id="box">
<div id="left">
  <div id="nav4">栏目导航</div>
  <div id="nav_content">
  <ul class="cannel2">
<%
set rs1=server.createobject("ADODB.recordset")
sql="select * from erkind where yiid="&yiid&"  order by erorder asc"
rs1.open sql,conn,1,1
do while not rs1.eof
%>
<li><a  href="list2.asp?yiid=<%=yiid%>&amp;erid=<%=rs1("erid")%>"><%=rs1("ername")%></a></li>
<%
rs1.movenext
loop
rs1.close
if yiid<>"" then
set rsbig=server.createobject("ADODB.recordset")
rsbig.open "select yiname from yikind where yiid=" & cstr(yiid) & "",conn,1,1
yiname_show=rsbig("yiname")
rsbig.close
set rsbig=nothing
end if
%>
</ul>
</div>
<div id="nav4">点击排行</div>
<div id="nav_content">
<ul>
<%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top 6 * from news order by hit desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a href="list.asp?yiid=<%=rs("yiid")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
<div id="nav4">投票调查</div>
<div id="nav_content">
<script language="javascript" src="vote/votescript.asp?vid=7"></script>
</div>
</div>

<div id="right">
<div id="address">您的位置：本站首页→
        <%if yiid<>"" then response.Write("→"&yiname_show) end if%></font></div>


			

<div id="big_content">
       <%  set rs1=server.createobject("ADODB.recordset")
		sql="select * from erkind where yiid="&yiid&" order by erorder asc"
		rs1.open sql,conn,1,1
		do while not rs1.eof
		%>
<div id="content_title"><span><a href="list2.asp?yiid=<%=yiid%>&amp;erid=<%=rs1("erid")%>">更多>></a></span><a href="list2.asp?yiid=<%=yiid%>&amp;erid=<%=rs1("erid")%>"><%=rs1("ername")%></a></div>
<div id="content">
<ul>
<%
					set rs=server.createobject("ADODB.recordset")
					sql="select top " & rs1("ernum") & " * from news where erid="&rs1("erid")&" order by id desc"
					rs.open sql,conn,1,1
					do while not rs.eof
					response.Write "<table width='100%'cellSpacing=0 cellPadding=0 border=0><tr><td width='15'><img src='img/arrow.gif'></td><td style='font-size:12px; line-height:28px;border-bottom: 1px dotted #cccccc; width:88%;'><a href='show.asp?id=" & rs("id") & "' target='_blank'  title='"& rs("title") & "  [" & Gettime(rs("newstime"))& "]" & "'>"
					'rs("title")
					response.write trim(rs("title"))
					if date()<rs("newstime")+2 then
						response.write  "<img src='img/news2.gif' border=0>"
					end if
					response.write "</a></td><td style='font-size:12px; line-height:28px;border-bottom: 1px dotted #cccccc;'>["&Gettime(rs("newstime"))&"]</td></tr></table>"
					rs.movenext
					loop
					rs.close
					set rs=nothing
					%>
</ul>
</div>
<%rs1.movenext
loop
rs1.close
set rs1=nothing
%>
</div>
</div>
</div>
</div>
<%
conn.close
set conn=nothing
%>
<!--#include file="bottom.asp"-->
</body>
</html>
