www.gusucode.com > 爱美尔女性商城源码 1.0源码程序 > Mypoint.asp

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
if request.Cookies("bjx")("username")="" then
response.Redirect "login.asp"
response.End
end if
action=request("action")
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>--会员中心</title>
<meta name="keywords" content="<%=keywords%>" />
<meta name="description" content="<%=description1%>" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.idtabs.js"></script>
<script type="text/javascript" src="js/swf.js"></script>
<style type="text/css">
<!--
.STYLE1 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<!--#include file="top.asp" -->
<table width="995" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="20"><div align="center"></div></td>
  </tr>
</table>
<table width="995" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="189" valign="top"><!--#include file="hyleft.asp"-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"><div align="center"></div></td>
        </tr>
      </table>
    </td>
    <td width="10" valign="top"><div align="center"></div></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="40">您当前的位置: <a title="" href="#" alt="">首页</a> &gt;&gt; 会员中心 &gt;&gt; <b>我的积分</b></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr style="background:url(images/blueth.gif) repeat-x;">
          <td height="26" style="padding-left:10px;"><strong><%=request.Cookies("bjx")("username")%> 您好</strong></td>
        </tr>
        
        <tr>
          <td height="30" valign="top" ><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
	<%if action="sm" then%>
    <tr  align="center"> 
    <td height="25" bgcolor="#FCD0E0"><strong><font color=#000000>积分兑换奖品说明</font></strong>    </td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
      <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td>
            <%set rs=server.createobject("adodb.recordset")
                              rs.open "select jfhj from BJX_config ",conn,1,1
                              response.write rs("jfhj")
                              rs.close
                              set rs=nothing
                              %>          </td>
        </tr>
      </table>    </td>
  </tr>
  <%end if%>
  <%if action="jf" then%>
  <tr> 
    <td height="25" align="center" bgcolor="#FCD0E0"><strong><font color=#000000>我的积分情况</font></strong>    </td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
        <table width="95%" height="24" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select jifen from bjx_User where username='"&request.Cookies("bjx")("username")&"' ",conn,1,1
	ky_jifen=bjx("jifen")
	bjx.close
	set bjx=nothing%>
	<td width="50%">我的可用积分:<font color=#FF0000><%=ky_jifen%></font></td>
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select sum(zonger) as sum_jine from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai<=5",conn,1,1
	ky_jifen=bjx("sum_jine")
	bjx.close
	set bjx=nothing%>
	<td width="50%">累计购物金额(不含费用):<font color=#FF0000><%=ky_jifen%></font> 元</td>
	</tr>
	</table>    </td>
  </tr>
	<%end if%>
  <%if action="jp" then%>
  <tr align="center"> 
    <td height="25" align=center bgcolor="#FCD0E0"><strong><font color=#000000>奖品清单</font></strong></td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
      <table width="95%" border="0">
        <tr align="center"> 
          <td height="24">奖品名称</td>
          <td height="24">需要积分</td>
          <td height="24">操作</td>
        </tr>
        <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select * from BJX_jiangpin where xianshi=1",conn,1,1
	while not bjx.eof%>
        <tr>
          <td height="24"><div align="center"><a href="showjfpro.asp?id=<%=bjx("bookid")%>" ><%=bjx("bookname")%></a></div></td>
          <td align="center" height="24"><%=bjx("jifen")%></td>
          <td align="center" height="24"><a href="jifen.asp?id=<%=bjx("bookid")%>&action=add">选择此项</a></td>
        </tr>
        <%
	bjx.movenext
	wend
	bjx.close
	set bjx=nothing%>
      </table>    </td>
  </tr>
  <%
	set bjx=server.CreateObject("adodb.recordset")
	bjx.open "select * from BJX_action_jp where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
	if bjx.recordcount>0 then%>
  <tr align="center"> 
    <td height="25" bgcolor="#FCD0E0"><strong><font color=#FFFFFF>您已选择的奖品清单</font></strong></td>
  </tr>
  <tr bgcolor="#FFFFFF" align="center"> 
    <td> 
      <table width="95%" border="0">
        <tr align="center"> 
          <td height="24">奖品名称</td>
          <td height="24">使用积分</td>
          <td height="24">操作</td>
        </tr>
        <%
	while not bjx.eof%>
        <tr>
          <td height="24">
            <div align="center">
              <%
	set bjx1=server.CreateObject("adodb.recordset")
	bjx1.open "select * from BJX_jiangpin where bookid="&bjx("bookid"),conn,1,1
	if bjx1.recordcount=1 then
	response.write "<a href='showjfpro.asp?id="&bjx("bookid")&"' >"&bjx1("bookname")&"</a>"
	end if
	bjx1.close
	set bjx1=nothing%>
            </div></td>
          <td align="center" height="24"><%=bjx("jifen")%></td>
          <td align="center" height="24"><a href="jifen.asp?actionid=<%=bjx("actionid")%>&action=del">删除此项</a></td>
        </tr>
        <%
	bjx.movenext
	wend%>
      </table>    </td>
  </tr>
  <%end if
	bjx.close
	set bjx=nothing%>
    <%end if%>
</table>
   <br /><br /></td>
        </tr>
       
      </table>
	  
    </td>
  </tr>
</table>
<!--#include file="bottom.asp" -->
</body>
</html>