<!--#include file="usertop.asp"-->
<!--#include file="usercookies.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>购买道具--<%=title%>--<%=web%></title>
</head>

<body>

<div align="center">
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr>
			<td  height="25" colspan="2" class="tdtop"><b>&nbsp;<img border="0" src="images/z1.gif" width="50" height="18"> 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 购买道具：</b></td>
		</tr>
		<tr bgColor="#d9ebe5">
			<td  width="255" bgcolor="#FFFFFF" rowspan="2" valign="top">
            <!--#include file="caozuo.asp"-->
			</td>
		<tr bgColor="#d9ebe5">
			<td valign="top" width="505" height="315" bgcolor="#FFFFFF">
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" bordercolordark="#D9EBE5" style="border-collapse: collapse" cellpadding="0" cellspacing="0">
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5">&nbsp;<img border="0" src="images/a01.gif" width="25" height="25">
用户：<font color="#FF0000"><%=username%></font>，您好，欢迎来到会员中心！您登陆本站共<font color="#FF0000"><%=rsuser("dlcs")%></font>次。<br>
您目前级别：<%if rsuser("huitype")="0" then%><font color="#FF0000"><%=aname%>会员</font><%elseif rsuser("huitype")="1" then%><font color="#FF0000"><%=bname%>会员</font><%elseif rsuser("huitype")="2" then%><font color="#FF0000"><%=cname%>会员</font><%end if%>
，验证状态：<%if rsuser("yz")="0" then%><font color="#FF0000">没有通过验证</font>，验证后才可以享受更多权利！<%elseif rsuser("yz")="1" then%><font color="#FF0000">已通过验证</font>，祝您愉快！<%end if%></td>
				</tr>
<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5" height="20">
					<table border="0" width="100%" id="table3" cellspacing="1">
						<tr>
							<td bgcolor="#FFFFFF" height="40" align="left">
							<p>
							<img border="0" src="images/a01.gif" width="25" height="25"><b>购买竞价置顶工具</b>（目前 <font color="#FF0000"><%=gghjf%></font> <%=bname%>可购<font color="#FF0000"> 1 </font>个竞价置顶）</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" height="40">
				<table cellSpacing="0" cellPadding="0" width="95%" border="0" id="table56" class="text">
					<tr>
						<td class="p9t">
						<align="left">　<div align="center">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table57" class="right_bg01">
        <tr>
          <td height="25">目前您有 <font color="#FF0000"><%=rsuser("dxb")%></font> <%=bname%>，如果没有请<a href="chongzhi.asp">充值</a>或者用<a href="fenhuan.asp">积分兑换</a>。</td>
        </tr>
        <tr>
          <td height="25"><font color="#FF0000">在该页购买道具时不要重复刷新页面，否则会导致购买道具数量混乱，且支付会不成功。</font></td>
        </tr>
<%
dim rs,sql,i,i_2,hb,b,b_1
if request("hb")<>"" then
hb=trim(request("hb"))
end if
b=trim(request("b"))
if b="" then
b=0
end if

if request.cookies("b_1")="" then
Response.cookies("b_1")=0
else
Response.cookies("b_1")=int(request.cookies("b_1"))+int(b)
end if

if request("fox")="1" then
hb=hb-gghjf
else
Response.cookies("b_1")=0
hb=rsuser("dxb")
end if
%>
        <%if int(rsuser("dxb")/gghjf)>=1 then%>
        <form method="POST" action="gmdjchk.asp">
        <tr>
          <td height="25">&nbsp;&nbsp;&nbsp; <select name="b2" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}">
			<option value="?">请选择购买的数量</option>
			<%
			i_2=hb/gghjf
			for i=1 to int(i_2)
			%>
			<option value="?b=<%=i%>&fox=1&hb=<%=hb%>&b_1=<%=b_1%>"><%=i%>个</option>
			<%next%>
		   </select></td>
        </tr>
                  <tr>
            <td height="25">
			<p align="center"><a href="gmdj.asp">重新购买</a></td>
          </tr>
                  <tr>
            <td height="25">&nbsp;&nbsp;&nbsp; 
            <font color="#FF0000"><span class="style5">当前购买的道具：</span></font><%=request.cookies("b_1")%><input type="hidden" name="b" size="6" value="<%=request.cookies("b_1")%>">&nbsp; 
			如果选择错误，请重新购买</td>
          </tr>
                  <tr>
            <td height="25">　　是否要购买竞价置顶工具：
                <input type="hidden" name="dxb" size="7" value="<%=rsuser("dxb")%>">
                <input class="inputb" type="submit" value="我要购买" name="B1"></td>
          </tr>
        </form><%else%>
                  <tr>
            <td height="25">　　<font color="#FF0000"><b>你无法换得竞价置顶工具，<%=bname%>太少！</b></font></td>
          </tr><%end if%>

        				</table>
						</div>
						　</td>
					</tr>
				</table></form></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			</td>
			</tr>

</table>
<%rsuser.close
set rsuser=nothing%>
</div>

</body>
<!--#include file="userbottom.asp"--></body></html>