<!--#include file="conn.asp"-->
<!--#include file="left.asp"-->
<!--#include file="admin/include/functions.asp"-->
<script language="JavaScript">
							function OpenWin (id)
							{
window.open("products_show.asp?cateid=<%=cateid%>&subcateid=<%=subcateid%>&id=" + id, "_blank", "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,height=550, width=770");
							}
							</script> 

<%
pic3=true
set rs=server.createobject("adodb.recordset")
'cateid=request("cateid")

'商品展示
function displist(sql,num)
 rs.open sql,conn,1,1
 i=0
 response.write("<table width='100%'><tr>")
 do while not rs.eof  
   response.write("<td align='center' class='list'>")
   response.Write("<table align=center cellPadding=4 cellSpacing=1 bgcolor='#3F6091' border=0 ><tr><td align='center' bgcolor=#ffffff>")
   response.Write("<a href='javascript:OpenWin("&rs("id")&");'><img src='products/"&rs("pics")&"' border=0 width='160' height='160'  alt='产品编号："& rs("p_no") & vbcrlf &"产品名称："& rs("p_name") & vbcrlf &"发布时间："& FormatDateTime(rs("addtime"),1) &"'></a></td></tr>")
   response.write("<tr><td align='center' class='font-blue'>产品编号："&rs("p_no")&"</td></tr></table></td>")
   rs.movenext
   i=i+1
   if i mod 3=0 then response.write("</tr><tr>")
 loop
 response.write("</tr></table></div>")
 rs.close
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>盛达玩具，玩具,智力玩具,澄海盛达玩具,澄海盛达,盛达玩具,盛达公司，博迪</title>
<META content="盛达玩具,玩具,智力玩具,澄海盛达玩具,澄海盛达,盛达玩具,盛达公司" name=keywords>
<META content="盛达玩具,玩具,智力玩具,澄海盛达玩具,澄海盛达,盛达玩具,盛达公司" name=description>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>

<body bgcolor="#1C4C98">
<!--#include file ="top.asp"-->
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1003"><table width="1003" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="237" valign="top" bgcolor="#1C4C98"><table width="237" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="237"><img src="images/JK_02.jpg" width="237" height="47"  /></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td background="images/JK_122.jpg"><!--#include file ="log.asp"--></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/JK_pro.jpg" width="237" height="31"  /></td>
              </tr>
              <tr>
                <td height="119" valign="top" background="images/JK_14.jpg"><table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td>产品分类：</td>
                  </tr>
                  <tr>
                    <td><%call showmenu("1","products.asp")%></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                </table>
                  </td>
              </tr>
              <tr>
                <td><img src="images/JK_15.jpg" width="237" height="17"  /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top">&nbsp;</td>
          </tr>
        </table></td>
        <td width="766" valign="top" bgcolor="#1C4C98"><table width="766" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="3">
			<!--#include file="menu.asp"-->
			</td>
          </tr>
          <tr>
            <td colspan="3" background="images/title_bg.jpg"><img src="images/JK2_08.jpg" alt="" width="766" height="58" border="0" usemap="#Map2"></td>
            </tr>
          <tr>
            <td width="26" valign="top" bgcolor="#1C4C98"><img src="images/JK2_09.jpg" width="26" height="374"  /></td>
            <td width="711" valign="top" background="images/JK_10.jpg"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="186" valign="top"><table width="90%" border="0" align="center" cellpadding="5" cellspacing="2">
                  <tr>
                    <td><%
					sql="select top 3 * from products where isnew=true"
					'Response.Write(sql)
					'Response.End()
					call displist(sql,3)
					%></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><img src="images/JK2_15.jpg" alt="" width="711" height="43" border="0" usemap="#Map3"></td>
              </tr>
              <tr>
                <td height="145" valign="top" background="images/JK2_17.jpg"><table width="90%" border="0" align="center" cellpadding="6" cellspacing="2">
                  <tr>
                    <td><%
					  '推荐
				      sql="select top 3 * from products where commend=true"
					  call displist(sql,3)
                      %>
                    </td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
            <td width="29" valign="top" bgcolor="#1C4C98"><img src="images/JK2_11.jpg" width="29" height="374"  /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="bottom.asp"-->

<map name="Map2"><area shape="rect" coords="661,24,694,47" href="products.asp?id=zxcp">
</map>
<map name="Map3">
<area shape="rect" coords="636,14,666,33" href="products.asp?id=hot">
</map></body>
</html>
