<!--头部Star-->
<!--#include file="head.asp"-->
<!--头部End-->
<!--中间Star-->
<%
call aspsql()
%>
<% dim tempp,flas
  tempp=3
  flas=3
  %>
<table width="1004" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="180" align="center" valign="top">
	<table width="100" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="43"></td>
  </tr>
<!--#include file="left_sbzs.asp"-->  
</table>
</td>
    <td width="705" valign="top"><table width="705" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="495">　</td>
        <td width="210" valign="top"><img src="hf_images/icon_3.jpg" width="14" height="12" align="absmiddle"><a href="hf_sbzs.asp" IsShowProcessBar=True>展示首页 &gt; </a>
<%
  s_id=cstr(trim(request("s_id")))
  if s_id="" then
  response.Write("全部设备")
  else
  set bclass=Server.CreateObject("ADODB.Recordset")
  bclass.open "select * from bigclass_sbzs where bigclassid="&cstr(s_id),conn,3,3
  response.write "类别："+bclass("Bigclassname")
  blcass.close
  set blcass=nothing
  end if
  %></TD></TR>
      </tr>
      <tr>
        <td height="24">　<img src="hf_images/icon_2.jpg" width="19" height="21" align="absmiddle"><img src="hf_images/hf_sbzs.jpg" width="80" height="23" align="absmiddle"></td>
        <td height="24">　</td>
      </tr>
      <tr>
        <td colspan="2" align="center"><img src="hf_images/line_2.jpg" width="677" height="2"></td>
      </tr>
      <tr>
        <td colspan="2">　</td>
      </tr>
      <tr>
        <td colspan="2" align="center"><table width="658" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="140" height="24" valign="top"><table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="8" align="left"><img src="hf_images/kuan_L.jpg" width="8" height="30"></td>
                <td width="161" class="line_T"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="6%"><img src="hf_images/Kuan_R_R.jpg" width="10" height="28"></td>
                    <td width="77%" align="center" valign="middle" background="hf_images/Kuan_R_BG.jpg" class="title_FF" ><%
  s_id=cstr(trim(request("s_id")))
  if s_id="" then
  response.Write("全部设备")
  else
  set bclass=Server.CreateObject("ADODB.Recordset")
  bclass.open "select * from bigclass_sbzs where bigclassid="&cstr(s_id),conn,3,3
  response.write ""+bclass("Bigclassname")
  blcass.close
  set blcass=nothing
  end if
  %></td>
                    <td width="17%"><img src="hf_images/Kuan_R_2.jpg" width="26" height="28"></td>
                  </tr>
                </table></td>
                <td width="7"><img src="hf_images/kuan_R.jpg" width="7" height="30"></td>
              </tr>
            </table></td>
            <td width="600" valign="top" class="line_B">　</td>
            <td width="9" valign="top">　</td>
          </tr>
          <tr>
            <td height="5" colspan="3" align="right" valign="top" class="line_L"><img src="hf_images/kuan_RT.jpg" width="10" height="10"></td>
          </tr>
          <tr>
            <td colspan="3" align="center" valign="top" class="line_LR"><table width="640" border="0" cellspacing="0" cellpadding="0">
<tr>
  <% 
   page=request("page")
   PageSize =12
   set rs= Server.CreateObject("ADODB.Recordset")
   if s_id<>"" then
   sql="select * from hf_sbzs where bigclassid='"&s_id&"' order by productid desc"
   else
   sql="select * from hf_sbzs order by productid desc"
   end if
   rs.open sql,conn,3,3
   rs.PageSize = 12
   total=rs.recordcount
   pgnum=rs.Pagecount
    if page="" or clng(page)<1 then page=1
    if clng(page) > pgnum then page=pgnum
    if pgnum>0 then rs.AbsolutePage=page
		
	if rs.eof then
            %>
          <td valign="top" align="left" bgcolor="#FFFFFF"><div align="center">
            此分类暂无设备........<br>
            </div></td>
   <%end if
   i=0
   do while not rs.eof and i<rs.PageSize 
   %>
