okjicar.asp
资源名称:qnmov30.rar [点击查看]
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:6k
源码类别:
家庭/个人应用
开发平台:
ASP/ASPX
- <!--#include file="articleconn.asp"-->
- <!--#include file="home1.asp"-->
- <!--#include file="security.asp"-->
- <%if session("flag")>3 then
- response.write "<br><p align=center>您的操作权限不够!</p>"
- response.end
- end if
- %>
- <html>
- <head>
- <title>充值记录</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link rel="stylesheet" href="inc/Admin_STYLE.CSS" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <style type="text/css">
- <!--
- .样式3 {color: #FFFFFF; font-weight: bold; }
- -->
- </style>
- <BODY leftMargin="0 "topMargin="0" marginwidth="0" marginheight="0" >
- <%
- MaxPerPage=20
- dim totalPut
- dim CurrentPage
- dim TotalPages
- dim i,j
- dim typename
- typename=""
- if not isempty(request("page")) then
- currentPage=cint(request("page"))
- else
- currentPage=1
- end if
- dim sql
- dim rs
- dim rstype
- dim typesql
- dim typeid,typename1
- if not isEmpty(Replace(request("typeid"), "'", "''")) then
- typeid=Replace(request("typeid"), "'", "''")
- else
- typeid=0
- end if
- %>
- <!--#include file="top1.asp"-->
- <div align="center"><%
- sql="select * from jicar where ok=1 order by id desc"
- Set rs= Server.CreateObject("ADODB.Recordset")
- rs.open sql,conn,1,1
- if rs.eof and rs.bof then
- response.write "<p align='center'> 还 没 有 任 何 充 值 卡</p>"
- else
- totalPut=rs.recordcount
- totalPut=rs.recordcount
- if currentpage<1 then
- currentpage=1
- end if
- if (currentpage-1)*MaxPerPage>totalput then
- if (totalPut mod MaxPerPage)=0 then
- currentpage= totalPut MaxPerPage
- else
- currentpage= totalPut MaxPerPage + 1
- end if
- end if
- if currentPage=1 then
- showpage totalput,MaxPerPage,"okjicar.asp"
- showContent
- showpage totalput,MaxPerPage,"okjicar.asp"
- else
- if (currentPage-1)*MaxPerPage<totalPut then
- rs.move (currentPage-1)*MaxPerPage
- dim bookmark
- bookmark=rs.bookmark
- showpage totalput,MaxPerPage,"okjicar.asp"
- showContent
- showpage totalput,MaxPerPage,"okjicar.asp"
- else
- currentPage=1
- showpage totalput,MaxPerPage,"okjicar.asp"
- showContent
- showpage totalput,MaxPerPage,"okjicar.asp"
- end if
- end if
- end if
- sub showContent
- dim i
- i=0
- %>
- </div>
- <table border="0" width="100%" cellspacing="1" cellpadding="0" class="border" align="center">
- <tr>
- <td height="23" colspan="11" class="title"> <div align="center"> <strong><font color="#FF0000">点数冲值记录</font></strong></div></td>
- </tr>
- <tr bgcolor="#429AEF">
- <td width="16%" height="18" align="center" ><span class="样式3">卡
- 号 </span></td>
- <td width="17%" align="center" ><span class="样式3">卡密码</span></td>
- <td width="14%" align="center" ><span class="样式3">可充点数</span></td>
- <td width="12%" align="center" ><span class="样式3">面 值</span></td>
- <td width="14%" align="center" ><span class="样式3">会员帐号</span></td>
- <td width="16%" align="center" ><span class="样式3"><b>电影卡类型</b></span></td>
- <td width="11%" align="center" ><span class="样式3"><b>删除</b></span></td>
- </tr>
- <%do while not rs.eof%>
- <tr>
- <td align="center" class="tdbg"><%=rs("carid")%></td>
- <td align="center" class="tdbg"><%=rs("carpws")%></td>
- <td align="center" class="tdbg"><%=rs("day")%> 点 </td>
- <td align="center" class="tdbg"><%=rs("paymoney")%> 元</td>
- <td align="center" class="tdbg"><a href="useredit.asp?userid=<%=rs("userid")%>" ><%=rs("userid")%></a></td>
- <td align="center" class="tdbg"> <%if rs("oklook")=1 then%> 普通会员卡 <%elseif rs("oklook")=2 then%> 白银会员卡 <%elseif rs("oklook")=3 then%> 黄金会员卡 <%end if%> </td>
- <td align="center" class="tdbg"><a href="deljicar.asp?id=<%=rs("id")%>"><font color="#000000">删除</font></a></td>
- </tr>
- <% i=i+1
- if i>=MaxPerPage then exit do
- rs.movenext
- loop
- %>
- <tr>
- <td colspan="7" align="center" bgcolor="#CCCCCC"> </td>
- </tr>
- </table>
- <div align="center"><%
- end sub
- function showpage(totalnumber,maxperpage,filename)
- dim n
- if totalnumber mod maxperpage=0 then
- n= totalnumber maxperpage
- else
- n= totalnumber maxperpage+1
- end if
- response.write "<p align=""center""><form method=Post action="&filename&"?typeid="&typeid&">"
- if CurrentPage<2 then
- response.write "<font color='#000080'>首页 上一页</font> "
- else
- response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a> "
- response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a> "
- end if
- if n-currentpage<1 then
- response.write "<font color='#000080'>下一页 尾页</font>"
- else
- response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
- response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
- end if
- response.write "<font color='#000080'> 页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
- response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>张 <b>"&maxperpage&"</b>张/页</font> "
- response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="¤tpage&">"
- response.write " <input class=buttonface type='submit' value='Goto' name='cndok'></span></p></form></p>"
- end function
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- %>
- </div>
- </body>
- </html>