gusucode.com > 爱美尔女性商城源码 1.0源码程序 > admintouch/xyvip.asp
<!--#include file="conn.asp"--> <%if session("bjxadmin")="" then response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>" response.End else if session("flag")>1 then response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>" response.End end if end if %> <html><head><title>幸运VIP用户管理</title> <script> function IsDigit() { return ((event.keyCode >= 48) && (event.keyCode <= 57)); } </script> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="images/css.css" rel="stylesheet" type="text/css"> </head> <body> <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#6a7f9a"> <form method="post" action="xyvipset.asp?action=update"> <tr> <td colspan="6" align="center" background="images/admin_bg_1.gif"><b><font color="#ffffff">幸运VIP会员</font></b></td> </tr> <tr align=center bgcolor=#E8F1FF> <td width="10%">序 号</td> <td width="20%">时 间</td> <td width="20%">用户名</td> <td width="20%">消费金额</td> <td width="20%">返回金额</td> <td width="10%">删 除</td> </tr> <% Set rs = Server.CreateObject("ADODB.Recordset") rs.open "SELECT * FROM BJX_xyvip order by vipdate,id",conn,1,1 if rs.recordcount=0 then %> <tr bgcolor=#E8F1FF> <td colspan="10" height=25 align="center" width="100%"> 还没有添加幸运用户 </td> </tr> <% else do while not rs.eof %> <tr bgcolor=#E8F1FF> <td align=center><%=rs("ID")%> <input type="hidden" name="id" value="<%=rs("id")%>"></td> <td align=center> <input class=text type="text" name="vipdate" size="10" value="<%=trim(rs("vipdate"))%>"></td> <td align=center> <input class=text type="text" name="username" size="10" value="<%=trim(rs("username"))%>"></td> <td align=center> <input class=text type="text" name="xiaofei" size="10" value="<%=rs("xiaofei")%>" ONKEYPRESS="event.returnValue=IsDigit();"></td> <td align=center> <input class=text type="text" name="fanhui" size="10" value="<%=rs("fanhui")%>" onKeyPress="event.returnValue=IsDigit();"></td> <td align=center> <a href="xyvipset.asp?id=<%=rs("id")%>&action=del">删除</a> </td> </tr> <% rs.MoveNext Loop %> <tr bgcolor=#E8F1FF> <td colspan="10" height=25 align="center" width="100%"> <input type="submit" name="Submit2" value="保存修改" style="font-family: 宋体; font-size: 9pt"> <input type="reset" value="重新设定" style="font-family: 宋体; font-size: 9pt" name="重置" > </td> </tr> <% end if rs.close set rs=nothing conn.close set conn=nothing %> </form> </table><br> <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#6a7f9a"> <tr> <td colspan="6" align="center" background="images/admin_bg_1.gif"><b><font color="#ffffff">添加幸运VIP会员</font></b></td> </tr> <form method="post" action="xyvipset.asp?action=add"> <tr bgcolor=#E8F1FF> <td width=10% align=center>添加用户</td> <td width=20% align=center> <input class=text type="text" name="vipdate" size="10"></td> <td width=20% align=center> <input class=text type="text" name="username" size="10"></td> <td width=20% align=center> <input class=text type="text" name="xiaofei" size="10" ONKEYPRESS="event.returnValue=IsDigit();"></td> <td width=20% align=center> <input class=text type="text" name="fanhui" size="10" onKeyPress="event.returnValue=IsDigit();" ></td> <td width=10% align=center> <input type="submit" name="Submit2" value="添加" style="font-family: 宋体; font-size: 9pt"></td> </tr> </form> </table> <!--#include file="bjxfoot.asp"--> </body> </html>