<!--#include file="conn.asp"-->
<%
strCurrMenu=GetVariable("mnid")
%>


<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="common/style.css" type="text/css">
<script language="JavaScript" src="common/JS_CheckForm.js"></script>
<script language="JavaScript">
function checkform(theform){
	if(!CheckEmpty(theform.key, "关键字")) return false;
	if(!CheckInteger(theform.price1, "最低价格")) return false;
	if(!CheckInteger(theform.price2, "最高价格")) return false;
}
</script>


<script language="JavaScript">
	function PutWare(strID){
		Shopwin=window.open("shopping.asp?action=add&spid=" + strID+ "&PtCount=1&mnid=<%=strCurrMenu%>",'WareList','width=580,height=250,scrollbars=yes,resizable=yes');
		Shopwin.focus();
	}

</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" BodyBegin>
<table width="776" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="8" height="108" background="images/shadow.gif"></td>
    <td width="760" height="108" valign="top"> 
      <!--#include file="top.asp"-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
        <tr> 
          <td height="5"></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="580" height="150" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="579" height="150">
              <param name=movie value="images/we.swf">
              <param name=quality value=high>
              <embed src="images/we.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="579" height="150">
              </embed> 
            </object></td>
          <td width="180" background="images/cp.gif" height="150">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="580" height="29" valign="top"> 
            <table width="579" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td background="images/line.gif" height="8"></td>
              </tr>
            </table>
            <table width="579" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#F76D31" height="27" valign="top"><font face="Arial Black" color="#FFFFFF"><font size="3"> 
                  &nbsp;&nbsp;<b>&nbsp;&nbsp;<img src="images/dian.gif" width="16" height="15"> 
                  &nbsp;<strong><%=request("classname")%></strong></b></font></font></td>
              </tr>
            </table>
            <table width="579" border="0" cellspacing="0" cellpadding="0" bgcolor="#F76D31" height="100%">
              <tr> 
                <td width="579" height="264"  valign="top" bgcolor="#FFFFFF"> 
				
                     <!--Product Begin-->
							<%
							strSQL="Select * From v_web_product Where id=" & GetVariable("id")
							Set rs=Server.CreateObject("ADODB.RecordSet")
							rs.open strSQL,conn,1,1
							%>
                  <table width="90%" border="0" align="center">
                    <tr> 
                      <td  height="8"> <div align="center"></div></td>
                    </tr>
                    <tr> 
                      <td  height="23">您的位置 : <A href=".">首页</A> &gt; <%=request("classname")%>&nbsp;&gt; &nbsp;<strong><%=strClassName%></strong> 
                      </td>
                    </tr>
                    <tr> 
                      <td height="1" background="images/linebg.gif"></td>
                    </tr>
                  </table>
                  <table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="16">&nbsp;</td>
                      <td width="490" height="300" valign="top"> 
                        <%
									'读取产品展示的属性，以确定显示那个字段
									showPrice=GetKey("Price",WebUserID,"product_" & strCurrMenu )
									showSize=GetKey("Size",WebUserID,"product_" & strCurrMenu )
									showSymbol=GetKey("Symbol",WebUserID,"product_" & strCurrMenu )
									showWeight=GetKey("Weight",WebUserID,"product_" & strCurrMenu )
									showFace=GetKey("Face",WebUserID,"product_" & strCurrMenu )
									showPlace=GetKey("Place",WebUserID,"product_" & strCurrMenu )
									showProducer=GetKey("Place",WebUserID,"product_" & strCurrMenu )
									showShop=GetKey("showShop",WebUserID,"product_" & strCurrMenu )
									%>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <tr> 
                            <td width="36%" valign="top"><a href="UpFile/<%=trim(rs("p_pic"))%>" target="_blank"><img src="UpFile/<%=trim(rs("p_pic"))%>" alt="点击看大图" width="220" hspace="8" vspace="5" border="0"></a></td>
                            <td width="64%" rowspan="2" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="1">
                                <tr> 
                                  <td height="56" colspan="2"><strong><font color="#006699"><%=trim(rs("p_name"))%></font></strong></td>
                                </tr>
                                <tr> 
                                  <td height="24" align="right"><strong>型号：</strong></td>
                                  <td height="24"> 
                                    <%
							  if showSymbol<>"none" then
							  	response.Write trim(rs("p_symbol"))
							  end if
							  %>
                                  </td>
                                </tr>
                                <tr> 
                                  <td height="24" align="right"><strong>类别：</strong></td>
                                  <td height="24"><%=trim(rs("c_name"))%></td>
                                </tr>
                                <%if showPrice<> "none" then%>
                                <tr> 
                                  <td width="25%" height="24" align="right"><font color="#FF0000"><strong>价格：</strong></font></td>
                                  <td width="75%" height="24"><font color="#FF0000"><%=trim(rs("p_price"))%><strong> 
                                    元</strong></font></td>
                                </tr>
                                <%end if%>
                                <%if showSize<> "none" then%>
                                <tr> 
                                  <td height="24" align="right"><strong>尺寸：</strong></td>
                                  <td height="24"><%=trim(rs("p_size"))%></td>
                                </tr>
                                <%end if%>
                                <%if showFace<> "none" And showFace<>"Null" then%>
                                <tr> 
                                  <td height="24" align="right"><strong>外观：</strong></td>
                                  <td height="24"><%=trim(rs("p_face"))%></td>
                                </tr>
                                <%end if%>
                                <%if showWeight<> "none" And  showWeight<>"Null" then%>
                                <tr> 
                                  <td height="24" align="right"><strong>重量：</strong></td>
                                  <td height="24"><%=trim(rs("p_weight"))%></td>
                                </tr>
                                <%end if%>
                                <%if showPlace<> "none" And showPlace<>"Null" then%>
                                <tr> 
                                  <td height="24" align="right"><strong>生产地：</strong></td>
                                  <td height="24"><%=trim(rs("p_Place"))%></td>
                                </tr>
                                <%end if%>
                                <%if showProducer<> "none" then%>
                                <tr> 
                                  <td height="24" align="right"><strong>生产商：</strong></td>
                                  <td height="24"><%=trim(rs("p_producer"))%></td>
                                </tr>
                                <%end if%>
                              </table></td>
                          </tr>
                          <tr> 
                            <td align="center">图片及文字介绍仅供参考，请以实物为准</td>
                          </tr>
                          <tr> 
                            <td>&nbsp;</td>
                            <td> 
                              <%if showShop<>"none" then %>
                              <a href="javascript:;" onClick="PutWare('<%=trim(rs("id"))%>')"><img src="images/ljgm.gif" width="85" height="28" hspace="10" border="0"></a> 
                              <%end if%>
                            </td>
                          </tr>
                          <tr> 
                            <td><strong><font color="#006699">·产品描述</font></strong></td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr> 
                            <td colspan="2"><hr width="98%" size="1" noshade></td>
                          </tr>
                          <tr valign="top"> 
                            <td height="100" colspan="2" align="center"> 
                              <table width="96%" border="0" cellspacing="1" cellpadding="0">
                                <tr> 
                                  <td height="96" valign="top"><%=trim(rs("p_detail"))%></td>
                                </tr>
                                <tr> 
                                  <td height="16" align="right"><font color="#888888">更新时间：<%=trim(rs("p_createtime"))%></font></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table>
                        <!--Product End-->
                      </td>
                    </tr>
                  </table>
                  
                </td>
              </tr>
            </table>
          </td>
          <td width="180" bgcolor="#EAEAEA" height="29" valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td background="images/news.gif" height="40"><font color="#FFFFFF" class="unnamed2">　　　　<b>产品搜索</b></font></td>
              </tr>
            </table>
            <form name="form1" method="post" action="<%=request.QueryString("uppage")%>" onSubmit="return checkform(this)">
              <table width="156" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="58" height="8" align="right"></td>
                  <td width="98" height="8"></td>
                </tr>
                <tr> 
                  <td width="58" height="26" align="right">分　类：</td>
                  <td width="98" height="26"> <select name="class" id="class">
                      <option value="">全部产品</option>
                      <%Sql="select id,c_name,c_code from web_product_class where mn_id="&strCurrMenu&" order by c_code"
        set rsclass=conn.execute(sql)
        Do While Not rsclass.eof
			Level=(Len(rsclass(2))/4-1)*3
			Response.Write "<option value="""&rsclass(0)&""""
			Response.Write ">"
			If Len(rsclass(2))>4 Then Response.Write "├"
			Response.Write String(Level,"-")
			Response.Write rsclass(1)&"</option>"
			rsclass.movenext
		Loop
		rsclass.close%>
                    </select> </td>
                </tr>
                <tr> 
                  <td height="26" align="right">关键字：</td>
                  <td height="26"> <input name="key" type="text" id="key" size="14" maxlength="50" style="width:80px"> 
                  </td>
                </tr>
                <% if showPrice<>"none" then %>
                <tr> 
                  <td height="26" align="right">价　格：</td>
                  <td height="26"> <input name="price1" type="text" id="price1" size="2" maxlength="5" style="width:30px">
                    到 
                    <input name="price2" type="text" id="price2" size="2" style="width:30px"> 
                  </td>
                </tr>
                <%end if%>
                <tr align="left"> 
                  <td height="30" colspan="2"> <table width="156" height="40" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="117" height="40" align="right"> <input name="imageField" type="image" src="images/search1.gif" width="82" height="24" border="0" style="border:0"> 
                        </td>
                        <td width="39" height="40" valign="bottom">&nbsp;&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
              </table>
            </form>
            <!--Link Begin-->
            <%
							isLink=GetKey("Enable",WebUserID,"link")
							if isLink="Yes" then
							%> 
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td background="images/news.gif" height="40"><font color="#FFFFFF" >　　　　<b>友情链接</b></font></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="7" cellspacing="0">
              <tr> 
                <td height="107" align="center"  valign="top"> 　 <br> <script language="JavaScript" src="admin/link/link.asp"></script>
                </td>
              </tr>
            </table>
                              <%
							  end if
							  %> 
                              <!--Link End-->
			
          </td>
        </tr>
      </table>
    </td>
    <td width="8" height="108" background="images/shadow2.gif"></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="776" id="AutoNumber7" height="53" align="center">
  <tr> 
    <td width="8" background="images/shadow.gif" height="53" rowspan="2"></td>
    <td width="743" height="4" bgcolor="#000000"></td>
    <td width="8" background="images/shadow2.gif" height="53" rowspan="2"></td>
  </tr>
  <tr> 
    <td width="760" height="85"> <p align="center" >公司地址：未知<br>电话： E-Mail:123@163.com<br>Copyright&copy;2006-2007 aa All Rights Reserved.<br><br>
        您是本站第<script language="JavaScript" src="admin/count/counter.asp"></script>位访问者 </td>
  </tr>
</table>
<script language="JavaScript" src="common/init.js"></script><br><script language=Javascript src="common/tranbig5.Js"></script>
</body>
</html>

