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

📄 gowu.asp

📁 asp构建网站bbs.采用B/S架构
💻 ASP
字号:
<%
'##################################################################
'# 购物广场 插件 for 6KBBS
'# 6KSU1.1[痞子NET]版
'# 主页 http://d9pd.51.net
'# 论坛 http://jwclub.126.com http://jwclub.9126.com[戒网俱乐部]
'# 我的QQ:283067 Email:btajn9@21cn.com
'# 如有技术问题,请到6kbbs官方论坛一起讨论 http://6k.2ya.com
'# 关于此hack版的问题可以到 http://jwclub.9126.com 中讨论 
'##################################################################
%>
<!--#include file="up.asp"--><br><br>
<%
name=lgname
pwd=lgpwd
if name="" then
Response.Redirect"login.asp"
response.end
end if
application(name)=1%>
<div align='center'>
  <center><table border=0 cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#111111 width=98% ><tr>
    <td bgcolor=<%=c1%> width=100% background=pic/<%=sp%>3.gif height=23>&nbsp;<img border=0 src=pic/fl.gif> <font color=#FFFFFF><b>购 物 广 场</b></font></td></tr></table>
  </center>
</div><center>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px" bordercolor="<%=c1%>" width="98%" height="11">
<tr>
<div align="center">
  <center>
 
    <td width="100%" height="30" bgcolor="<%=c2%>" align="left" valign="top">
<%
set pic=myconn.execute("select qian,meili,jingyan from user where name='"&lgname&"'")
q1=pic(0)
m1=pic(1)
j1=pic(2)
response.write"<br><p align='center'>欢迎<b> "&kbbs(lgname)&" </b>光临购物广场,你现在拥有金钱:<b>"&q1&"</b> 魅力值:<b>"&m1&"</b> 经验值:<b>"&j1&"</b>"

