⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usergmdj.asp

📁 信息管理系统 管理页面:admin/index.asp 用户和密码都是admin
💻 ASP
字号:
<!--#include file=conn.asp-->
<!--#include file=usercookies.asp-->
<!--#include file=config.asp-->
<%
dim rs,sql,username,i,i_1,i_2,i_3,i_4,hb,a,b,c,d,a_1,b_1,c_1,d_1
if request("hb")<>"" then
hb=trim(request("hb"))
end if
a=trim(request("a"))
b=trim(request("b"))
c=trim(request("c"))
d=trim(request("d"))
if a="" then
a=0
end if
if b="" then
b=0
end if
if c="" then
c=0
end if
if d="" then
d=0
end if
if request.cookies("a_1")="" then
Response.cookies("a_1")=0
else
Response.cookies("a_1")=int(request.cookies("a_1"))+int(a)
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.cookies("c_1")="" then
Response.cookies("c_1")=0
else
Response.cookies("c_1")=int(request.cookies("c_1"))+int(c)
end if
if request.cookies("d_1")="" then
Response.cookies("d_1")=0
else
Response.cookies("d_1")=int(request.cookies("d_1"))+int(d)
end if
username=request.cookies("ijob")("username")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select hb from [user] where username='"&username&"'" 
rs.open sql,conn,1,1
if request("ijob")="1" then
hb=hb-(a*g_a+b*g_b+c*g_c+d*g_d)
else
Response.cookies("a_1")=0
Response.cookies("b_1")=0
Response.cookies("c_1")=0
Response.cookies("d_1")=0
hb=rs("hb")
end if
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>购买道具</title>
<link rel="stylesheet" type="text/css" href="1.CSS">
</head>

<body topmargin="0" leftmargin="0">

