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

📄 admin_dj.asp

📁 网站整站
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/set.asp"-->
<!--#include file="inc/adminfunction.asp"-->
<%
call hacker()
call checkadmin("dj")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="STYLESHEET" type="text/css" href="img/admin.css">
<script type='text/javascript' language='javascript' src='inc/adminjs.js'></script>
</head>
<body style="padding:0;margin:0">
<%call titlecolor()%> 
<table width="100%"  border="0" cellpadding="0" cellspacing="0" rules=none class=3d><tr class="bg"  height="22"><td>&nbsp;<img src=img/admin.gif border=0 width=15 height=15 align=absMiddle>&nbsp;<a href="admin_dj.asp?action=type">分类管理</a>&nbsp;<a href="admin_dj.asp?action=addtype">添加分类</a>&nbsp;<a href="admin_dj.asp">娱乐管理</a>&nbsp;<a href="admin_dj.asp?action=add">添加娱乐</a>&nbsp;<a href=admin_dj.asp?error=error>错误报告管理</a>&nbsp;<a href="html/buy.htm" target="ddd">批量上传文件</a></td></tr></table>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=updj style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(updj)" style="cursor:move" height=22><td colspan="2" class=uptitle><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;上传娱乐文件</b>
<img onclick="document.all.updj.style.display=(document.all.updj.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class=bg>
<td align=center height=60>
<iframe frameborder=0 width=290 height=35 scrolling=no src="up.asp?action=dj"></iframe>
<div id="url" style="width:250px">这里显示上传路径……</div>
</td>
</tr>
</table>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=updjlcr style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(updjlcr)" style="cursor:move" height=22><td colspan="2" class=uptitle><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;上传娱乐娱乐歌词(支持TXT)</b>
<img onclick="document.all.updjlcr.style.display=(document.all.updjlcr.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class=bg>
<td align=center height=60>
<iframe frameborder=0 width=290 height=35 scrolling=no src="up.asp?action=djlcr"></iframe>
<div id="lcr" style="width:250px">这里显示娱乐歌词路径……</div>
</td>
</tr>
</table>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=updjpic style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(updjpic)" style="cursor:move" height=22><td colspan="2" class=uptitle><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;上传娱乐图片</b>
<img onclick="document.all.updjpic.style.display=(document.all.updjpic.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class=bg>
<td align=center height=30><iframe frameborder=0 width=290 height=35 scrolling=no src="up.asp?action=djpic"></iframe>
</td>
</tr>
</table>
<%
select case request("action")
case "goerrorok" 
conn.execute("UPDATE [YC_dj] SET error='0'")
response.Write"<script>alert('您已经成功的把所有报错的娱乐修复完毕了!');this.location.href='admin_dj.asp';</script>"
response.end
case"eok"
conn.execute("UPDATE [YC_dj] SET error=0 where id="&request.querystring("id")&"")
response.write"<script>location.href='admin_dj.asp';</script>"
case"delnopass"
user=request.querystring("user")
id=request.querystring("id")
conn.execute("update YC_user set user_money=user_money-10,user_all=user_all-1 where user_name="""&user&"""")
Conn.Execute("Delete * From YC_dj Where id="&id&"")
response.write"<script>location.href='admin_dj.asp';</script>"
case"type"
call alltype("YC_djclass","娱乐")
case"edittype"
call edittype("YC_djclass",request("id"))
case"edittypename"
call submittype("YC_djclass",request("id"),request("classname"))
case"addtype"
call addtype()
case"addtypeok"
call addtypeok("YC_djclass",request("classname"))
case"addtype2"
call addtype2(request("id"))
case"addtype2ok"
call addtype2ok("YC_djclass",request("classname"),request("id"))
case"deltype"
call deltype("YC_djclass",request("id"))
case "list" 		
call list()
case "add"%>
<script language="javascript">
function chk(){
if(document.form.title.value==""){
alert("娱乐标题不能为空");
document.form.title.focus();
return false;}
if(IframeID.document.body.innerHTML==""){
alert("娱乐内容不能为空");
IframeID.document.body.focus();
return false;}
return true;}
</Script>

<form method="post" name="form" id="form" onsubmit="return chk();" action="?action=addok" onkeydown="event.ctrlKey&& event.keyCode==13">
<table width="250" align=center border="0" cellpadding="0" cellspacing="0" rules=none class="3d"  id=mydj style="position:absolute;left:500;top:60;display:none">
<tr onmousedown="MDown(mydj)" style="cursor:move" height=22><td colspan="2" class=uptitle><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;设置多个娱乐集数</b>
<img onclick="document.all.mydj.style.display=(document.all.mydj.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class=bg>
<td><br />
&nbsp;娱乐前缀:<input type="text" name="t1" value="up/dj/" size="20" class="yecao"><br />
&nbsp;娱乐集数:<input type="text" name="no" class="yecao" value="1" size="20"><br />
&nbsp;娱乐格式:<input type="text" name="t2" value=".rmvb" size="20" class="yecao"><br />
&nbsp;播&nbsp;放&nbsp;器:<select name="ppp"><option value="1">①media视听</option><option value="2">②media视频</option><option value="3">③real视听</option><option value="4">④real视频</option><option value="5">⑤FLASH</option></select><br /><br /><center>
<button  class="button" onclick="seturl();">马 上 设 定</button><br /><br /></center>
</td>
</tr>
</table>
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d>
<tr class="title"  height="22"><td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;发布娱乐&nbsp;[发布人:<%if superuser="" then YC("您已经超时!") else YC(superuser) end if%>]</b></td></tr>	
<tr class=bg height="25"><td>&nbsp;娱乐名称:<input name="title" type="text" size="20" put="0" 
onmouseover='this.className="overput";' 
onmouseout='if (this.put=="0")this.className="put";'
onclick="document.getElementByid("code").style.display='';"
onblur='this.className="put";this.put="0";' 
onfocus='this.className="overput";this.put="1";' class="put" style="width:200px"><%call addcolor()%></td></tr>
<tr class=bg height="25"><td>&nbsp;娱乐作者:<input name="singer" type="text" id="singer" size="20" put="0" 
onmouseover='this.className="overput";' 
onmouseout='if (this.put=="0")this.className="put";'
onclick="document.getElementByid("code").style.display='';"
onblur='this.className="put";this.put="0";' 
onfocus='this.className="overput";this.put="1";' class="put" style="width:200px" value="未知">&nbsp;<a onClick="singer.value='未知'" href="#">未知</a>&nbsp;<a href="#" onClick="singer.value='网络'">网络</a>&nbsp;<a onClick="singer.value='<%=webceo%>'" href="#"><%=webceo%></a></td></tr>
<tr height="25" class=bg><td>&nbsp;娱乐缩图:<input name="pic" type="text" id="pic" put="0" 
onmouseover='this.className="overput";' 
onmouseout='if (this.put=="0")this.className="put";'
onclick="document.getElementByid("code").style.display='';"
onblur='this.className="put";this.put="0";' 
onfocus='this.className="overput";this.put="1";' class="put" style="width:200px">&nbsp;<button onclick="document.all.updjpic.style.display=(document.all.updjpic.style.display=='none')?'':'none'" class=button>上传娱乐缩图</button></td></tr>
<tr class=bg height="25"><td>&nbsp;娱乐分类:<%call newclass("YC_djclass")%>&nbsp;<button onclick="document.all.updj.style.display=(document.all.updj.style.display=='none')?'':'none'" class=button>上传娱乐文件</button>&nbsp;<button onclick="document.all.updjlcr.style.display=(document.all.updjlcr.style.display=='none')?'':'none'" class=button>上传娱乐歌词</button></td></tr>
<tr class=bg height="25"><td>&nbsp;推荐程度:<select name="commend" class="yecao" class=yecao style="width:200px">
<option value="★☆☆☆☆">[一星级]★☆☆☆☆</option>
<option value="★★☆☆☆">[二星级]★★☆☆☆</option>
<option value="★★★☆☆" selected>[三星级]★★★☆☆</option>
<option value="★★★★☆">[四星级]★★★★☆</option>
<option value="★★★★★">[五星级]★★★★★</option>
</select>&nbsp;

<button onclick="document.all.mydj.style.display=(document.all.mydj.style.display=='none')?'':'none'" class=button>设置多个娱乐</button>

</td></tr>
<script language=javascript>
<!--
function seturl()
{
	var str="";
	var temname1=form.t1.value
	var temname2=form.t2.value
		if(window.form.no.value<=0){
alert('您还没有添加数量呢?嘿嘿!');
   return false;}
    var pp=form.ppp.options[form.ppp.selectedIndex].value
	if (!window.form.no.value) window.form.no.value=1;
	for(i=1;i<=window.form.no.value;i++)
	{
	str+='<INPUT TYPE="hidden" NAME="no'+i+'" value="'+i+'">&nbsp;娱乐标题:<input type=text name="urltitle'+i+'" style="width:200px" maxlength=20 value="第'+i+'集" onMouseOver="this.focus()" class="yecao" onFocus="this.select()" />&nbsp;播&nbsp;放&nbsp;器:<input type="text" name="player'+i+'" value="'+pp+'" onMouseOver="this.focus()" class="yecao" onFocus="this.select()" style="text-align:center;width:102px" /><br />&nbsp;娱乐地址:<input type=text name="url'+i+'" class="yecao" size="50" value="'+temname1+i+temname2+'" maxlength="255" onMouseOver="this.focus()" onFocus="this.select()" style="width:368px" /><br />&nbsp;娱乐歌词:<input type=text name="lcr'+i+'" class="jinzhe" size="50" value="" maxlength="255" onMouseOver="this.focus()" onFocus="this.select()" style="width:368px" /><br />';
	}
	window.addid.innerHTML=str;
}
-->
</script>
<tr><td class="hr"></td></tr>
<tr><td id="addid" style="padding:2px;background:#efefef">
&nbsp;娱乐标题:<input type=text name="urltitle1" style="width:200px" maxlength=20 value="" put="0" 
onmouseover='this.className="overput";' 
onmouseout='if (this.put=="0")this.className="put";'
onclick="document.getElementByid("code").style.display='';"
onblur='this.className="put";this.put="0";' 
onfocus='this.className="overput";this.put="1";' class="put">&nbsp;播&nbsp;放&nbsp;器:<select name="player1"><option value="1">①media视听</option><option value="2">②media视频</option><option value="3">③real视听</option><option value="4">④real视频</option><option value="5">⑤FLASH</option></select><br />
&nbsp;娱乐地址:<input type="text" name="url1" put="0" 
onmouseover='this.className="overput";' 
onmouseout='if (this.put=="0")this.className="put";'
onclick="document.getElementByid("code").style.display='';"
onblur='this.className="put";this.put="0";' 
onfocus='this.className="overput";this.put="1";' class="put" style="width:368px" value=""><br />
&nbsp;娱乐歌词:<input put="0" 
onmouseover='this.className="overput";' 
onmouseout='if (this.put=="0")this.className="put";'
onclick="document.getElementByid("code").style.display='';"
onblur='this.className="put";this.put="0";' 
onfocus='this.className="overput";this.put="1";' class="put" type="text" name="lcr1"  style="width:368px" value=""><br />
<input name="no1" type="hidden" value="1">
</td></tr>
<tr><td class="hr"></td></tr>
<tr height="25" class=bg><td>&nbsp;查看权限:<input name="reads" type="radio" value="0" checked>&nbsp;访问游客&nbsp;<input name="reads" type="radio" value="1">&nbsp;普通用户&nbsp;<input name="reads" type="radio" value="2">&nbsp;收费用户&nbsp;积分:<input name="exper" type="text" class="yecao" style="width:30px" value="0"></td></tr>
<tr><td><textarea name="content" id="content" style="display:none">暂时没有说明!</textarea>
<iframe ID="HtmlEditor1" src='html/index.asp' frameborder=0 scrolling=no width='100%' HEIGHT='350'></iframe></td></tr>
<tr><td class="hr"></td></tr>
<tr height="30" class=foot><td  align="center">
<input name="best" type="checkbox"  id="best" value="1" /> 推荐
<input name="new" type="submit" class="adminbutton" id="new" value="发 布">&nbsp;<input name="Submit2" type="reset" class="adminbutton" value="清 空" onclick="ClearReset()">
<input name="pass" type="checkbox"  id="pass" value="1" checked /> 通过
</td></tr>
</table> 
</form>
<%
'◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆
'◇功  能:处理添加记录            ◆
'◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇
case "addok"
if request.form("title")="" then
response.write"<script>alert('标题不能为空哦!下次记得哦!');history.back()</script>"
response.end
end if
if request.form("no")="" then
response.write"<script>alert('怎么这么不小心!影片集数也要添的!好入帐嘛!');history.back()</script>"
response.end
end if
for j=1 to int(request.form("no"))+int(request("count"))
if request.form("url"&j)="" and request.form("player"&j)="" and request.form("urltitle"&j)="" then
response.write"<script>alert('既然你设置了!就要全部添完!');history.back()</script>"
response.end
end if
next
if cint(request.Form("class"))="" then
response.write"<script>alert('请选择分类!若没有请添加!');history.back()</script>"
response.end
end if
set rs7=server.CreateObject("adodb.recordset")
sql7="select * from [YC_djclass] where id="&Cint(Trim(request.Form("class")))
rs7.open sql7,conn,1,1
set rs=server.CreateObject("adodb.recordset")
rs.open "YC_dj",conn,1,3

⌨️ 快捷键说明

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