% Const MaxPerPage=20 dim totalPut,CurrentPage,TotalPages,j,sql if Not isempty(SafeRequest("page",1)) then currentPage=Cint(SafeRequest("page",1)) else currentPage=1 end if dim namekey,checkbox,action,vipuser action=FormatSQL(SafeRequest("action",0)) checkbox=request.form("checkbox") namekey=request.form("namekey") if namekey="" then namekey=FormatSQL(SafeRequest("namekey",0)) if checkbox="" then checkbox=FormatSQL(SafeRequest("checkbox",0)) set rs=server.CreateObject("adodb.recordset") if namekey="" then rs.open "select * from acoupon order by id desc",conn,1,1 else if checkbox=1 then rs.open "select * from acoupon order by id desc",conn,1,1 else rs.open "select * from acoupon order by id desc",conn,1,1 end if end if if err.number<>0 then response.write "数据库中暂时无数据" end if if rs.eof And rs.bof then Response.Write "
对不起,没有此礼券!
" else 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 showContent showpage totalput,MaxPerPage,"adminuser.asp" else if (currentPage-1)*MaxPerPage| 礼券管理 |
| 搜 索 用 户 |
|
|