<td align="center">
<table class="sontable" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="5"></td>
<td width="168"><img src="hf_images/index_pic_1.gif" border="0"></td>
<td width="5"></td>
</tr>
<tr>
<td></td>
<td background="hf_images/index_pic_2.gif" align="center" ><a href="hf_sbzslist.asp?id=<%=rs("productid")%>&s_id=<%=rs("bigclassid")%>"target="_blank" ><% if rs("defaultpicurl")<>"" then%><img src="<%=rs("defaultpicurl")%>"  width="140" height="105" border="0" style="CURSOR: hand;filter:alpha(opacity=70)" onmouseover="javascript:toup2(this)"  onMouseOut="javascript:todown2(this);" title="名称：<%=rs("title")%>&#10;简介：<%=rs("product_id")%>"
<%else
response.write ("<table width='140' cellspacing='0' cellpadding='10' align='center'><tr><td style='height:70px;border: 4px double #cccccc;font-weight:bold;font-size:14px;color:#666;' align='center' valign='middle'>没有找到图片</tr></td></table>")
end if%></a>
</td>
<td>
</td>
</tr>
<tr>
<td></td>
<td><img src="hf_images/index_pic_3.gif" border="0"></td>
<td></td>
</tr>
<TR>
<TD align=center><TD background=hf_images/sbbg.gif width="168" height="37">
                        <TABLE width="100%"  border=0 cellPadding=1 cellSpacing=0>
                          <TBODY>
                          <TR class=font>
                            <TD class=pro-title align=center width="100%"><a href="hf_sbzslist.asp?id=<%=rs("productid")%>&s_id=<%=rs("bigclassid")%>" target="_blank" ><%=rs("title")%></a></TD>
						  </TR>
						  </TBODY>
						 </TABLE>
					  </TD>
                      <TD>　</TD>
				 </TR>
				</table>
				</td>
  <%
  i=i+1
   rs.movenext
  if (I Mod 3 = 0 And I <> 0) then  
  response.Write("</tr><tr>")
  end if
  loop
modI = (I Mod 3)
if modI <> 0 then
	for i = modI + 1 to 3
		'当一行中图片不足时，替换图片输出
		response.write "<td><table class='sontable' cellspacing='0' cellpadding='0' align='center'>"
		response.write "<tr>"
		response.write "<td width='5'></td>"
		response.write "<td><img src='hf_images/index_pic_1.gif' border='0'></td>"
		response.write "<td width='5'></td>"
		response.write "</tr>"
		response.write "<tr>"
		response.write "<td width='5'></td>"
		response.write "<td background='hf_images/index_pic_2.gif' align='center'><img src='hf_images/nopic.gif' border='0' width='140' height='105' align='center'></td>"
		response.write "<td width='5'></td>"
		response.write "</tr>"
		response.write "<tr><td width='5'></td><td><img src='hf_images/index_pic_3.gif' border='0'></td><td width='5'></td></tr>"
		response.write "<tr><td></td><td align='center' height='25' class='disable_font'>[暂时没有图片]</td>"
		response.write "<td></td>"
		response.write "</tr>"
		response.write "</table></td>"
	next
end if

  %>
</tr>

</tr>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr><td align="right" style="padding-right:30px;">
<form method=post action="hf_sbzs.asp?s_id=<%=request.querystring("s_id")%>" IsShowProcessBar=True>
[共<%=rs.pagecount%>页/当前第<%=page%>页] [共<%=total%>个设备]
<%if page=1 then%>
[首 页] [上一页]
<% else %>
[<a href="hf_sbzs.asp?page=1&s_id=<%=request.querystring("s_id")%>">首 页</a>]
[<a href="hf_sbzs.asp?page=<%=page-1%>&s_id=<%=request.querystring("s_id")%>">上一页</a>]
<%end if%>
<%if rs.pagecount-page<1 then%>
[下一页] [尾 页]
<%else%>
[<a href="hf_sbzs.asp?page=<%=page+1%>&s_id=<%=request.querystring("s_id")%>">下一页</a>] [<a href="hf_sbzs.asp?page=<%=rs.pagecount%>&s_id=<%=request.querystring("s_id")%>">尾 页</a>]</FONT>
<%end if%>
转到第<input type="text" name="page" size="3" maxlength="20"  value="<%=page%>" >页
<input name="submit" type="submit" value="确定"   size="2">
</form>
</td></tr>
            </table></td>
          </tr>
          <tr>
            <td height="10" colspan="3" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="2%"><img src="hf_images/kuan_LB.jpg" width="10" height="10"></td>
                <td width="95%" class="line_B"><img src="hf_images/spacer.gif" width="640" height="10"></td>
                <td width="3%"><img src="hf_images/kuan_RB.jpg" width="10" height="10"></td>
              </tr>
            </table></td>
          </tr>
        </table>
          <br>
          <br></td>
      </tr>
    </table></td>
    <td width="116" align="right" valign="top"><img src="hf_images/hf_right_ad.jpg" width="116" height="342"></td>
  </tr>
</table>
<!--中间End-->
<!--底部Star-->
<!--#include file="hf_down.asp"-->
<!--底部End-->