⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 type.asp

📁 电视直播源码程序 说明: 1、p2p电视台只能添加一个播放地址
💻 ASP
字号:
<!--#include file="Conn.Asp"-->
<%
if request("admin") = "del" Then
lid=request("id")
if isnumeric(lid)=false then
response.write "<script>alert('参数错误,关闭窗口!');window.opener=null;window.close();</script>"
response.end
end if
sql="select * from data where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
if not rs.eof then
rs.delete
rs.update
response.write "<script language=javascript>alert('删除成功!');this.top.location.href='javascript:history.back(-1)';</script>';"
end if 
end if
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE><%=webname%> - 频道分类列表</TITLE>
<BODY onmouseup=document.selection.empty() oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty() leftMargin=0 topMargin=0 onselect=document.selection.empty()>

<style type="text/css">BODY {
	SCROLLBAR-FACE-COLOR: #009ace; FONT-SIZE: 12px; SCROLLBAR-HIGHLIGHT-COLOR: #b8e9fa; SCROLLBAR-SHADOW-COLOR: #009aaa; COLOR: #a9c8e4;  SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #cccccc; FONT-FAMILY: 宋体,Arial,Verdana ;  BACKGROUND-COLOR: #1a2942
}
TD {
	FONT-SIZE: 12px; COLOR: #a9c8e4; LINE-HEIGHT: 140%
}

A:link {
	COLOR: #a9c8e4; TEXT-DECORATION: none
}
A:visited {
	COLOR: #a9c8e4; TEXT-DECORATION: none
}
A:active {
	COLOR: #a9c8e4; TEXT-DECORATION: none
}
A:hover {
	COLOR: #00FF00; TEXT-DECORATION: underline
}
</style>
<%
Response.Expires=0 
Response.Expiresabsolute=Now()-1 
Response.AddHeader "pragma","no-cache" 
Response.AddHeader "cache-control","private" 
Response.CacheControl="no-cache"
from_url=Cstr(Request.ServerVariables("HTTP_REFERER"))
serv_url=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(From_url,8,len(Serv_url)) <> Serv_url then
response.redirect "Index.asp"
response.end
end if
theitem=request("item")
if request("item")=false then
response.redirect "?Item=中央电视台"
end if
sql="select * from data where item='"&theitem&"' and yesno='1' order by hits desc"               
set rs=server.createobject("adodb.recordset")               
rs.open sql,connstr,1,1              
if rs.eof then                          
response.write "<p align=center><font color=#FF0000>暂时没有任何频道!</font></p>"  
else            
const maxperpage=10000               
dim currentpage               
rs.pagesize=maxperpage               
currentpage=request.querystring("pageid")               
if currentpage="" then               
currentpage=1               
elseif currentpage<1 then               
currentpage=1               
else               
currentpage=clng(currentpage)               
	if currentpage > rs.pagecount then               
	currentpage=rs.pagecount               
	end if               
end if               
if not isnumeric(currentpage) then               
currentpage=1               
end if               
dim totalput,n               
totalput=rs.recordcount               
if totalput mod maxperpage=0 then               
n=totalput\maxperpage               
else               
n=totalput\maxperpage+1               
end if               
if n=0 then               
n=1               
end if               
rs.move(currentpage-1)*maxperpage    
i=0                                  
do while i< maxperpage and not rs.eof                                   
%>
<body><DIV align=center><TABLE cellSpacing=1 cellPadding=0 width=183 border=0><TR><TD colSpan=2 height=5>

</TD><tr><TD vAlign=top width=5 height=10>

<li><TD width=142 height=20>                       
<a href="Play.Asp?Id=<%=rs("id")%>" target="play"><%=rs("name")%></a><% if session("admin")<>"" then %><A href=admin.asp?admin=edit&id=<%=rs("id")%> target="play"><font color="#008000">修改</font></a>&nbsp;<A onClick="return confirm('确认要删除吗?');" href="?admin=del&id=<%=rs("id")%>&tv=<%=rs("name")%>"><font color="#FF0000">删除</font></a>&nbsp;<% if rs("yesno")="0" then %><br><font color="#bb0000">隐藏频道(ID:<%=rs("id")%>)</font><%end if%><%end if%>
</font></TD></tr>            
<%                                                                                                      
i=i+1                                                                                    
rs.movenext                                                                                       
loop                                                                                                              
end if                
set rs=nothing                                                                  
k=currentpage                                                                                               
if k<>1 then
else 
end if
%>                                                                             
</BODY>
</HTML>                                                                                  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -