<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="inc/Function.asp"-->
<!--#include file="inc/Config.asp"-->
<!--#include file="inc/conn.asp"-->
<%
id=Request("id")
Call ChkIsNumber(productid,"对不起,请文明访问本站")
Call ConnectionDataBase()
Sql = "SELECT ID,FilePath,FileName,content,Hits FROM T_Brand WHERE ID="& id
SetRs Rs,Sql,conn,1,3
IF Not Rs.Eof Then
	Rs("Hits")=Rs("Hits")+1
	Rs.update
	FilePath=Rs("FilePath")
	FileName=Rs("FileName")
	content=Rs("content")
End IF
DisRs Rs
 
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= FileName %>-品牌材料-会展之窗招标网</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/site.js"></script>
</head>

<body>
<!--#include file="top.asp"-->

<table width="990" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td><img src="images/bk_032.jpg" width="983" height="60" /></td>
  </tr>
</table>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td width="222" height="311" valign="top" background="images/ppny_03.jpg" style="background-repeat:no-repeat"><table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="45" align="center" class="pinpaititle"><%=FileName%></td>
      </tr>
      <tr>
        <td height="90" align="center"><img src="<%="UpLoadFiles/Brand/" & FilePath%>" width="160" height="70" /></td>
      </tr>
      <tr>
        <td height="35">&nbsp;</td>
      </tr>
      <tr>
        <td height="120" style="line-height:23px; padding-left:10px;" valign="top">
		  <%
			Sql="Select Top 5 ID,Company From T_users Where Recycle=0 AND ID in (select userid from t_products where brandid="&id&" and recommend=true order by sortid desc,id desc)"
			SetRs Rs,Sql,conn,1,1
			Do While Not Rs.Eof
			%>
			<a href="ucompany.asp?userid=<%=Rs("ID")%>" class="fontnews"><%LeftStr Rs("Company"),15%></a><br />
            <%
			Rs.movenext
			Loop
			DisRs Rs
			%>
</td>
      </tr>
    </table></td>
    <td width="8"></td>
    <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="137" align="center" valign="bottom" background="images/ppny_05.jpg" class="font14hui">品牌简介</td>
              <td background="images/ppny_06.jpg">&nbsp;</td>
              <td width="14"><img src="images/ppny_08.jpg" width="14" height="37" /></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="250" valign="top" class="fontcont2 bordertree" style="padding:8px;" ><%=content%></td>
      </tr>
    </table></td>
    <td width="8"></td>
    <td width="250" valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#C1D6B4">
      <tr>
        <td height="30" align="center" bgcolor="f2f2f2" class="fonttitle">促销信息 </td>
      </tr>
      <tr>
        <td height="270" bgcolor="#FFFFFF"style="line-height:23px; padding-left:10px;" valign="top">
		    <%
			Sql="Select Top 12 ID,UserID,NewsTitle From T_Sales Where Recycle=0 AND BrandID=" & id
			SetRs Rs,Sql,conn,1,1
			Do While Not Rs.Eof
			%>
			<a href="usalesinfor.asp?userid=<%=Rs("UserID")%>&newsid=<%=Rs("ID")%>" class="fontnews"><%LeftStr Rs("NewsTitle"),15%></a><br />
            <%
			Rs.movenext
			Loop
			DisRs Rs
			%>
			</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="137" align="center" valign="bottom" background="images/ppny_05.jpg"><span class="font14hui">推荐产品</span></td>
        <td background="images/ppny_06.jpg">&nbsp;</td>
        <td width="14"><img src="images/ppny_08.jpg" width="14" height="37" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="250" valign="top" class="fontcont2 bordertree" style="padding:8px;" >
	
	<table width="100%" border="0" align="center" cellpadding="5" cellspacing="2">
	  <tr>
        <%
		Sql="Select Top 10 ID,UserID,ProName,ProPic From T_Products Where BrandID=" & id
		SetRs Rs,Sql,conn,1,1
		i=0
		Do While Not Rs.Eof
		%>
		<td align="center"><a href="uproductsinfor.asp?userid=<%=Rs("UserID")%>&productid=<%=Rs("ID")%>"><img src="<%="UpLoadFiles/Products/" & Rs("ProPic")%>" width="146" height="103" /></a><br /><%=Rs("ProName")%></td>
		<%
		i=i+1
		IF i mod 5=0 Then Response.Write("</tr><tr>")
		Rs.movenext
		Loop
		DisRs Rs
		%>
      </tr>

    </table></td>
  </tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
