1、采用4.5修改而成。 2、添加了求片区

源代码在线查看: eoff.asp

软件大小: 5418 K
上传用户: haoding306
关键词: 4.5 修改
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				
				
				
				
				
				
				flash管理页
				
								.样式1 {
					color: #345b9c;
					font-weight: bold;
				}
				.样式2 {
					color: #FF0000;
					font-weight: bold;
					font-size: 9pt;
				}
				.样式3 {font-size: 9pt}
				body,td,th {
					font-size: 9pt;
				}
				-->
				
				
				
				
				
								align=center border=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=""
				   end if
				   if request("page")="" then
				   page=0
				   end if
				%> 
								sql="select * from totalk 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 " 还 没 有 任 何 报 告"
				   else
					  totalPut=rs.recordcount
				      totalPut=rs.recordcount
				      if currentpage				          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,"eoff.asp"
				            showContent
				            showpage totalput,MaxPerPage,"eoff.asp"
				       else
				          if (currentPage-1)*MaxPerPage				            rs.move  (currentPage-1)*MaxPerPage
				            dim bookmark
				            bookmark=rs.bookmark
				           showpage totalput,MaxPerPage,"eoff.asp"
				            showContent
				             showpage totalput,MaxPerPage,"eoff.asp"
				        else
					        currentPage=1
				           showpage totalput,MaxPerPage,"eoff.asp"
				           showContent
				           showpage totalput,MaxPerPage,"eoff.asp"
					      end if
					   end if
				   end if
					        
				
				  
				
				   sub showContent
				       dim i
					   i=0
				
				  %>
				
				
				  影片错误报告区 
				  删除两天前的数据 
				  
				
				
				  
				          清错
				  
				  
				    
				    报告时间:
				    
				    错误原因:
				    
				  
				
									      if i>=MaxPerPage then exit do
					      rs.movenext
					   loop
						  %>
								if action="del" then
				url=request.ServerVariables("HTTP_REFERER")
				id=cint(request.querystring("id"))
				conn.execute("delete from totalk where id="&id)
				response.redirect url   	
				end if%>
								   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 ""
				    if CurrentPage				    response.write "首页 上一页 "
				  else
				    response.write "首页 "
				    response.write "上一页 "
				  end if
				  if n-currentpage				    response.write "下一页 尾页"
				  else
				    response.write ""
				    response.write "下一页 尾页"
				  end if
				   response.write " 页次:"&CurrentPage&"/"&n&"页 "
				    response.write " 共"&totalnumber&"个错误报告 "&maxperpage&"个报告/页 "
				   response.write " 转到:"
				   response.write " "
				       
				end function
				    
				    rs.close
				    set rs=nothing  
				   conn.close
				   set conn=nothing
				  %>
				
				
				
				
				
				
							

相关资源