<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="xyconn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/xycms.asp"-->
<!--#include file="page.asp"-->
<%
set rst=server.createobject("adodb.recordset") 
exec="select * from [devices] order by id desc"
rst.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=utf-8" />
<link href="style/css.css" type="text/css" rel="stylesheet" />
<title>设备展示-<%=wzname%></title>
</head>
<body>
<div id="contain">
  <!--#include file="head.asp"-->
  <div id="dc">
    <div class="dc_l">
      <div class="dc_l_t">
        <div class="title">关于我们</div>
      </div>
      <div class="dc_l_c">
        <div class="dc_l_c_c">
          <ul>
            <%=xycms_commonlist()%>
          </ul>
        </div>
      </div>
    </div>
    <div class="dc_r">
      <div class="dc_r_t">
        <div class="title">当前位置：<a href="index.asp" target="_self">网站首页</a> >> <a href="devices.asp" target="_self">设备中心</a> >> 信息列表</div>
      </div>
      <div class="dc_r_c">
        <div class="dc_r_c_c">
          <% if rst.eof then
             response.Write "<li>暂无该类产品信息记录！</li>"
             else
             rst.PageSize =12
             iCount=rst.RecordCount 
             iPageSize=rst.PageSize
             maxpage=rst.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
             rst.AbsolutePage=Page
             if page=maxpage then
             x=iCount-(maxpage-1)*iPageSize
             else
             x=iPageSize
             end if
             end if
             For i=1 To x %>
          <div class="dev_list">
            <div class="dev_l">
              <a href="showdev.asp?id=<%=rst("id")%>" target="_blank"><img src="<%=rst("img")%>" width="212" height="146" /></a>
            </div>
            <div class="dev_r">
              <div class="dev_r_t"><%=rst("title")%></div>
              <div class="dev_r_dc">
                <%=left(rst("jianjie"),200)%>
              </div>
              <div class="dev_r_but">
                <a href="showdev.asp?id=<%=rst("id")%>" target="_blank"><img src="images/butun.gif" /></a>
              </div>
            </div>
            <div class="clear"></div>
          </div>
          <div class="dev_line"></div>
          <% rst.movenext
			   next %>
          <ul style="width:100%; line-height:40px; text-align:center;">
            <% call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
                rst.close
                set rst=nothing %>
              </ul>  
        </div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <!--#include file="foot.asp"-->
</div>
</body>
</html>
