<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/xycms.asp"-->
<!--#include file="xypage.asp"-->
<%
id=request.QueryString("id")
set rs=server.createobject("adodb.recordset") 
if id="" then
exec="select * from [news] order by id desc"
else
exec="select * from [news] where ssfl="&id&" order by id desc"
end if
rs.open exec,conn,1,1
%>
<!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="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Keywords" content="<%=keywords%>" />
<meta name="Description" content="<%=descriptions%>" />
<link href="skins/green.css" type="text/css" rel="stylesheet" />
<title>资讯列表-<%=wzname%></title>
</head>
<body>
<div id="mainbody">
  <div id="header">
    <!--#include file="head.asp"-->
  </div>
  <div id="dc">
    <div class="dc_l">
      <div class="dc_l_t">
        <h3>资讯列表</h3>
      </div>
      <div class="dc_l_c">
        <div class="dc_l_c_c">
          <div class="dc_l_c_c_c">
            <ul>
              <% if rs.eof then
		     response.Write("<li>暂无该类信息记录！</li>")
			 else
			 rs.PageSize =15
             iCount=rs.RecordCount 
             iPageSize=rs.PageSize
             maxpage=rs.PageCount 
             page=request.querystring("page")
             if Not IsNumeric(page) or page="" then
             page=1
             else
             page=cint(page)
             end if
             if page<1 then
             page=1
             elseif  page>maxpage then
             page=maxpage
             end if
             rs.AbsolutePage=Page
             if page=maxpage then
             x=iCount-(maxpage-1)*iPageSize
             else
             x=iPageSize
             end if
             end if
             For i=1 To x %>
              <li><span>[<%=formatdatetime(rs("data"),2)%>]</span><a href="shownews.asp?id=<%=rs("id")%>" target="_self" title="<%=rs("title")%>"><%=rs("title")%></a></li>
              <% rs.movenext
                next %>
            </ul>
            <div class="clear"></div>
          </div>
          <div class="dc_l_c_c_p">
             <% call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
                rs.close
                set rs=nothing %>
          </div>
        </div>
      </div>
    </div>
    <div class="dc_r">
      <div class="dc_r_t">
        <h3>资讯类别</h3>
      </div>
      <div class="dc_r_c">
        <div class="dc_r_c_c">
          <ul>
            <%=xycms_newsfllist()%>
          </ul>
        </div>
      </div>
      <div class="dc_r_pic">
        <script src=/advfile/ad_24.js></script>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div id="link">
    <div class="link_t">
      <h3>合作伙伴/友情链接</h3>
    </div>
    <div class="link_c">
      <div class="link_c_c">
        <div class="link_c_c_t">
          <ul>
            <li class="bov">
              合作伙伴：<%=xycms_link()%>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div id="footer">
    <!--#include file="foot.asp"-->
  </div>
</div>
</body>
</html>
