<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx5<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	color: #000000;
	font-weight: bold;
}
.STYLE2 {color: #FF0000}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 会员管理 &gt;&gt; 幸运VIP用户管理</font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE2">* 为必添项目</span></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
  <table border="0" width="95%" cellspacing="1" cellpadding="3" style="border-collapse: collapse" align=center bgcolor="#999999">
    <form method="post" action="user_vip_xingyun_save.asp?action=update">
      <tr align=center bgcolor="#cccccc" height=25> 
        <td width="8%">序号</td>
        <td width="22%">时间</td>
        <td width="22%">用户名</td>
        <td width="22%">消费金额</td>
        <td width="20%">返回金额</td>
        <td width="6%">删除</td>
      </tr>
      <%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From shop_xyvip  order by vipdate,id",conn,1,1
if rs.recordcount=0 then 
%>
      <tr bgcolor="#F3F3F3"> 
        <td height=25 colspan="10" align="center"> 还没有添加幸运用户 </td>
      </tr>
      <%
else
    do while not rs.eof
%>
      <tr height=25 bgcolor="#F3F3F3"> 
        <td align=center><%=rs("ID")%> 
          <input type="hidden" name="id" value="<%=rs("id")%>">        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="vipdate" size="20" value="<%=trim(rs("vipdate"))%>">        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="username" size="20" value="<%=trim(rs("username"))%>">        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="xiaofei" size="20" value="<%=rs("xiaofei")%>" ONKEYPRESS="event.returnValue=IsDigit();" >        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="fanhui" size="20" value="<%=rs("fanhui")%>" onKeyPress="event.returnValue=IsDigit();" >        </td>
        <td align=center> <a href="user_vip_xingyun_save.asp?id=<%=rs("id")%>&action=del">删除</a>        </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr bgcolor="#F3F3F3"> 
        <td height=40 colspan="10" align="center"> 
          <input type="submit" name="Submit2" value="保存修改" class="go-wenbenkuang">
          &nbsp; 
          <input type="reset" value="重新设定" class="go-wenbenkuang" name="重置" >        </td>
      </tr>
      <%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </form>
    <form method="post" action="user_vip_xingyun_save.asp?action=add">
      <tr height=25 bgcolor="#F3F3F3">
        <td colspan="7" align=center bgcolor="#CCCCCC">添加幸运用户</td>
      </tr>
      <tr height=25 bgcolor="#F3F3F3">
        <td align=center>&nbsp;</td>
        <td align="center" bgcolor="#E7E7E7">时间</td>
        <td align="center" bgcolor="#E7E7E7">用户名</td>
        <td align="center" bgcolor="#E7E7E7">消费金额</td>
        <td align="center" bgcolor="#E7E7E7">返回金额</td>
        <td colspan="2" align=center>&nbsp;</td>
      </tr>
      <tr height=25 bgcolor="#F3F3F3"> 
        <td align=center>&nbsp;</td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="vipdate" size="20">        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="username" size="20">        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="xiaofei" size="20" ONKEYPRESS="event.returnValue=IsDigit();">        </td>
        <td align=center> 
          <input class="wenbenkuang" type="text" name="fanhui" size="20" onKeyPress="event.returnValue=IsDigit();" >        </td>
        <td colspan="2" align=center>&nbsp;</td>
      </tr>
      <tr height=25 bgcolor="#F3F3F3">
        <td colspan="7" align=center><input type="submit" name="Submit22" value="确 认 添 加" class="go-wenbenkuang"></td>
      </tr>
    </form>
  </table>
  <br>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</center>
</body>
</html>