eoff.ASP
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:6k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="articleconn.asp"-->
  2. <!--#include file="home1.asp"-->
  3. <!--#include file="security.asp"-->
  4. <!--#include file="../checkpost.asp"-->
  5. <%if session("flag")>3 then
  6.     response.write "<br><p align=center>您的操作权限不够!</p>"
  7.     response.end
  8. end if
  9. %>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Language" content="zh-cn">
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  14. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  15. <meta name="ProgId" content="FrontPage.Editor.Document">
  16. <link rel="stylesheet" href="inc/Admin_STYLE.CSS" type="text/css">
  17. <title></title>
  18. </head>
  19. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  20. <!--#include file="top1.asp"-->
  21. <%
  22.    MaxPerPage=20
  23.    dim totalPut   
  24.    dim CurrentPage
  25.    dim TotalPages
  26.    dim i,j
  27.    dim typename
  28.    
  29.    typename=""
  30.    if not isempty(request("page")) then
  31.       currentPage=cint(request("page"))
  32.    else
  33.       currentPage=1
  34.    end if
  35.    dim sql
  36.    dim rs
  37.    dim rstype
  38.    dim typesql
  39.    dim typeid,typename1
  40.    if not isEmpty(Replace(request("typeid"), "'", "''")) then
  41. typeid=Replace(request("typeid"), "'", "''")
  42.    else
  43. typeid=""
  44.    end if
  45.    if request("page")="" then
  46.    page=0
  47.    end if
  48. %> <center>
  49. <%
  50. sql="select * from totalk order by id desc"
  51. Set rs= Server.CreateObject("ADODB.Recordset")
  52. rs.open sql,conn,1,1
  53.   if rs.eof and rs.bof then
  54.        response.write "<p align='center'> 还 没 有 任 何 报 告</p>"
  55.    else
  56.   totalPut=rs.recordcount
  57.       totalPut=rs.recordcount
  58.       if currentpage<1 then
  59.           currentpage=1
  60.       end if
  61.       if (currentpage-1)*MaxPerPage>totalput then
  62.    if (totalPut mod MaxPerPage)=0 then
  63.      currentpage= totalPut  MaxPerPage
  64.    else
  65.       currentpage= totalPut  MaxPerPage + 1
  66.    end if
  67.       end if
  68.        if currentPage=1 then
  69.            showpage totalput,MaxPerPage,"eoff.asp"
  70.             showContent
  71.             showpage totalput,MaxPerPage,"eoff.asp"
  72.        else
  73.           if (currentPage-1)*MaxPerPage<totalPut then
  74.             rs.move  (currentPage-1)*MaxPerPage
  75.             dim bookmark
  76.             bookmark=rs.bookmark
  77.            showpage totalput,MaxPerPage,"eoff.asp"
  78.             showContent
  79.              showpage totalput,MaxPerPage,"eoff.asp"
  80.         else
  81.         currentPage=1
  82.            showpage totalput,MaxPerPage,"eoff.asp"
  83.            showContent
  84.            showpage totalput,MaxPerPage,"eoff.asp"
  85.       end if
  86.    end if
  87.    end if
  88.         
  89.   
  90.    sub showContent
  91.        dim i
  92.    i=0
  93.   %>
  94. <br>
  95. <div align="center"> 
  96.   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  97.     <tr>
  98.       <td><div align="center"><font color="#FF0000">影片错误报告区 </font> <a href="DELeoff.ASP"><font color="#000000">删除三天前的数据</font></a> 
  99.           <font color="#000000"></font> </div></td>
  100.     </tr>
  101.   </table>
  102. </div>
  103. <center>
  104.   <%do while not rs.eof%>
  105.   <table border="0" cellspacing="1" width="100%" class="border" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="2" height="48" style="border-collapse: collapse" bordercolor="#111111">
  106.     <tr bgcolor="#429AEF"> 
  107.       <td height="21" colspan="5"><font color="#FFFFFF" class="#ffffff"><b><%=rs("title")%> 
  108.         错误报告 </font></td>
  109.     </tr>
  110.     <tr> 
  111.       <td width="93" height="12" class="tdbg"> <p align="center">报告时间:</td>
  112.       <td width="394" height="12" class="tdbg"><%=rs("times")%></td>
  113.       <td width="244" height="12" class="tdbg"><div align="center">报告会员:</div></td>
  114.       <td width="159" height="12" class="tdbg"> <p> <a href="useredit.asp?userid=<%=rs("user")%>" target="_blank"> 
  115.       </a><a href="useredit.asp?userid=<%=rs("user")%>" target="_blank"><%=rs("user")%></a></td>
  116.       <td width="91" class="tdbg"><div align="center"></div></td>
  117.     </tr>
  118.     <tr> 
  119.       <td width="93" height="11" class="tdbg"> <p align="center">内容:</td>
  120.       <td height="11" colspan="4" class="tdbg"><%=rs("conten")%></td>
  121.     </tr>
  122.   </table>
  123.   <% i=i+1
  124.       if i>=MaxPerPage then exit do
  125.       rs.movenext
  126.    loop
  127.   %> <%
  128.    end sub 
  129. function showpage(totalnumber,maxperpage,filename)
  130.   dim n
  131.   if totalnumber mod maxperpage=0 then
  132.      n= totalnumber  maxperpage
  133.   else
  134.      n= totalnumber  maxperpage+1
  135.   end if
  136.   response.write "<form method=Post action="&filename&"?typeid="&typeid&">"
  137.     if CurrentPage<2 then
  138.     response.write "<font color='#000080'>首页 上一页</font>&nbsp;"
  139.   else
  140.     response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a>&nbsp;"
  141.     response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a>&nbsp;"
  142.   end if
  143.   if n-currentpage<1 then
  144.     response.write "<font color='#000080'>下一页 尾页</font>"
  145.   else
  146.     response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
  147.     response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
  148.   end if
  149.    response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
  150.     response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>个错误报告 <b>"&maxperpage&"</b>个报告/页</font> "
  151.    response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">"
  152.    response.write " <input class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form>"
  153.        
  154. end function
  155.     
  156.     rs.close
  157.     set rs=nothing  
  158.    conn.close
  159.    set conn=nothing
  160.   %>
  161.   <p></p>
  162. </center>
  163. </body>
  164. </html>