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

📄 managefelicityvip.asp

📁 一个ASP做的购物车
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="session3.asp"-->
<html>
<head>
<title>幸运VIP用户管理</title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>

<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <form method="post" action="SetFelicityVip.asp?action=update">  
    <tr> 
      <th class="tableHeaderText" colspan=6>幸运VIP用户</th>
    </tr>
      <tr align=center> 
        <td class="forumRowHighlight">序号</td>
        <td class="forumRowHighlight">时间</td>
        <td class="forumRowHighlight">用户名</td>
        <td class="forumRowHighlight">消费金额</td>
        <td class="forumRowHighlight">返回金额</td>
        <td class="forumRowHighlight">删除</td>
      </tr>
      <%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From wq_xyvip  order by vipdate,id",conn,1,1
if rs.recordcount=0 then 
%>
      <tr> 
        <td colspan="10" height=25 align="center" width="100%" class="forumRowHighlight"> 还没有添加幸运用户 </td>
      </tr>
      <%
else
    do while not rs.eof
%>
      <tr> 
        <td align=center class="forumRowHighlight"><%=rs("ID")%> 
          <input type="hidden" name="id" value="<%=rs("id")%>">
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="vipdate" size="10" value="<%=trim(rs("vipdate"))%>">
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="username" size="10" value="<%=trim(rs("username"))%>">
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="xiaofei" size="10" value="<%=rs("xiaofei")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="fanhui" size="10" value="<%=rs("fanhui")%>" onKeyPress="event.returnValue=IsDigit();" >
        </td>
        <td align=center class="forumRowHighlight"> <a href="SetFelicityVip.asp?id=<%=rs("id")%>&action=del">删除</a> 
        </td>
      </tr>
      <%
    rs.MoveNext
    Loop
%>
      <tr> 
        <td colspan="10" class="forumRowHighlight" align="center" width="100%"> 
          <input class="button" type="submit" name="Submit2" value="保存修改">
          &nbsp; 
          <input class="button" type="reset" value="重新设定" name="重置" >
        </td>
      </tr>
      <%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </form>
    <form method="post" action="SetFelicityVip.asp?action=add">
      <tr> 
        <td align=center class="forumRowHighlight">添加用户</td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="vipdate" size="10">
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="username" size="10">
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="xiaofei" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
        </td>
        <td align=center class="forumRowHighlight"> 
          <input class=text type="text" name="fanhui" size="10" onKeyPress="event.returnValue=IsDigit();" >
        </td>
        <td align=center colspan="2" class="forumRowHighlight"> 
          <input class="button" type="submit" name="Submit2" value="添加">
        </td>
      </tr>
 
</form> 
</table>
</body>
</html>

⌨️ 快捷键说明

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