?? czk.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 ' 設(shè)置變量PAGE=1
rs.pagesize=20
if Not IsEmpty(Request("Page")) then '如果PAGE已經(jīng)初始化...
Page = CInt(Request("Page")) '接收PAGE并化為數(shù)字型賦給PAGE變量
if Page > rs.PageCount then '如果接收的頁數(shù)大于總頁數(shù)
rs.AbsolutePage = rs.PageCount '設(shè)置當(dāng)前顯示頁等于最后頁
else
rs.AbsolutePage = Page '顯示當(dāng)前頁等于接收的頁數(shù)
end if
else
Page = 1 '如果page未被初始化則設(shè)為1
End if
rs.AbsolutePage=page
%>
<%
For i = 1 to rs.PageSize
if rs.EOF then
Exit For
end if '利用for next 循環(huán)依次讀出記錄
%>
<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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -