<!--#include file="inc/config.asp"-->
<!--#include file="inc/sub.asp"-->
<%
id=request.QueryString("id")
if id="" or IsNumeric(id)<>true then
	response.write"请输入正确的ID号！"
	response.end
end if
sql="select * from H_Products where id="&id&""
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1 
if rs.eof then
response.Write "系统错误,请联系系统管理员或者开发商http://www.hn22.com/"
response.End()
else
UID=rs("UID")
H_Costs=rs("H_Costs")
H_Address=rs("H_Address")
H_title=rs("H_title")
H_Content=rs("H_Content")
H_PIC=rs("H_PIC")
web_H_sort=rs("H_sort")
H_tion=rs("H_tion")
RDATE=rs("RDATE")
'获取开发商资料
sql1="select H_name,H_Address,H_txt,H_Address,H_PIC from H_shop  where UID="&UID&""
set rs1=server.createobject("adodb.recordset")                     
rs1.open sql1,conn,1,1 
if rs1.eof then
response.Write "系统错误,请联系系统管理员或者开发商http://www.hn22.com/ 错误信息 H_houseshop"
response.End()
else
H_name_shop=rs1("H_name")
H_Address_shop=rs1("H_Address")
H_txt_shop=rs1("H_txt")
H_PIC_shop=rs1("H_PIC")
U_URL=conn.execute("select U_URL from H_Domain where Uid="&UID&" and H_UI=5 ")("U_URL")
H_thread=conn.execute("select H_thread from H_Domain where Uid="&UID&" and H_UI=5 ")("H_thread")
end if
rs1.close
ucuser=conn.execute("select ucuser from H_user where id="&UID&"")("ucuser")
end if
rs.close
%>
<!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><%=H_title%>,<%=W_title%>,网站首页</title>
<meta name="keywords" content="<%=W_keywords%>" />
<meta name="description" content="<%=W_description%>" />
<link href="images/css.css" rel="stylesheet" type="text/css" /></head>
<body>
<!--#include file="top.asp"-->
<table width="974" height="33" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg_dp.gif">
  <tr>
    <td width="315" valign="bottom"><a href=# onClick="javascript:window.external.AddFavorite('http://<%=Request.ServerVariables("SERVER_NAME")%>/shop_read.asp?id=<%=id%>','<%=H_title%>');return false"> <img src="images/bg_fav.gif" width="94" height="22" border="0" /></a></td>
    <td width="380" align="center" valign="bottom" ><font size="3"><strong><%=cpname%></strong></font></td>
    <td width="235" valign="bottom" >&nbsp;</td>
  </tr>
</table>
<table width="974" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="315" valign="top"><table width="266" height="266" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
      <tr>
        <td bgcolor="#FFFFFF" align="center"><img src="uploaduc/<%=H_PIC%>" border="0" onload='javascript:if(this.width>256){this.width=256}'></td>
      </tr>
    </table></td>
    <td width="424" valign="top"><table width="389" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="72" height="35">参考价格：</td>
        <td width="328" align="left"><font color="#FF0000"><%=H_Costs%> </td>
      </tr>
      <tr>
        <td height="1" colspan="2" background="images/k_1.gif"></td>
        </tr>
      <tr>
        <td height="35">产品名称：</td>
        <td align="left"><font color="#FF9900"><%=left(H_title,18)%></font></td>
      </tr>
      <tr>
        <td height="35">产　　地：</td>
        <td align="left"><%=H_Address%></td>
      </tr>
      <tr>
        <td height="35">销售模式：</td>
        <td align="left"><%
		if web_H_sort=1 then
		response.Write "送货上门"
		elseif web_H_sort=2 then
		response.Write "上门取货"
		else
		response.Write "送货上门 + 上门取货"
		end if
		%></td>
      </tr>
      <tr>
        <td height="35">发布时间：</td>
        <td align="left"><font color="#FF9900"><%=Rdate%> </font></td>
      </tr>
      <tr>
        <td height="1" colspan="2" background="images/k_1.gif"></td>
        </tr>
      <tr>
        <td height="15" colspan="2">
                  
                      
                     
                      
                    
                    <table width="200" height="10" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td></td>
                      </tr>
                    </table>
					<table width="300" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><a href="user/FU.asp?FMuser=<%=ucuser%>&Fchar=<%=H_name_shop%>" target="_blank"><img src="images/jhy.gif" width="66" height="41" border="0" /></a></td>
                    <td><a href="user/MU.asp?HMuser=<%=ucuser%>&HMtxt=咨询产品:<%=H_title%>" target="_blank"><img src="images/dxx.gif" width="66" height="41" border="0" /></a></td>
                    </tr>
                </table>                    </td>
        </tr>
    </table></td>
    <td width="235" valign="top">
	
	
	<table width="230" height="266" border="0" align="right" cellpadding="0" cellspacing="1" bgcolor="#9BCE71">
      <tr>
        <td valign="top" bgcolor="#FFFFFF"><table width="230" height="58" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" valign="middle" background="images/bg_sp_g1.gif"><%=H_name_shop%></td>
          </tr>
        </table>
          <table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td></td>
            </tr>
          </table>
          <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td colspan="2"><img src="UpLoadUC/<%=H_PIC_shop%>" width="150" /></td>
              </tr>
            
            <tr>
              <td height="30">地址：</td>
              <td align="left"><%=H_Address_shop%></td>
            </tr>
            <tr>
              <td height="30">&nbsp;</td>
              <td align="left">&nbsp;</td>
            </tr>
            <tr>
              <td height="30">&nbsp;</td>
              <td align="left">&nbsp;</td>
            </tr>
            <tr>
              <td height="30" colspan="2" align="center">  <%if W_DNSkey<>1 then%>
			  <a href="thread/<%=H_thread%>/index.asp?UID=<%=UID%>" target="_blank"> <img src="images/jrsjwz.gif" width="113" height="25" /></a>
			  <%else%>
			<a href="http://<%=U_URL%>.<%=W_DNS%>" target="_blank" >  <img src="images/jrsjwz.gif" width="113" height="25" /></a>
			  <%end if%></td>
              </tr>
          </table></td>
      </tr>
    </table>

	</td>
  </tr>
