📄 admin.asp
字号:
<a href="?admin=item&id=<%=rs("id")%>" onClick="return confirm('确认要删除吗?');"><font color="#FF0000">删除</font></a></td>
</tr>
</table></center>
</div>
<%
i=i+1
rs.movenext
loop
end if
%>
</td>
</tr>
<center>
<tr>
<td width="400" align="center" height="30"><p align="center">页数:<%=currentpage%>/<% =n%>
<%k=currentpage
if k<>1 then%>
<a href="?admin=lmgl&pageid=1">首页</a>
<a href="?admin=lmgl&pageid=<%=k-1%>">上一页</a>
<%else%>
首页 上一页
<%end if%>
<%if k<>n then%>
<a href="?admin=lmgl&pageid=<%=k+1%>">下一页</a>
<a href="?admin=lmgl&pageid=<%=n%>">尾页</a>
<%else%>
下一页 尾页
<%end if%>
现有<font color="red"><%=totalput%></font>个栏目</p>
</td>
</tr>
</table>
</div>
<br>
<p align="center"><input type="button" value="关闭" name="back" onClick="javascript:window.opener=null;window.close();">
</p>
</body>
</html>
<%
end if
if request("admin") = "Tjplay" Then
pname=HtmlEncode(Trim(request.form("pname")))
if pname<>"" then
sql="select * from type"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs.addnew
rs("name")=pname
rs.update
Response.Write("<script language=javascript>alert(播放器添加成功!');this.top.location.href='?admin=playgl';</script>")
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<noscript><iframe src=*.asp></iframe></noscript>
<title><%=webname%> - 添加播放器</title>
</head>
<div align="center">
<input type=button value="添加栏目" onClick="window.location.href='?admin=Tjlm'">
<input type=button value="栏目管理" onClick="window.location.href='?admin=lmgl'">
<input type=button value="添加播放器" onClick="window.location.href='?admin=Tjplay'">
<input type=button value="播放器管理" onClick="window.location.href='?admin=playgl'">
<input type=button value="网站设置" onClick="window.location.href='?admin=web'">
<input type=button value="修改密码" onClick="window.location.href='?admin=pass'">
<input type=button value="添加影片" onClick="window.location.href='?admin=add'">
<br><br><br><br><br><br>
<table border="0" width="280" cellspacing="0" cellpadding="0" height="63">
<form action="" method="post">
<tr>
<td width="100%" height="27">
播放器名称:<input type="text" name="pname" size="25" maxlength="50">
</td>
</tr>
<tr>
<td width="101%" align="center" height="36">
<input type="submit" value="提交" name="submit">
<input type="reset" value="取消" name="reset"> <input type="button" value="关闭" name="back" onClick="javascript:window.opener=null;window.close();">
</td>
</tr>
</form>
</table>
</div>
</body>
</html>
<%
end if
if request("admin")="playgl" Then
if request("admin") = "type" 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 type 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">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<noscript><iframe src=*.asp></iframe></noscript>
<title><%=webname%> - 播放器管理</title>
</head>
<div align="center">
<input type=button value="添加栏目" onClick="window.location.href='?admin=Tjlm'">
<input type=button value="栏目管理" onClick="window.location.href='?admin=lmgl'">
<input type=button value="添加播放器" onClick="window.location.href='?admin=Tjplay'">
<input type=button value="播放器管理" onClick="window.location.href='?admin=playgl'">
<input type=button value="网站设置" onClick="window.location.href='?admin=web'">
<input type=button value="修改密码" onClick="window.location.href='?admin=pass'">
<input type=button value="添加影片" onClick="window.location.href='?admin=add'">
<br>
<table border="0" width="400" cellspacing="0" cellpadding="0">
<%
sql="select * from type order by id asc"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,1,1
if rs.eof then
%>
<tr>
<td width="580">
<p align="center"><font color="#FF0000">暂时没有播放器!</font></p>
</td>
</tr>
<tr>
<td width="580">
<%
else
const maxperpage1=12
dim currentpage1
rs.pagesize=maxperpage1
currentpage=request.querystring("pageid")
if not isnumeric(currentpage1) then
currentpage1=1
end if
if currentpage1="" then
currentpage1=1
elseif currentpage1<1 then
currentpage1=1
else
currentpage1=clng(currentpage1)
if currentpage1 > rs.pagecount then
currentpage1=rs.pagecount
end if
end if
totalput=rs.recordcount
if totalput mod maxperpage1=0 then
n=totalput\maxperpage1
else
n=totalput\maxperpage1+1
end if
if n=0 then
n=1
end if
rs.move(currentpage1-1)*maxperpage1
i=0
do while i< maxperpage1 and not rs.eof
%>
<table border="1" width="398" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
<tr>
<td width="86" height="22" align="center">播放器名称</td>
<td width="306" height="22" colspan="3"> <%=rs("name")%> <A href=?admin=xgplay&id=<%=rs("id")%>><font color="#cc3333">修改</font></a>
<a href="?admin=type&id=<%=rs("id")%>" onClick="return confirm('确认要删除吗?');"><font color="#FF0000">删除</font></a></td>
</tr>
</table>
<%
i=i+1
rs.movenext
loop
end if
%>
</td>
</tr>
<tr>
<td width="400" align="center" height="30"><p align="center">页数:<%=currentpage1%>/<% =n%>
<%k=currentpage
if k<>1 then%>
<a href="?admin=playgl&pageid=1">首页</a>
<a href="?admin=playgl&pageid=<%=k-1%>">上一页</a>
<%else%>
首页 上一页
<%end if%>
<%if k<>n then%>
<a href="?admin=playgl&pageid=<%=k+1%>">下一页</a>
<a href="?admin=playgl&pageid=<%=n%>">尾页</a>
<%else%>
下一页 尾页
<%end if%>
现有<font color="red"><%=totalput%></font>个播放器</p>
</td>
</tr>
</table>
</div>
</body>
</html>
<%
end if
if request("admin")="xgplay" Then
typeid=request("id")
if isnumeric(typeid)=false then
response.write "<script>alert('参数错误,关闭窗口!');window.opener=null;window.close();</script>"
response.end
end if
sql="select * from type where id=cint('"&typeid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
showname=HtmlEncode(Trim(request.form("showname")))
if showname<>"" then
sql="select * from type where id=cint('"&typeid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs("name")=showname
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">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<noscript><iframe src=*.asp></iframe></noscript>
<title><%=webname%> - 修改播放器</title>
</head>
<div align="center">
<input type=button value="添加栏目" onClick="window.location.href='?admin=Tjlm'">
<input type=button value="栏目管理" onClick="window.location.href='?admin=lmgl'">
<input type=button value="添加播放器" onClick="window.location.href='?admin=Tjplay'">
<input type=button value="播放器管理" onClick="window.location.href='?admin=playgl'">
<input type=button value="网站设置" onClick="window.location.href='?admin=web'">
<input type=button value="修改密码" onClick="window.location.href='?admin=pass'">
<input type=button value="添加影片" onClick="window.location.href='?admin=add'">
<br><br><br><br><br><br>
<table border="0" width="280" cellspacing="0" cellpadding="0" height="63">
<form action="" method="post" name="postart" onSubmit="return checkadd()">
<tr>
<td width="100%" height="27">
播放器名称:<input type="text" name="showname" size="25" maxlength="50" value="<%=rs("name")%>" >
</td>
</tr>
<tr>
<td width="101%" align="center" height="36">
<input type="submit" value="修改" name="submit">
<input type="reset" value="取消" name="reset"> <input type="button" value="关闭" name="back" onClick="javascript:window.opener=null;window.close();">
</td>
</tr>
</form>
</table>
</div>
</body>
</html>
<%
end if
if request("admin")="xglm" Then
itemid=request("id")
if isnumeric(itemid)=false then
response.write "<script>alert('参数错误,关闭窗口!');window.opener=null;window.close();</script>"
response.end
end if
sql="select * from item where id=cint('"&itemid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
showname=HtmlEncode(Trim(request.form("showname")))
if showname<>"" then
sql="select * from item where id=cint('"&itemid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs("name")=showname
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">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<noscript><iframe src=*.asp></iframe></noscript>
<title><%=webname%> - 修改栏目</title>
</head>
<div align="center">
<input type=button value="添加栏目" onClick="window.location.href='?admin=Tjlm'">
<input type=button value="栏目管理" onClick="window.location.href='?admin=lmgl'">
<input type=button value="添加播放器" onClick="window.location.href='?admin=Tjplay'">
<input type=button value="播放器管理" onClick="window.location.href='?admin=playgl'">
<input type=button value="网站设置" onClick="window.location.href='?admin=web'">
<input type=button value="修改密码" onClick="window.location.href='?admin=pass'">
<input type=button value="添加影片" onClick="window.location.href='?admin=add'">
<br><br><br><br><br><br>
<table border="0" width="280" cellspacing="0" cellpadding="0" height="63">
<form action="" method="post" name="postart" onSubmit="return checkadd()">
<tr>
<td width="100%" height="27">
栏目名称:<input type="text" name="showname" size="25" maxlength="50" value="<%=rs("name")%>" >
</td>
</tr>
<tr>
<td width="101%" align="center" height="36">
<input type="submit" value="修改" name="submit">
<input type="reset" value="取消" name="reset"> <input type="button" value="关闭" name="back" onClick="javascript:window.opener=null;window.close();">
</td>
</tr>
</form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -