<!--#include file="inc/config.asp"-->
<!--#include file="inc/ListPager.asp"-->
<!--#include file="inc/sub.asp"-->
<%
id=request.QueryString("id")
if id="" or IsNumeric(id)<>true then
	response.write"请输入正确的ID号！"
	response.end
end if
	'''''''本系统无限分类解决方案
Dim nTime : nTime = Timer()
Dim arrParam
arrParam = split(Request.QueryString("ListParam"), ",")
Dim conn, myListPager
Set conn = server.CreateObject("ADODB.Connection")
conn.open conndata
Set myListPager = new ListPager
with myListPager
	.Connection = conn
	.Table = "H_Products"
	.PrimaryKey = "ID" 
	.Fields = "ID,UID,H_Costs,H_Address,H_title,H_Recommend,H_PIC,Rdate,H_tion" '显示字段
	.PageSize = 26
	.AddWhere "H_Industry1 ="&ID&""
	.AddOrder "ID"," desc"
	.Cache = 10	
	.Init()
end with
%>
<!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><%=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"-->
<%call H_indexads(W_regad26,26)%>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="728" valign="top">
	
	
	  <table width="720" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#FEDA6A" class="scaview3">
  <tr>
    <td valign="top" bgcolor="#FFFFFF">
      <!--==================-->
      <table width="720" border="0" cellspacing="0" cellpadding="5" align="center">
        <tr bgcolor="#EFEFEF">
          <td width="16%" height=12 align="center" bgcolor="#FEFAF4">图文</td>
          <td width="53%" height=12 align="left" bgcolor="#FEFAF4">标题</td>
          <td width="13%" align="center" bgcolor="#FEFAF4">价格</td>
          <td width="18%" height=12 align="left" nowrap bgcolor="#FEFAF4">发布时间</td>
        </tr>
        <tr>
          <td colspan=4 height=1 bgcolor="#E8E8E8"></td>
        </tr>


<%
					if myListPager.RecordCount>0 then
					Dim arrList,intList,i
					arrList = myListPager.GetRows()
					intList = Ubound(arrList,2)
					for i=0 to intList
					
		%>
   			  <tr >
				  <td height="25" rowspan="2" align="center"><a href="shop_read.asp?id=<%=arrlist(0,i)%>" target="_blank"><img src="UpLoadUC/<%=arrlist(6,i)%>" width="100" border="0" /></a></td>
                  <td height="25" align="left" class="lv"><strong><a href="shop_read.asp?id=<%=arrlist(0,i)%>" target="_blank"><%=left(arrlist(4,i),20)%></a> 
                  <%if arrlist(5,i)=1 then%>
                  <img src="images/m2.gif" alt="推荐信息" />
                  <%end if%>
                  </strong></td>
                  <td rowspan="2" align="center" class="hei"><%=arrlist(2,i)%></td>
                  <td height="25" rowspan="2" align="left"><%=arrlist(7,i)%></td>
   			  </tr>
   			  <tr >
   			    <td height="70" align="left" valign="top"><%=left(arrlist(8,i),100)%></td>
	          </tr>
        <tr>
          <td colspan=4 bgcolor="#E8E8E8"></td>
        </tr>
  
      <%
					next
				end if
				%>
  
        <tr>
		

<td colspan=5 align=right bgcolor=#efefef height=20>

	<%
					with myListPager
							Response.Write("<script type=""text/javascript"" src=""../inc/styles/ListStyle.js""></script>")
							Response.Write("<script type=""text/javascript"">pageTurn(" & .RecordCount & ", " & .PageSize & ", " & .PageCount & ", " & .CurrentPage & ", """ & .QueryString & """);</script>")
					end with
					%></td>
</tr>
<tr><td colspan=4 height=4></td></tr>
</table>


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

				
	</td>
    <td width="222" valign="top"><table width="222" border="0" cellpadding="0" cellspacing="1" bgcolor="#DDDDDD">
      <tr>
        <td height="24" align="center" bgcolor="#F5F5F5"><strong>搜索</strong></td>
      </tr>
      <tr>
        <td height="0" valign="top" bgcolor="#FFFFFF">
		
		
		
		<table width="210" border="0" align="center" cellpadding="0" cellspacing="0">
		<form action="shop_serach.asp"   target="_self">		
          <tr>
            <td height="30" colspan="2"><input name="H_title" type="text" id="H_title" value="输入产品名称" /></td>
            </tr>
          
          <tr>
            <td height="30" colspan="2"><input type="image"  src="images/loves.gif" style="border:0" /> </td>
            </tr>
			</form>
        </table>
		
		
		
		
		
		</td>
      </tr>
    </table>
      <table width="180" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
	  <%call H_indexads(W_regad27,27)%>
      <table width="222" border="0" cellpadding="0" cellspacing="1" bgcolor="#DDDDDD">
        <tr>
          <td height="24" align="center" bgcolor="#F5F5F5"><strong>推荐商家</strong></td>
        </tr>
        <tr>
          <td height="0" valign="top" bgcolor="#FFFFFF"><table width="210" border="0" align="center" cellpadding="0" cellspacing="0">
		  <%set rs=server.createobject("adodb.recordset")
sql="select top 10 H_name,UID  from H_shop where H_Recommend=1 order by ID desc"
rs.open sql,conn,1,1
if not rs.eof then
i=0
do while not rs.eof
i=i+1
U_URL=conn.execute("select U_URL from H_Domain where Uid="&rs("UID")&" and H_UI=5 ")("U_URL")
H_thread=conn.execute("select H_thread from H_Domain where Uid="&rs("UID")&" and H_UI=5 ")("H_thread")
%>
                <tr>
                  <td width="28"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" background="images/slidingTag1.gif">
                    <tr>
                      <td><font color="#FFFFFF"><%=i%></font></td>
                    </tr>
                  </table></td>
                  <td width="182" align="left">
				  
				    <%if W_DNSkey<>1 then%>
			  <a href="thread/<%=H_thread%>/index.asp?UID=<%=rs("UID")%>" target="_blank"><%=rs("H_name")%></a>
			  <%else%>
			<a href="http://<%=U_URL%>.<%=W_DNS%>" target="_blank" ><%=rs("H_name")%></a>
			  <%end if%>
				  </td>
                </tr>
           	   <%
		rs.movenext 
				loop
				rs.close
				end if
				%>   
          </table>
		  
		  
		  </td>
        </tr>
      </table>
      <table width="180" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="222" border="0" cellpadding="0" cellspacing="1" bgcolor="#DDDDDD">
        <tr>
          <td height="24" align="center" bgcolor="#F5F5F5"><strong>最新商家</strong></td>
        </tr>
        <tr>
          <td height="0" valign="top" bgcolor="#FFFFFF"><table width="210" border="0" align="center" cellpadding="0" cellspacing="0">
		  <%set rs=server.createobject("adodb.recordset")
sql="select top 10 H_name,UID  from H_shop order by ID desc"
rs.open sql,conn,1,1
if not rs.eof then
i=0
do while not rs.eof
i=i+1
U_URL=conn.execute("select U_URL from H_Domain where Uid="&rs("UID")&" and H_UI=5 ")("U_URL")
H_thread=conn.execute("select H_thread from H_Domain where Uid="&rs("UID")&" and H_UI=5 ")("H_thread")
%>
                <tr>
                  <td width="28"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" background="images/slidingTag1.gif">
                    <tr>
                      <td><font color="#FFFFFF"><%=i%></font></td>
                    </tr>
                  </table></td>
                  <td width="182" align="left">
				  
				    <%if W_DNSkey<>1 then%>
			  <a href="thread/<%=H_thread%>/index.asp?UID=<%=rs("UID")%>" target="_blank"><%=rs("H_name")%></a>
			  <%else%>
			<a href="http://<%=U_URL%>.<%=W_DNS%>" target="_blank" ><%=rs("H_name")%></a>
			  <%end if%>
				  </td>
                </tr>
           	   <%
		rs.movenext 
				loop
				rs.close
				end if
				%>   
          </table></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>