</table>

<table width="950" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="950" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" colspan="2"></td>
    <td width="86" rowspan="2"><img src="images/cpxq.gif" width="86" height="33" /></td>
    <td colspan="2"></td>
  </tr>
  <tr>
    <td width="1" height="8"><img src="images/cpxq1.gif" width="1" height="8" /></td>
    <td width="14" height="8" background="images/cpxq2.gif"></td>
    <td width="869" background="images/cpxq2.gif"></td>
    <td width="4"><img src="images/cpxq1.gif" width="1" height="8" /></td>
  </tr>
</table>
<table width="950" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="950" height="80" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFCB99">
  <tr>
    <td bgcolor="#FFF8EE" ><%=H_tion%></td>
  </tr>
</table>
<table width="950" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="950" height="200" border="0" align="center" cellpadding="0" cellspacing="1" class="cpwr" >
  <tr>
    <td valign="top" ><span class="cpwr"><%=H_Content%></span></td>
  </tr>
</table>
<table width="950" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="950" height="29" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="14"></td>
    <td width="121" background="images/tjcp.gif" align="center"><font color="#FFFFFF" size="2"><strong>商家推荐</strong></font></td>
    <td width="839"></td>
  </tr>
</table>
<table width="950" height="139" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="94%" height="126" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr bgcolor="#ffffff">
            <%set rs=server.createobject("adodb.recordset")
sql="select top 7 * from H_Products where UID="&uid&" and H_ded=1 order by id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write"<td align=center>暂无产品</td>"
else
do while not rs.eof
%>
            <td valign="top" bgcolor="#ffffff"><table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" height="90"><a href="shop_read.asp?id=<%=rs("id")%>" target="_blank"><img src="uploaduc/<%=rs("H_PIC")%>" height="80" width="80" style="border:1px #CCCCCC solid" /></a></td>
              </tr>
              <tr>
                <td align="center" height="25"><a href="shop_read.asp?id=<%=rs("id")%>" target="_blank" class="black"><font color="#0066FF"><%=left(rs("H_title"),5)%></font></a></td>
              </tr>
            </table></td>
            <%rs.movenext
loop
end if
%>
          </tr>
        </table></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="950" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="950" height="29" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="14"></td>
    <td width="121" background="images/tjcp.gif" align="center"><font color="#FFFFFF" size="2"><strong>商家促销</strong></font></td>
    <td width="839"></td>
  </tr>
</table>
<table width="950" height="168" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="94%" height="126" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr bgcolor="#ffffff">
            <%set rs=server.createobject("adodb.recordset")
sql="select top 7 * from H_Products where UID="&uid&"and H_Off=1 order by id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write"<td align=center>暂无产品</td>"
else
do while not rs.eof
%>
            <td valign="top" bgcolor="#ffffff"><table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" height="90"><a href="shop_read.asp?id=<%=rs("id")%>" target="_blank"><img src="uploaduc/<%=rs("H_PIC")%>" height="80" width="80" style="border:1px #CCCCCC solid" /></a></td>
              </tr>
              <tr>
                <td align="center" height="25"><a href="shop_read.asp?id=<%=rs("id")%>" target="_blank" class="black"><font color="#0066FF"><%=left(rs("H_title"),5)%></font></a></td>
              </tr>
            </table></td>
            <%rs.movenext
loop
end if
%>
          </tr>
        </table></td>
        </tr>
      </table>
        
      <table width="94%" height="36" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center"><%if W_DNSkey<>1 then%>
              <a href="thread/<%=H_thread%>/index.asp?UID=<%=UID%>" target="_blank"> <img src="images/jrsjwz.gif" width="113" height="25" /></a>
              <%else%>
              <a href="http://<%=U_URL%>.<%=W_DNS%>" target="_blank" > <img src="images/jrsjwz.gif" width="113" height="25" /></a>
              <%end if%></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="950" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<!--#include file="end.asp"-->
</body>
</html>