food=Request.Form("food")
name=Replace(Request.Form("name"),"'","''")
password=Replace(Request.Form("password"),"'","''")
if food="" or name="" or password="" then
%>
<br><br>
<p align=center>  购买前请先选中您想购买的物品,并确保您有足够的金钱。</p>
   <form method="POST">
      <div align="center">
        <center>
        <table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="300">
          <tr>
            <td width="2%" height="12" align="center" bgcolor="<%=c2%>"> </td>
            <td width="8%" height="12" align="center" bgcolor="<%=c2%>">物品名称</td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">图片</td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">价值</td>
            <td width="8%" height="12" align="center" bgcolor="<%=c2%>">补充魅力</td>
            <td width="8%" height="12" align="center" bgcolor="<%=c2%>">补充经验</td>
            <td width="4%" height="132" align="center" bgcolor="<%=c2%>" rowspan="5"> </td>
            <td width="3%" height="12" align="center" bgcolor="<%=c2%>"> </td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">物品名称</td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">图片</td>
            <td width="7%" height="12" align="center" bgcolor="<%=c2%>">价值</td>
            <td width="11%" height="12" align="center" bgcolor="<%=c2%>">补充魅力</td>
            <td width="13%" height="12" align="center" bgcolor="<%=c2%>">补充经验</td>
          </tr>
          <tr>
            <td width="2%" height="16" align="center">
            <input type="radio" value="4000" name="food"></td>
            <td width="8%" height="16" align="center">超级汉堡</td>
            <td width="9%" height="16" align="center">
            <img border="0" src="gowu_img/food01.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="9%" height="16" align="center">4000</td>
            <td width="8%" height="16" align="center">1600</td>
            <td width="8%" height="16" align="center">1600</td>
            <td width="3%" height="16" align="center">
            <input type="radio" value="3000" name="food"></td>
            <td width="9%" height="16" align="center">炸薯条</td>
            <td width="9%" height="16" align="center">
            <img border="0" src="gowu_img/food06.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="7%" height="16" align="center">3000</td>
            <td width="11%" height="16" align="center">1200</td>
            <td width="13%" height="16" align="center">1200</td>
          </tr>
          <tr>
            <td width="4%" height="3" align="center" bgcolor="<%=c2%>">
            <input type="radio" value="2000" name="food"></td>
            <td width="2%" height="3" align="center" bgcolor="<%=c2%>">威力鸡腿</td>
            <td width="8%" height="3" align="center">
            <img border="0" src="gowu_img/food13.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="9%" height="3" align="center">2000</td>
            <td width="9%" height="3" align="center">800</td>
            <td width="8%" height="3" align="center">800</td>
            <td width="3%" height="3" align="center">
            <input type="radio" value="1600" name="food"></td>
            <td width="9%" height="3" align="center"> 冰淇淋 </td>
            <td width="9%" height="3" align="center">
            <img border="0" src="gowu_img/food15.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="7%" height="3" align="center">2000</td>
            <td width="9%" height="3" align="center">800</td>
            <td width="10%" height="3" align="center">800</td>
             </tr> 
             <tr>
           <td width="4%" height="22" align="center" bgcolor="<%=c2%>">
            <input type="radio" value="1200" name="food"></td>
            <td width="2%" height="22" align="center" bgcolor="<%=c2%>">生日蛋糕</td>
            <td width="8%" height="22" align="center">
            <img border="0" src="gowu_img/food02.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="9%" height="22" align="center">1200</td>
            <td width="9%" height="22" align="center">480</td>
            <td width="8%" height="22" align="center">480</td>
            <td width="3%" height="22" align="center">
            <input type="radio" value="1000" name="food"></td>
            <td width="9%" height="22" align="center">开心包子</td>
            <td width="9%" height="22" align="center">
            <img border="0" src="gowu_img/food03.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="7%" height="22" align="center">1000</td>
            <td width="11%" height="22" align="center">400</td>
            <td width="13%" height="22" align="center">400</td>
          </tr> <tr>
          <td width="4%" height="22" align="center" bgcolor="<%=c2%>">
            <input type="radio" value="1200" name="food"></td>
            <td width="2%" height="22" align="center" bgcolor="<%=c2%>">冰冻牛奶</td>
            <td width="8%" height="22" align="center">
            <img border="0" src="gowu_img/food05.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="9%" height="22" align="center">1200</td>
            <td width="9%" height="22" align="center">480</td>
            <td width="8%" height="22" align="center">480</td>
            <td width="4%" height="22" align="center">
              <input type="radio" value="1000" name="food"></td>
            <td width="9%" height="22" align="center">活力啤酒</td>
            <td width="9%" height="22" align="center">
            <img border="0" src="gowu_img/food09.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="7%" height="22" align="center">1000</td>
            <td width="11%" height="22" align="center">400</td>
            <td width="13%" height="22" align="center">400</td>
             </tr>  
            
          <tr>
            <td width="2%" height="12" align="center" bgcolor="<%=c2%>"> </td>
            <td width="8%" height="12" align="center" bgcolor="<%=c2%>">物品名称</td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">图片</td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">价值</td>
            <td width="8%" height="12" align="center" bgcolor="<%=c2%>">补充魅力</td>
            <td width="8%" height="12" align="center" bgcolor="<%=c2%>">补充经验</td>
            <td width="4%" height="132" align="center" bgcolor="<%=c2%>" rowspan="5"> </td>
            <td width="3%" height="12" align="center" bgcolor="<%=c2%>"> </td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">物品名称</td>
            <td width="9%" height="12" align="center" bgcolor="<%=c2%>">图片</td>
            <td width="7%" height="12" align="center" bgcolor="<%=c2%>">价值</td>
            <td width="11%" height="12" align="center" bgcolor="<%=c2%>">补充魅力</td>
            <td width="13%" height="12" align="center" bgcolor="<%=c2%>">补充经验</td>
          </tr>
          <tr>
            <td width="2%" height="16" align="center">
            <input type="radio" value="4000" name="food"></td>
            <td width="8%" height="16" align="center">裤装</td>
            <td width="9%" height="16" align="center">
            <img border="0" src="gowu_img/food10.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="9%" height="16" align="center">4000</td>
            <td width="8%" height="16" align="center">1600</td>
            <td width="8%" height="16" align="center">1600</td>
            <td width="3%" height="16" align="center">
            <input type="radio" value="3000" name="food"></td>
            <td width="9%" height="16" align="center">裤装</td>
            <td width="9%" height="16" align="center">
            <img border="0" src="gowu_img/food11.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="7%" height="16" align="center">3000</td>
            <td width="11%" height="16" align="center">1200</td>
            <td width="13%" height="16" align="center">1200</td>
          </tr>
          <tr>
            <td width="4%" height="3" align="center" bgcolor="<%=c2%>">
            <input type="radio" value="2000" name="food"></td>
            <td width="2%" height="3" align="center" bgcolor="<%=c2%>">黄马褂</td>
            <td width="8%" height="3" align="center">
            <img border="0" src="gowu_img/food12.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="9%" height="3" align="center">2000</td>
            <td width="9%" height="3" align="center">800</td>
            <td width="8%" height="3" align="center">800</td>
            <td width="3%" height="3" align="center">
              <input type="radio" value="3000" name="food"></td>
            <td width="9%" height="16" align="center">情人玫瑰</td>
            <td width="9%" height="16" align="center">
            <img border="0" src="gowu_img/food08.gif" WIDTH="32" HEIGHT="32"></td>
            <td width="7%" height="16" align="center">3000</td>
            <td width="11%" height="16" align="center">1200</td>
            <td width="13%" height="16" align="center">1200</td>
             </tr>

