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

📄 cuser.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">
<!--#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 bgcolor="#FFFFFF" align="right"><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> 
                <td colspan="2" align="center"><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="tousu.asp" >投诉意见</a>]</td>
              </tr>
              <tr> 
                <td colspan="2" align="center" height="20">[<a href="lianxi.asp" >联系我们</a>]</td>
              </tr>
              <tr>
                <td colspan="2" align="center" height="20">[<a href="tongzhi.asp" >汇款通知</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=533 height="30">当前位置:<a href="cuser.asp">商品列表</a></TD>
        </TR>
        <TR> 
          <TD width="533"> <br>
            <%Set rs1 = Server.CreateObject("ADODB.Recordset")               
sql = "SELECT * FROM bid  order by id desc"               
rs1.open sql, conn, 1, 3               
%>
            <TABLE cellSpacing=1 cellPadding=4 width="500" align=center                    
border=0 bgcolor="#666666">
              <TBODY> 
              <TR bgcolor="#EDDEA0"> 
                <TD height="25" align="center" bgcolor="#EDDEA0"><font color="#BB5E00"><b><font color="#663300">类 别</font></b></font></TD>
                <TD height="25" align="center" bgcolor="#EDDEA0"><b><font color="#663300">名    称</font></b></TD>
                <TD height=25 align="center"><b><font color="#663300">库存</font></b></TD>
                <TD height=25 align="center"><b><font color="#663300">点击购买</font></b></TD>
              </TR>
              <% do while not rs1.eof%>
              <TR> 
                <TD height="23" align="center" bgcolor="#FFFFFF"><%=rs1("fl")%></TD>
                <%  
Set tt = Server.CreateObject("ADODB.Recordset")  
sql = "SELECT * FROM card where bid="&rs1("id")&" and oklook<>2 "
tt.open sql, conn, 1, 3  
ren=tt.recordcount
%>
                <TD height="23" bgcolor="#FFFFFF"><a href="cuser11.asp?id=<%=rs1("id")%>&name=<%=rs1("name")%>">&nbsp;<%=rs1("name")%></a></TD>
                <TD height=23 align="center" bgcolor="#FFFFFF">
				<% if ren=0 then%>
<font color=#ff000><b>0</b></font>
<%else%>
<font color=green><b><%=ren%></b></font>
<%end if%>				 </TD>
                <TD height=23 align="center" bgcolor="#FFFFFF"><a href="cuser11.asp?id=<%=rs1("id")%>&name=<%=rs1("name")%>"> 
                  <% if rs1("body")=1 then
				%>
                  <img src="images/ebuy.gif" width="66" height="13" alt="此卡类为在线卡,购买后由代理为您充值。" border="0"> 
                  <%else%>
                  <img src="images/shopping.gif" width="66" height="13" alt="此类为实物卡,点击购买卡号、密码,即买即得!" border="0"> 
                  <%end if%>
                  </a></TD>
              </TR>
              <%rs1.movenext     
			loop     
%>
              <tr bgcolor="#FBF7E6"> 
                <TD colSpan=5 height=45>  请选择你要购买的商品,如果缺货我们会抓紧时间补充货源,请稍候购买。如果没有发现你要的商品,请即时和我们联系,我们将为您添加,感谢您的光临。</TD>
              </tr>
              </TBODY> 
            </TABLE>
          </TD>
        </TR>
        </TBODY> 
      </TABLE>
      <br>
      <br>
    </TD>
    <TD vAlign=top width=6 align="center" bgcolor="#EDDEA0">&nbsp;</TD>
  </TR>
  <TR> 
    <TD vAlign=top width=196 bgcolor="#EDDEA0" align="center">&nbsp;</TD>
    <TD width=266 bgcolor="#FFFFFF"><img src="images/ico_l.gif" width="18" height="15"></TD>
    <TD width=267 bgcolor="#FFFFFF" align="right"><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 + -