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

📄 czk.asp

📁 NT80购物系统1.0 系统说明: 1 界面美观大方
💻 ASP
字号:
<!--#include file="admin_is.ini"--><!--#include file="conn.asp"--><html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet" type="text/css">

</head>

<body bgcolor="#799AE1">
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#336699" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="96" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" height="128">
                          <tr> 
                            <td height="20" bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">冲值卡管理</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="2" valign="top" bgcolor="#E8F1FF"> <br>
                              <table width="100%" border="0" cellspacing="0" cellpadding="0" height="24">
                                <tr> 
                                  <td width="10%">ID</td>
                                  <td width="14%">卡号</td>
                                  <td width="13%">密码</td>
                                  <td width="13%">面值</td>
                                  <td width="14%">时间</td>
                                  <td width="36%">使用情况</td>
                                </tr>
                              </table>
                              <% set rs=server.createobject("adodb.recordset")
				sql="SELECT * from chong order by time desc"
	  
      rs.open sql,conn,1,3 
	  page=1    ' 设置变量PAGE=1
rs.pagesize=20
if Not IsEmpty(Request("Page")) then '如果PAGE已经初始化...

Page = CInt(Request("Page")) '接收PAGE并化为数字型赋给PAGE变量

if Page > rs.PageCount then '如果接收的页数大于总页数
rs.AbsolutePage = rs.PageCount '设置当前显示页等于最后页

else
rs.AbsolutePage = Page '显示当前页等于接收的页数 
end if 
else 
Page = 1 '如果page未被初始化则设为1

End if
rs.AbsolutePage=page 
%>
                              <% 

For i = 1 to rs.PageSize
if rs.EOF then     
Exit For 
end if '利用for next 循环依次读出记录
%>
                              <table width="100%" border="1" cellspacing="0" cellpadding="0" height="8" bgcolor="#FFFFFF" bordercolor="#CCCCCC">
                                <tr> 
                                  <td width="9%"><%=rs("id")%><img src="images/delete.gif" alt="删除" width="12" height="12" border="0" onClick="if(confirm('您确定要删除吗?')){location='delczk.asp?id=<%=rs("id")%>'}else{return(false)}" onMouseMove="this.style.cursor='hand'"></td>
                                  <td width="14%"><%=rs("cname")%></td>
                                  <td width="14%"><%=rs("pass")%></td>
                                  <td width="12%"><%=rs("dianzhi")%>/元</td>
                                  <td width="15%"><%=rs("time")%></td>
                                  <td width="36%"><%=rs("zhuangtai")%></td>
                                </tr>
                              </table>
                              <%rs.movenext 
				  next %>
                            </td>
                          </tr>
                          <tr> 
                            <td height="52" valign="top" bgcolor="#E8F1FF">
                              <div align="right"><br>
                                <%if request("page")>1 then%>
                                <a Href="czk.asp?Page=<% = 1%>">首页</a> <a Href="czk.asp?Page=<% =request("page") -1 %>">上一页</a> 
                                <%end if %>
                                <%if request("page")<>rs.pagecount then %>
                                <a Href="czk.asp?Page=<% =request("page") + 1%>">下一页</a> 
                                <a Href="czk.asp?Page=<% = rs.PageCount%>">尾页</a> 
                                <% end if %>
                              </div>
                            </td>
                          </tr>
                          <tr>
                            <td height="53" valign="top" bgcolor="#E8F1FF">
                              <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="439" id="AutoNumber1" height="45">
                                <tr> 
                                  <td width="439" colspan="4" bgcolor="#e8f4ff" height="23"><b>自动增加充值卡:</b></td>
                                </tr>
                                <form method="POST" action="czk2.asp?ccc22=add">
                                  <tr> 
                                    <td width="112" height="7" bgcolor="#FFFFFF"><font size="2"> 
                                      </font></td>
                                    <td width="106" height="7" bgcolor="#FFFFFF"> 
                                      <input type="text" name="not" size="10">
                                      张</td>
                                    <td width="67" height="7" bgcolor="#FFFFFF"> 
                                      <input type="text" name="paymoneyj" size="4">
                                      <span lang="en-us"> </span> 元</td>
                                    <td width="154" height="7" bgcolor="#FFFFFF"> 
                                      <input type="submit" value="增加" name="B1">
                                    </td>
                                  </tr>
                                </form>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
</body>
</html>

⌨️ 快捷键说明

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