<br>
          <tr>
            <td width="36%" height="25" align="left" bgcolor="<%=c2%>" colspan="6">
            <p align="center">购买者:<input type="text" name="name" size="14" value="<%=lgname%>"> 密&nbsp; 码:<input type="password" name="password" size="18" value="<%=lgpwd%>"></td>
            <td width="52%" height="25" colspan="6" bgcolor="<%=c2%>">
            <input type="submit" value="购 买" name="B1"> <span lang="en-us">&nbsp;</span><input type="reset" value="重 置" name="B2"></td>
            </tr>
        </table>
        </center>
      </div>
    </form>
    </td>
  </tr>
</table>
  </center>
</div>
<br><br>
<%else
set zym=myconn.execute("select*from user where name='"&name&"' and password='"&password&"'")
if zym.eof and zym.bof then%>
<br><br>
<center>您的用户名或者密码错误!!<br><br><br>
<a href="gowu.asp">返回购物广场</a></center><br>
<br>
    </td>
  </tr>
</table><br><br>
<%else
abc=food - zym("qian")
if abc>0 then
%>
<br><br><br>
<center>对不起,您没有足够的金钱!!请先赚好钱再来享受.....<br><br><br>
<a href="gowu.asp">返回购物广场</a></center><br><br>
    </td>
  </tr>
</table><br><br>
<%
else
ml=food*0.4
jy=food*0.4
set upji=myconn.execute("update user set meili=meili+"&ml&",jingyan=jingyan+"&jy&",qian=qian-"&food&" WHERE name='"&name&"'")
set zym1=myconn.execute("select*from user where name='"&name&"' and password='"&password&"'")
%>
<br><br><br>
<center>交易成功!你现在的金钱为:<%=zym1("qian")%>----魅力为:<%=zym1("meili")%>----经验为:<%=zym1("jingyan")%> 
<br><br><br>
<a href="gowu.asp">返回购物广场</a></center><br><br>
    </td>
  </tr>
</table><br><br>
<%end if
end if
set zym1=nothing
end if%><!--#include file="down.asp"-->

⌨️ 快捷键说明

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