<!--#include file="../conn.asp"-->
<%
page=request.QueryString("page")
if page="" or isnumeric(page)=false then page=1
page_size = 20

set rs = server.CreateObject("adodb.recordset")
sql = "select * from zh_pro order by chengjiaoNum desc"
rs.open sql,conn,1,1

if not rs.eof then
	have = 1
	rs.pagesize     = page_size
	rs.absolutePage = page
	recordCountNum  = rs.recordcount
else
	have = 0
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>销售排行</title>
<link href="../css/comm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/inc/showo_page.js"></script>
</head>

<body>
<div class="bodyDiv">
<!--#include file="top.asp"-->
<!--#include file="zh_daohang.asp"-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="29%" bgcolor="#f0f0f0">&nbsp;</td>
          <td width="1%">&nbsp;</td>
          <td width="70%">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top" bgcolor="#f0f0f0">
            <!--#include file="paihang.asp"-->
          <div style="text-align:center; padding:10px 0;"><img src="zh_img/Snap2.jpg" width="257" height="67" /></div>
          <!--#include file="chengjiao.asp"--><br />
          <!--#include file="model_cuxiao.asp"--><br />
          <!--#include file="pinpai.asp"--><br /></td>
          <td><div style="width:12px;"></div></td>
          <td valign="top"><div style="border:solid 1px #a6bcc9; padding-left:25px;">
            <div style="margin-top:10px; line-height:25px; background-image:url(zh_img/Snap17.jpg); background-repeat:no-repeat;">
        	<span style="margin-left:18px; color:#FFFFFF; font-weight:bold; font-size:14px;">销售排行</span>
        </div>
            <div>&nbsp;</div>
            <table width="85%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="12%"><img src="/images/more3.gif" width="77" height="32" /></td>
                <td width="88%"><img src="zh_img/Snap20.jpg" width="361" height="32" /><img src="zh_img/Snap21.jpg" width="131" height="32" /></td>
              </tr>
              <tr>
                <td colspan="2"><table width="100%" border="0" cellpadding="8" cellspacing="0" background="images/Snap41.gif" class="tabledot">
        <%
		dim i
		i = 1
		do while not rs.eof and i <=page_size
		%>
              <tr>
                <td width="57" align="center"><%=i%></td>
                <td width="361" class="moren"><div style="width:361px;" class="hiddfont"><%="<a href='view.asp?pid="& rs("id") &"' target='_blank'>"& rs("Proname") &"</a>"%></div></td>
                <td width="103"><%=rs("chengjiaoNum")%></td>
              </tr>
			  <%
		i = i + 1
		rs.movenext
		loop
		rs.close
		set rs = nothing
			  %>
            </table></td>
              </tr>
            </table>
            <%if have = 1 then%>
          <table width="569" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><Script Language="JavaScript">
ShowoPage("<table style='BORDER-COLLAPSE: collapse' borderColor='#111111' height='10' cellSpacing='0' cellPadding='0' width='95%' border='0'><tr><td vAlign='bottom'  style='font-family: Verdana,宋体; font-size: 11.5px; line-height: 15px'>","</td></tr></table>","页次:<font color='red'>","</font>/","","&nbsp;","&nbsp;每页<font color='red'>","</font>&nbsp;","&nbsp;共计:<font color='red'>","</font></td><td vAlign='bottom' align='right'  style='font-family: Verdana,宋体; font-size: 11.5px; line-height: 15px'>","<font face=webdings>9</font>","<font face=webdings>7</font>","<font face=webdings>8</font>","<font face=webdings>:</font>","&nbsp;&nbsp;跳转:","<font color='orange'>[","]</font>","","","<font color='red'>","</font>","","",<%=recordCountNum%>,<%=page_size%>,4,"?p=parm1&<%=prm%>")
</Script></td>
            </tr>
          </table>
          <%end if%>
          </div>


<div>
  <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>
</td>
        </tr>
      </table>
      <!--#include file="../model_bottom.asp"-->
</div>
</body>
</html>