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

keyb = request.QueryString("keyb")
page_size = 15
prm = "keyb="& keyb &"&"

%>
<!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="/js/comm.js"></script>
<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="267" 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 valign="top" width="22">&nbsp;</td>
        <td valign="top"><br />
        <table width="100" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div style=" background-image:url(zh_img/Snap23.jpg); background-repeat:no-repeat; height:21px; line-height:21px; width:617px;"><span style="color:#FFFFFF; font-weight:bold; font-size:13px; padding-left:20px;">搜索结果产品</span></div></td>
          </tr>
          <tr>
            <td height="98" background="zh_img/Snap24.jpg">
            <%
		set rs_a = server.CreateObject("adodb.recordset")
		rs_a.open "select * from zh_pro where Proname like '%"& keyb &"%' order by id desc",conn,1,1
		
		if not rs_a.eof then
			have = 1
			rs_a.pagesize     = page_size
			rs_a.absolutePage = page
			recordCountNum  = rs_a.recordcount
		else
			have = 0
		end if
		
		dim i
		i = 1
		if have = 1 then
			do while not rs_a.eof and i <=page_size
			%>
            <div style="float:left; width:200px; text-align:center;">
            <div style="width:160px;">
              <div style="margin-top:10px; text-align:center;"><a href="view.asp?pid=<%=rs_a("id")%>" target="_blank"><img src="/<%=rs_a("proImg")%>" alt="<%=rs_a("Proname")%>" width="119" height="92" border="0" /></a></div>
              <div style="text-align:center; line-height:20px;" class="moren"><a href="view.asp?pid=<%=rs_a("id")%>" target="_blank"><%=rs_a("Proname")%></a></div>
              <div style="text-align:center; line-height:20px;">市场价：<strong style="text-decoration:line-through;"><%=rs_a("price_shic")%></strong>&nbsp;&nbsp;特价：<strong><%=rs_a("price_yika")%></strong></div>
              <%
			  shengyushijian = datediff("d",date(),rs_a("time_xianshi"))	'大于零则为限时特价商品
			  if shengyushijian > 0 then
			  %>
              <div style="text-align:center; line-height:20px; color:#fe8917; font-weight:bold;">剩余时间：<%=shengyushijian%>天</div>
			  <%end if%>
            </div>
        </div>
            <%
			i = i + 1
			rs_a.movenext
			loop
		else
			response.write "<div style='padding:10px 0;' align='center'>暂无搜索到相关产品</div>"
		end if
		rs_a.close
		set rs_a = nothing
		response.write "<div style='clear:both;'></div>"
		%>
            </td>
          </tr>
          <tr>
            <td><img src="zh_img/Snap9.jpg" width="617" height="19" /></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%>
        </td>
    </tr>
  </table>
  <!--#include file="model_classList.asp"-->
  <!--#include file="../model_bottom.asp"-->
</div>
</body>
</html>
