<!--#include file="../conn/conn2.asp" -->
<!--#include file="../conn/function.asp" -->
<%

D_domain=split(split("http://"&Request.ServerVariables("HTTP_HOST")&Request.ServerVariables("URL"),"http://")(1),"/zj")(0)
F_id=request.QueryString("F_id")
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from Bsort where S_id="&F_id
rs.open sql,conn,1,1
S_title=rs("S_title")
rs.close
set rs=nothing
%>
<!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>购买商品</title>
<script type="text/javascript" src="js/date.js"></script>
<script type="text/javascript" src="AienUpload/init.js"></script>
<style type="text/css">
			html {
				overflow:auto;
			}
			body { 
				background-color: transparent; 
				font-size:12px;
				line-height:150%;
				font-family:"微软雅黑";
				
			}
			a{color:#000000;text-decoration:none;}
			a:hover{text-decoration: underline}
			a img {
	border:none;
}
			.input {border-top:1px solid #ABADB3;border-left:1px solid #ABADB3;border-right:1px solid #ddd;border-bottom:1px solid #ddd;height:24px;width:400px;padding:0 5px;}
			.box{ width:220px; height:295px; margin:8px; padding:8px; float:left; border:#FFFFFF solid 1px; overflow:hidden; box-shadow: 0px 0px 20px #ffffff;background:rgba(255, 255, 255, 0.6) none repeat scroll 0 0 !important;background-color:#EEEEEE;}
			.box2{ width:220px; height:295px; margin:8px; padding:8px; float:left; border:#FF9900 solid 1px; overflow:hidden; box-shadow: 0px 0px 20px #ffffff;background:rgba(255, 255, 255, 0.4) none repeat scroll 0 0 !important;background-color:#EEEEEE;}
			.title{ height:35px; margin:5px; overflow:hidden; }
</style>
</head>
<body>
<%
if GetBody(D_domain)="" then
%>
<embed src="M_yz.swf?domain=<%=D_domain%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="0" height="0"></embed>
<script> 
function sendToJavaScript(value){
if(value=="1"){
}else{
document.getElementById("old").innerHTML="<div align='center' style='margin:10px 10px 10px 10px;padding:5px 5px 5px 5px;border:1px solid #ff0000'><font color='red'>万能表单系统未授权！</font></div>"
}
}
</script>
<div id="old"></div>
<%
else 
if split(GetBody(D_domain),"|")(2)="1" then
%>
<%else
%>

<div align='center' style='margin:10px 10px 10px 10px;padding:5px 5px 5px 5px;border:1px solid #ff0000'><font color='red'>商城系统未授权！</font></div>
<%
end if
end if
%>
<h2><%=S_title%></h2>
<hr>
<%
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from buy where B_sort="&F_id&" order by B_id desc"
rs.open sql,conn,1,1
if not rs.eof then
Do while Not rs.eof
response.Write "<a href='buyit.asp?b_id="&rs("B_id")&"'><div class='box' align='center' onmouseover=""this.className='box2'"" onmouseout=""this.className='box'""><img src='../"&rs("B_pic")&"' style='padding-top:10px;'><div class='title'>"&rs("B_title")&"</div><table width='100%'><tr><td><font color='red' size='+1'>￥"&rs("B_price")&"</font></td><td><img src='../image/buyit.png'></td></tr></table></div></a>"
rs.movenext
		loop
	end if
set rs=nothing
%>
</body>
</html>