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

D_domain=split(split("http://"&Request.ServerVariables("HTTP_HOST")&Request.ServerVariables("URL"),"http://")(1),"/module")(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")
S_pic=rs("S_pic")
rs.close
set rs=nothing
%>
<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 {
				font-size:12px;
				line-height:150%;
				font-family:"微软雅黑";
			}
			.container{ width:800px; margin:0 auto; overflow:hidden; background:#FFFFFF;}
			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-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-color:#EEEEEE;}
			.title{ height:35px; margin:5px; overflow:hidden; }
</style>
</head>
<body>
<div class="container">
<img src="../../../<%=S_pic%>" width="800">
<%
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
%>
<h2 style="padding:20px;"><%=S_title%></h2>
<hr>
<div style="padding:10px;">
<%
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from buy where B_sort="&F_id&" order by B_order"
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
%>
</div>
</div>
</body>
</html>