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

📄 buy.asp

📁 asp游戏点卡销售系统,基本东西,代码+实现
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
dim rs
dim sql
userid=replace(trim(request("userid")),"'","")
password=replace(trim(Request("password")),"'","")
if session("userid")=""then
response.write"<script>alert('非法操作!');</Script>"
response.write"<script Language=Javascript>location.href = 'index.asp';</script>"
response.end
end if
%>
<HTML><HEAD><TITLE>您确定要购买下列商品吗?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/css.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.style4 {color: #0000FF}
.style7 {color: #6600FF}
.style8 {color: #000000}
-->
</style>
</HEAD>
<%  
userid=session("userid")
set rs=server.createobject("adodb.recordset")  
sql="select * from users where userid='"&userid&"' "  
rs.open sql,conn,1,1%>
<body topmargin="0" leftmargin="0" bgcolor="#336699">
<% id=request.querystring("id")                       
if session("oklook")=0  then                      
response.write "<script>alert('您的帐号还没通过审核!')</Script>"                      
response.write "<script>location.href='cuser.asp'</Script>"                      
response.end                       
end if                      
set rs1=server.createobject("adodb.recordset")                        
sql="select * from card where id="&id                        
rs1.open sql,conn,1,1                      
 if session("oklook")=1 then                       
 jiage=rs1("pt")                      
 end if                      
 if session("oklook")=2 then                       
 jiage=rs1("vip")                      
 end if                      
 %>

<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=735 border=0 align=center>
  <TR> 
    <TD vAlign=top width=196 bgcolor="#EDDEA0" align="center">&nbsp;</TD>
    <TD width=266 bgcolor="#FFFFFF"><img src="images/ico.gif" width="18" height="15"></TD>
    <TD width=267 align="right" bgcolor="#FFFFFF"><img src="images/ico1.gif" width="18" height="15"></TD>
    <TD vAlign=top width=6 align="center" bgcolor="#EDDEA0">&nbsp;</TD>
  </TR>
  <TBODY> 
  <TR> 
    <TD vAlign=top width=196 bgcolor="#EDDEA0" align="center"> 
      <table width="168" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="images/b_bg.gif"> 
            <table cellspacing=0 cellpadding=0 width="100%" border=0 align=center>
              <tr> 
                <td height=7 colspan="2"><img src="images/b_top.gif" width="168" height="7"></td>
              </tr>
              <tr align="center"> 
                <td colspan="2"><img src="images/zx.gif" width="123" height="39"></td>
              </tr>
              <tbody> 
              <tr> 
                <td align=right height="20"> 用户名:</td>
                <td height="20"><font color="#3333CC"><strong><%=rs("name")%></strong></font></td>
              </tr>
              <tr> 
                <td width="50%" align="right" height="20">用户ID:</td>
                <td height="20"><font color=#999900><%=rs("id")%></font></td>
              </tr>
              <tr> 
                <td align="right" height="20">用户级别:</td>
                <td height="20"> 
                  <%if rs("oklook")=0 then                         
oklook="未审核"                        
elseif rs("oklook")=1 then                        
oklook="普通会员"                        
elseif rs("oklook")=2 then                        
oklook="VIP会员"                        
                        
end if                        
%>
                  <font color=green><%=oklook%></font></td>
              </tr>
              <tr> 
                <td align="right" height="20">帐户存款:</td>
                <td height="20"><font color=#ff0000><%=rs("qian")%></font> 元</td>
              </tr>
              <tr> 
                <td align="center" colspan="2">&nbsp;</td>
              </tr>
              <tr> 
                <td align="center" colspan="2" height="20"> 
                  <table width="132" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="24" background="images/jxinfo_button.gif" align="center">请注意帐号安全!</td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td align="center" colspan="2">&nbsp;</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20">[<a href="cuser.asp" >商品列表</a>]</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20">[<a href="edit_info.asp" >修改资料</a>]</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20">[<a href="jiaofei.asp" >存款记录</a>]</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20">[<a href="mylog.asp?lb=<%=session("userid")%>" >购物记录</a>]</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20">[<a href="out.ASP">安全退出</a>]</td>
              </tr>
              <tr> 
                <td align="center" colspan="2">&nbsp;</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20"><img src=images/wa1.gif></td>
              </tr>
              <tr> 
                <td height=8 colspan="2" background="images/dh_bottom.gif"></td>
              </tr>
              </tbody> 
            </table>
          </td>
        </tr>
        <tr> 
          <td align="center" colspan="2">&nbsp;</td>
        </tr>
      </table>
    </TD>
    <TD vAlign=top width=533 align="center" bgcolor="#FFFFFF" colspan="2"> 
      <TABLE cellSpacing=0 cellPadding=0 width=513 border=0>
        <TBODY> 
        <TR> 
          <TD width=100% height="30">当前位置:
            购买确认</TD>
        </TR>
        <TR> 
          <TD width="533" height="20"> <br>
            
            <form method="POST" action="save_buy.asp?id=<%=rs1("id")%>">
              <TABLE cellSpacing=1 cellPadding=4 width="430" align=center                                   
border=0 bgcolor="#666666">
                <TBODY> 
                <TR bgcolor="#EDDEA0"> 
                  <TD height=30 align="center" colspan="2"> <font color="#663300"><b>您确定要购买下列商品吗?</b></font></TD>
                </TR>
                <TR bgcolor="#FBF7E6"> 
                  <TD width="92" height="25" align="right"> 商品名称:</TD>
                  <TD width="319" height="25"> 
                    <input type="hidden" name="name" size="20" value="<%=request.querystring("name")%>">
                     <font color=red><%=request.querystring("name")%></font></TD>
                </TR>
                <TR bgcolor="#FBF7E6"> 
                  <TD width="92" height="25" align="right"> 商品编号:</TD>
                  <TD width="319" height="25"> 
                    <input type="hidden" name="cardname" size="20" value="<%=rs1("cardname")%>">
                     <font color=red><%=rs1("cardname")%></font></TD>
                </TR>
                <TR bgcolor="#FBF7E6"> 
                  <TD width="92" height="25" align="right"> 成交价格:</TD>
                  <TD width="319" height="25"> 
                    <input type="hidden" name="jiage" size="20" value="<%=jiage%>">
                    
                     <font color=red><%=jiage%></font> 元</TD>
                </TR>
                <% if rs1("body")=1 then%>
                <TR bgcolor="#FBF7E6"> 
                  <TD width="92" align="right" height="25">游戏帐号:</TD>
                  <TD width="319">&nbsp; 
                    <input type="text" name="gamename" size="20" value="">
                  </TD>
                </TR>
                <TR bgcolor="#FBF7E6">
                  <TD width="92" align="right" height="25">选择分区:</TD>
                  <TD width="319">&nbsp; 
                    <select type="text" name="gamequ" size="1" value="">
                      <option>选择帐号所在分区</option>
                      <option value="1区">1区</option>
                      <option value="2区">2区</option>
                      <option value="3区">3区</option>
                      <option value="4区">4区</option>
                      <option value="5区">5区</option>
                      <option value="6区">6区</option>
                      <option value="7区">7区</option>
                      <option value="8区">8区</option>
                      <option value="9区">9区</option>
                      <option value="10区">10区</option>
                      <option value="11区">11区</option>
                      <option value="12区">12区</option>
                      <option value="13区">13区</option>
                      <option value="14区">14区</option>
                      <option value="15区">15区</option>
                      <option value="16区">16区</option>
                      <option value="17区">17区</option>
                      <option value="18区">18区</option>
                      <option value="19区">19区</option>
                      <option value="20区">20区</option>
                      <option value="21区">21区</option>
                      <option value="22区">22区</option>
                      <option value="23区">23区</option>
                      <option value="24区">24区</option>
                      <option value="25区">25区</option>
                      <option value="26区">26区</option>
                      <option value="27区">27区</option>
                      <option value="28区">28区</option>
                      <option value="29区">29区</option>
                      <option value="30区">30区</option>
                      <option value="31区">31区</option>
                      <option value="32区">32区</option>
                      <option value="33区">33区</option>
                      <option value="34区">34区</option>
                      <option value="35区">35区</option>
                      <option value="36区">36区</option>
                      <option value="37区">37区</option>
                      <option value="38区">38区</option>
                      <option value="39区">39区</option>
                      <option value="40区">40区</option>
                      <option value="41区">41区</option>
                      <option value="42区">42区</option>
                      <option value="43区">43区</option>
                      <option value="44区">44区</option>
                      <option value="45区">45区</option>
                      <option value="46区">46区</option>
                      <option value="47区">47区</option>
                      <option value="48区">48区</option>
                      <option value="49区">49区</option>
                      <option value="50区">50区</option>
                      <option value="51区">51区</option>
                      <option value="52区">52区</option>
                      <option value="53区">53区</option>
                      <option value="54区">54区</option>
                      <option value="55区">55区</option>
                      <option value="56区">56区</option>
                      <option value="57区">57区</option>
                      <option value="58区">58区</option>
                      <option value="59区">59区</option>
                      <option value="60区">60区</option>
                      <option value="61区">61区</option>
                      <option value="62区">62区</option>
                      <option value="63区">63区</option>
                      <option value="64区">64区</option>
                      <option value="65区">65区</option>
                      <option value="66区">66区</option>
                      <option value="67区">67区</option>
                      <option value="68区">68区</option>
                      <option value="69区">69区</option>
                      <option value="70区">70区</option>
                      <option value="71区">71区</option>
                    </select><input type="hidden" name="body1" size="20" value="1">
                  </TD>
                </TR>
                <TR bgcolor="#FBF7E6">
                  <TD width="92" align="right" height="25">备注:</TD>
                  <TD width="319">&nbsp; 
                    <input type="text" name="body" size="35" maxlength="120">
                  </TD>
                </TR>
                          
                <tr bgcolor="#FBF7E6"> 
                  <TD colspan="2" height="100" align="center"> 
                    <table width="413" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td height="73">   说明:您选购的是在线充值类卡,由服务代理商为您充值。每天的<font color="#FF0000">8:00</font>到晚上的<font color="#FF0000">24:00</font>为大家充值。注意游戏服务器分区以及游戏帐号等信息请仔细填写。<font color="#FF0000">备注</font>一栏可不填,当有些游戏举办活动如“奇迹MU送宝石”时,可以在备注栏填写“请将宝石送至五区六服”等字样。如果你有什么不明白的请打电话咨询。</td>
                      </tr>
                    </table>
                  </TD>
                </tr>
                <%end if%>
                <tr bgcolor="#FBF7E6"> 
                  <TD colspan="2" height="30" align="center"> 
                    <input type="submit" value="确定购买" name="B1">
                  </TD>
                </tr>
                </TBODY> 
              </TABLE>
            </form>
          </TD>
        </TR>
        </TBODY> 
      </TABLE>
      <br>
      <br>
    </TD>
    <TD vAlign=top width=6 align="center" bgcolor="#EDDEA0">&nbsp;</TD>
  </TR>
  <TR> 
    <TD width=196 bgcolor="#EDDEA0">&nbsp;</TD>
    <TD width=266 bgcolor="#FFFFFF"><img src="images/ico_l.gif" width="18" height="15"></TD>
    <TD width=267 align="right" bgcolor="#FFFFFF"><img src="images/ico_r.gif" width="18" height="15"></TD>
    <TD vAlign=top width=6 align="center" bgcolor="#EDDEA0">&nbsp;</TD>
  </TR>
  </TBODY> 
</TABLE>             
            
    
  <%                    
rs.close                    
  set rs=nothing                    
  conn.close                    
  set conn=nothing                    
 %>  
<!--#include file="bott.asp"-->

⌨️ 快捷键说明

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