<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="778" height="371">
    <tr>
      <td width="778" colspan="4" height="46"><!--#include file=top.asp--></td>
    </tr>
    <tr>
      <td width="157" height="299" valign="top"><br>
      <!--#include file=userleft.asp--></td>
      <td width="10" height="299" background="img/line_01.gif"> </td>
      <td width="603" height="299" valign="top" align="center">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="603" height="109">
        <tr>
          <td width="603" height="1" colspan="6"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="26">
            <tr>
              <td width="100%" background="img/buydj.gif" height="26"> </td>
            </tr>
          </table>
          </td>
        </tr>

        <tr>
          <td width="603" height="25" align="center" colspan="6">
          <p align="left">当前我的虚拟货币:<%=rs("hb")%> 元,购买道具需要你有足够的虚拟货币才可以,如果没有请先<a href="gmhb.asp"><font color="#0000FF">购买虚拟货币</font></a></td>
        </tr>
        <tr>
          <td width="54" height="25" align="center">
          <p align="left"> </td>
          <td width="115" height="25" align="left">
           </td>
          <td width="166" height="25" align="left" colspan="2">
           </td>
          <td width="268" height="25" align="left" colspan="2">
           </td>
        </tr>
        <tr>
          <td height="25" align="left" width="54">
          <p align="right"><img src="img/form2_r3_c3.gif"></td>
          <td width="115" height="25" align="left">
          购买<font color="#0000FF">标题变色</font>道具</td>
          <td width="166" height="25" align="left" colspan="2">
			<select name="a" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}">
			<option value="?">请选择购买的数量</option>
			<%
			i_1=hb/g_a
			for i=1 to int(i_1)
			%>
			<option value="?a=<%=i%>&ijob=1&hb=<%=hb%>&a_1=<%=a_1%>"><%=i%>个</option>
			<%next%>
		   </select>
          </td>
          <td width="150" height="25" align="right"><font color="#0000FF"><%=g_a%></font> 
          元(虚拟货币)/个</td>
          <td width="118" height="25" align="left"> </td>
        </tr>
        <tr>
          <td height="25" align="left" width="54">
          <p align="right"><img src="img/form2_r3_c3.gif"></td>
          <td width="115" height="25" align="left">
          购买<font color="#0000FF">信息置顶</font>道具</td>
          <td width="166" height="25" align="left" colspan="2">
			<select name="b" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}">
			<option value="?">请选择购买的数量</option>
			<%
			i_2=hb/g_b
			for i=1 to int(i_2)
			%>
			<option value="?b=<%=i%>&ijob=1&hb=<%=hb%>&b_1=<%=b_1%>"><%=i%>个</option>
			<%next%>
		   </select>
          </td>
          <td width="150" height="25" align="right">
          <font color="#0000FF"><%=g_b%></font> 元(虚拟货币)/个</td>
          <td width="118" height="25" align="left">
			 </td>
        </tr>
        <tr>
          <td height="25" align="left" width="54">
          <p align="right"><img src="img/form2_r3_c3.gif"></td>
          <td width="115" height="25" align="left">
          购买<font color="#0000FF">内容贴图</font>道具</td>
          <td width="166" height="25" align="left" colspan="2">
          	<select name="c" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}">
			<option value="?">请选择购买的数量</option>
			<%
			i_3=hb/g_c
			for i=1 to int(i_3)
			%>
			<option value="?c=<%=i%>&ijob=1&hb=<%=hb%>&c_1=<%=c_1%>"><%=i%>个</option>
			<%next%>
		   </select></td>
          <td width="150" height="25" align="right">
          <font color="#0000FF"><%=g_c%></font> 元(虚拟货币)/个</td>
          <td width="118" height="25" align="left">
           
          </td>
        </tr>
        <tr>
          <td height="25" align="left" width="54">
          <p align="right"><img src="img/form2_r3_c3.gif"></td>
          <td width="115" height="25" align="left">
          购买<font color="#0000FF">通过验证</font>道具</td>
          <td width="166" height="25" align="left" colspan="2">
          	<select name="d" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}">
			<option value="?">请选择购买的数量</option>
			<%
			i_4=hb/g_d
			for i=1 to int(i_4)
			%>
			<option value="?d=<%=i%>&ijob=1&hb=<%=hb%>&d_1=<%=d_1%>"><%=i%>个</option>
			<%next%>
		   </select></td>
          <td width="150" height="25" align="right">
          <font color="#0000FF"><%=g_d%></font> 元(虚拟货币)/个</td>
          <td width="118" height="25" align="left">
           </td>
        </tr>
        <tr>
          <td width="603" height="25" colspan="6">当前我可以消费的虚拟货币为:<%=hb%> 元</td>
        </tr>
        <tr>
          <td width="54" height="25"> </td>
          <td width="115" height="25"> </td>
          <td width="166" height="25" colspan="2"> </td>
          <td width="268" height="25" colspan="2"> </td>
        </tr>
        <tr>
          <td width="54" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">
          <p align="right"><img src="img/form2_r3_c3.gif"></td>
          <td width="115" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC"><font color="#FF0000">当前购买的道具</font></td>
          <td width="166" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC" colspan="2">
          <p align="center"><img src="img/form2_r3_c3.gif"><a href="usergmdj.asp"><font color="#0000FF">重新购买</font></a></td>
          <td width="268" height="25" colspan="2" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC"> </td>
        </tr>
        <form action="usergmdjchk.asp" method="POST">
        <tr>
          <td width="54" height="25" style="border-top-style: solid; border-top-width: 1"> </td>
          <td width="115" height="25" style="border-top-style: solid; border-top-width: 1">标题道具</td>
          <td width="54" height="25" align="right" ><%=request.cookies("a_1")%><input type="hidden" name="a" size="6" value="<%=request.cookies("a_1")%>"> </td>
          <td width="112" height="25" >&nbsp;个</td>
          <td width="268" height="25" colspan="2" style="border-top-style: solid; border-top-width: 1"> </td>
        </tr>
        <tr>
          <td width="54" height="25"> </td>
          <td width="115" height="25">信息置顶</td>
          <td width="54" height="25" align="right"><%=request.cookies("b_1")%><input type="hidden" name="b" size="6" value="<%=request.cookies("b_1")%>"> </td>
          <td width="112" height="25">&nbsp;个</td>
          <td width="268" height="25" colspan="2"> </td>
        </tr>
        <tr>
          <td width="54" height="25"> </td>
          <td width="115" height="25">内容贴图</td>
          <td width="54" height="25" align="right"><%=request.cookies("c_1")%><input type="hidden" name="c" size="6" value="<%=request.cookies("c_1")%>"> </td>
          <td width="112" height="25">&nbsp;个</td>
          <td width="268" height="25" colspan="2">
          <input type="submit" value="确定购买" name="B1"></td>
        </tr>
        <tr>
          <td width="54" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC"> </td>
          <td width="115" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">通过验证</td>
          <td width="54" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC" align="right"><%=request.cookies("d_1")%><input type="hidden" name="d" size="6" value="<%=request.cookies("d_1")%>"> </td>
          <td width="112" height="25" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">&nbsp;个</td>
          <td width="268" height="25" colspan="2" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC"> </td>
        </tr>
        <tr>
          <td width="603" height="25" style="border-top-style: solid; border-top-width: 1" colspan="6">
          <font color="#FF0000">注意:在该页购买道具时不要重复刷新页面,否则会导致购买道具的数量混乱,且支付会不成功。</font></td>
        </tr>
        </form>
        </table>
      </td>
      <td width="8" height="299" background="img/line_01.gif"> </td>
    </tr>
    <tr>
      <td width="778" height="26" colspan="4"><!--#include file=copywright.asp--></td>
    </tr>
  </table>
  </center>
</div>
</body>
</html>
<%
rs.close
set rs=nothing
closedb
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -