千年免费电影系统 V3.0版 在程序上借鉴了很多优秀电影系统的功能

源代码在线查看: managebbs.asp

软件大小: 2720 K
上传用户: liyusheng1983
关键词: 3.0 电影
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				
				1 then
				    response.write "alert('您的操作权限不够!');history.back();"
				    response.end
				end if
				%>
				
				
				
				
				
				
				
				
				
				
				
								.样式1 {color: #FFFFFF}
				-->
				
				
				
				function popwin2(id,path)
				{		window.open("openarticle.asp?id="+id+"&ppath="+path,"","height=500,width=600,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes");
				}
				
				
				
								   dim rs
				   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 rstype
				   dim typesql
				   dim typeid,typename1
				   if not isEmpty(Replace(request("typeid"), "'", "''")) then
					typeid=Replace(request("typeid"), "'", "''")
				   else
					typeid=0
				   end if
				  
				%>
				
				
				  				 sql="select articleid,title,dateandtime,review from learning  order by dateandtime desc" 
				 else 
				  sql="select articleid,title,dateandtime,review from learning where title like  '%"&request("name23")&"%' order by dateandtime desc" 
				  end if
				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,"managebbs.asp" 
				            showContent 
				            showpage totalput,MaxPerPage,"managebbs.asp" 
				       else 
				          if (currentPage-1)*MaxPerPage				            rs.move  (currentPage-1)*MaxPerPage 
				            dim bookmark 
				            bookmark=rs.bookmark 
				           showpage totalput,MaxPerPage,"managebbs.asp" 
				            showContent 
				             showpage totalput,MaxPerPage,"managebbs.asp" 
				        else 
					        currentPage=1 
				           showpage totalput,MaxPerPage,"managebbs.asp" 
				           showContent 
				           showpage totalput,MaxPerPage,"managebbs.asp" 
					      end if 
					   end if 
				   end if  
				 
				   sub showContent 
				       dim i 
					   i=0 
				 
				  %>
				  
				  
				    
				      按电影名查询
				          
				          
				            只显示有评论的电影  
				    
				  
				
				
				  
				    
				  
				
				
				  
				    
				      ID号
				      电影名称
				      修改
				      删除
				    
					  
				     
				       
				      · 相关评论
				      修改
				     
				          删除          
				    
					 					      if i>=20 then exit do 
					      rs.movenext 
					   loop 
						  %>
				  
				  				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
				%>
				  
				    
				      
				        
				          
				            共有部   当前:第页/共页
				          
				        
				            				            首页 上一页   
				            
				            首页  上一页   
				            				end if
				if n-currentpage				%>
				            下一页 尾页   
				            
				            下一页  尾页 
				            
				          
				         
				      
				    
									end function
				%>
								sub gotopage
				end sub
				%>
				  
				  
				
								   set rs=nothing   
				   conn.close 
				   set conn=nothing %>
				
				
				
							

相关资源