<!--#include file="conn2.asp"-->
<!--#include file="config.asp" -->
<!--#include file="Sql.Asp" -->
<!--#include file="cms86_sql.asp"--> 
<!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" />
<META http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<title><%=cms86_xwmk%>_<%=cms86_home%></title>
<meta name="keywords" content="<%=cms86_keywords%>" />
<meta name="description" content="<%=cms86_description%>" />
<script type="text/javascript" src="images/main.js"></script>
<link href="<%=cms86_css%>" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="bg">
<!--顶部导航开始 -->
<!--#include file="top.asp" -->
<!--顶部导航结束 -->


<!--中部开始 -->
<div id="main">
<!--中部左侧开始 -->
<div class="left">


<% 
set news_fl=server.createobject("adodb.recordset") 
exec="select * from [news_fl]  where xs=1 order by px_id asc  " 
news_fl.open exec,conn,1,1 
if news_fl.eof and news_fl.bof then
response.Write("&nbsp;暂无任何分类 !")
end if
do while not news_fl.eof%>
<div class="left2_box">
<div class="left2_box_biao"><a href="NewsMore.asp?id=<%=news_fl("id")%>"><%=news_fl("title")%></a></div>
<div class="left2_box_list">
<% 
set news=server.createobject("adodb.recordset") 
exec="select top 6 * from [news] where ssfl="&news_fl("id")&" order by id desc  " 'top 5代表每栏目显示5条新闻
news.open exec,conn,1,1 
if news.eof and news.bof then
response.Write("&nbsp;此分类暂无新闻 !")
end if%>
<ul>
<%while not news.eof
dim url,color
if IsNull(news("url")) or trim(news("url")&"")="" then
url="ShowNews.asp?id="&news("id")&""
else
url=""&news("url")&""
end if
if IsNull(news("color")) or trim(news("color")&"")="" then
color="#000000"
else
color=""&news("color")&""
end if
%>
<table width="660" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="552" height="25">·<a href="<%=url%>" title="<%=InterceptString(news("title"),86)%>" style="color:<%=color%>;"><%=InterceptString(news("title"),50)%></a></td>
    <td width="108" align="right">(<%=right("0"&month(news("data")),2)%>-<%=right("0"&day(news("data")),2)%>)</td>
  </tr>
</table>
<%news.movenext
wend%>
</ul><%
news.close
set news=nothing
%>

</div>
</div>
<%
news_fl.movenext
loop
news_fl.close
set news_fl=nothing
%>




</div>
<!--中部右侧开始 -->
<div class="right">

<div class="right_box">
<div class="right_box_biao"><a href="news.asp"><%=cms86_xwmk%></a></div>
<div class="right_box_list"><div class="dh"><%=cms86_News_fl_list%></div></div>
</div>

<!--#include file="left.asp" -->


</div>
</div>
<!--中部结束 -->



<!--尾部开始 -->
<div id="foot"><!--#include file="foot.asp" --></div> 

<!--尾部结束 -->


</div>
</body>
</html>
