📄 film_edit.asp
字号:
<!--#include file="../film_conn.asp"-->
<!--#include file="session.asp"-->
<!--#include file="../set_url.asp"-->
<%
if session("flag")>2 then
response.write "<br><p align=center>您的操作权限不够!</p>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>修改电影</title>
</head>
<script language="javascript">
var onecount;
function CheckForm()
{
if (editor.EditMode.checked==true)
document.myform.Content.value=editor.HtmlEdit.document.body.innerText;
else
document.myform.Content.value=editor.HtmlEdit.document.body.innerHTML;
if (document.myform.Content.value=="")
{
alert("内容不能为空!");
editor.HtmlEdit.focus();
return false;
}
return true;
}
function loadForm()
{
editor.HtmlEdit.document.body.innerHTML=document.myform.Content.value;
return true
}
</script>
<body topmargin="20" leftmargin="15" bgcolor="#E8E8E8">
<form method="POST" action="<%=weburl%>/<%=adminurl%>/film_edit_save.asp?id=<%=request("id")%>" name="myform">
<center>
<table border="0" cellspacing="0" width="100%" bordercolorlight="#000000" bordercolordark="#FFFFFF" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
<tr bgcolor="#006cd9">
<td width="100%" height="20" bgcolor="#F7F7F7">
<p align="center"><b><font color="#000000">修改影片页</font></b></td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolorlight="#000000">
<%
dim sql
dim rs
sql="select * from learning where articleid="&request("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if weburl="" then response.end
%>
<tr><td><div align="center">
<center>
<table width="750" border="0" cellspacing="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111">
<tr><td colspan="3" height="10" bgcolor="#FFFFFF" width="746"> </td></tr>
<tr><td width="78" bgcolor="#FFFFFF">
<div align="center">影片名称:</div></td>
<td width="664" bgcolor="#FFFFFF" colspan="2">
<input type="text" name="titley" size="21" class="smallinput" maxlength="255" value="<%=rs("title")%>">
<font color="#FF0000" size="3">*</font><font color="#FF0000">支持htm</font></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">影片设置:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<select class="smallSel" name="typeid" size="1">
<%
dim rs1,sql1,sel
set rs1=server.createobject("adodb.recordset")
rs1.open "select * from type",conn,1,1
do while not rs1.eof%>
<option value="<%=rs1("type")%>" name="typeid" <% if rs("typeid")=rs1("type") then%> selected <%end if%>>
<%=rs1("type")%></option>
<%rs1.movenext
loop
rs1.close
set rs1=nothing
%></option></select><select size="1" name="where">
<option <%if rs("where")="大陆" then%> selected <%end if%> value="大陆">
大陆</option>
<option <%if rs("where")="台湾" then%> selected <%end if%> value="台湾">
台湾</option>
<option <%if rs("where")="香港" then%> selected <%end if%> value="香港">
香港</option>
<option <%if rs("where")="日韩" then%> selected <%end if%> value="日韩">
日本</option>
<option <%if rs("where")="韩国" then%> selected <%end if%> value="韩国">
韩国</option>
<option <%if rs("where")="欧美" then%> selected <%end if%> value="欧美">
欧美</option>
<option <%if rs("where")="其他" then%> selected <%end if%> value="其他">
其他</option>
</select><select size="1" name="softlevel">
<option value="1" <%if rs("softlevel")=1 then%> selected <%end if%>>
一星级</option>
<option value="2" <%if rs("softlevel")=2 then%> selected <%end if%>>
二星级</option>
<option value="3" <%if rs("softlevel")=3 then%> selected <%end if%>>
三星级</option>
<option value="4" <%if rs("softlevel")=4 then%> selected <%end if%>>
四星级</option>
<option value="5" <%if rs("softlevel")=5 then%> selected <%end if%>>
五星级</option>
</select><select size="1" name="canlook">
<option <%if rs("canlook")=1 then%> selected <%end if%> value="1">
普通影片</option>
<option <%if rs("canlook")=3 then%> selected <%end if%> value="3">
黄金影片</option>
<option <%if rs("canlook")=0 then%> selected <%end if%> value="0">
免费影片</option>
</select> <select size="1" name="serverip">
<%
set rs4=server.createobject("adodb.recordset")
rs4.open "select * from movie",conn,1,1
dim i
i=1
do while not rs4.eof
%>
<option value="<%=rs4("id")%>" <%if rs4("id")=rs("serverip") then%> selected <%end if%>>
第<%=i%>服务器</option>
<%
i=i+1
rs4.movenext
loop
rs4.close
set rs4=nothing
%></select></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">电影类型:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="radio" name="movietype" value="rm" <%if rs("movietype")="rm" then%> checked <% end if%>>
<img border="0" src="../IMG/real.gif" title="rm">
<input type="radio" name="movietype" value="md" <%if rs("movietype")="md" then%> checked <% end if%>>
<img border="0" src="../IMG/media.gif" title="md">
<input type="radio" value="mov" name="movietype" <%if rs("movietype")="mov" then%> checked <% end if%>>
<img border="0" src="../IMG/lookmov.gif" title="mov"> </td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">影片长度:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="text" name="howlong" size="4" class="smallinput" maxlength="255" value="<%=rs("howlong")%>"><span lang="en-us">
</span>分种</td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">影片导演:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="text" name="dy" size="50" class="smallinput" maxlength="255" value="<%=rs("dy")%>"></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">影片主演:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="text" name="namef" size="50" class="smallinput" maxlength="255" value="<%=rs("name")%>"></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<div align="center">
缩图地址:
</div>
</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="text" name="domurl" size="50" class="smallinput" maxlength="255" value="<%=rs("domurl")%>"><font color="#FF0000" size="3">*</font></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">图片地址:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="text" name="url" size="50" class="smallinput" maxlength="255" value="<%=rs("url")%>"><font color="#FF0000" size="3">*</font></td>
</tr>
<tr>
<%set rs1=server.createobject("adodb.recordset")
sql="select * from movie where id="&rs("serverip")
rs1.open sql,conn,1,1
%>
<td width="78" bgcolor="#FFFFFF">
<p align="center">开放方式:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="checkbox" name="onlinelook" value="1" <% if rs("onlinelook")=1 then%> checked <%end if%>>在线观看<input type="checkbox" name="down" value="1" <% if rs("down")=1 then%> checked <%end if%>>影片下载</td>
</tr>
<%
sql="select * from movieurl where nameid='"&request("id")&"'"
set rsurl=server.createobject("adodb.recordset")
rsurl.open sql,conn,1,1
%>
<tr>
<td width="78" bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<%if rsurl.bof and rsurl.eof then
response.write "<font color='#ffffff'>没有影片提供观看</font>"
else
no=rsurl.recordcount
%> </td>
</tr>
<%for i=1 to no
%>
<tr>
<td width="78" bgcolor="#FFFFFF">地址></td>
<td bgcolor="#FFFFFF" width="664" colspan="2">在线<%=rs1("ipsip")%> 下载<%=rs1("movie")%><input type="text" name="url<%=i%>" class="button" style="border-style: solid; border-width: 1; padding-left: 1pt" size="17" value="<%=rsurl("url")%>">
第<%=i%>集 <a href="film_url_del.asp?id=<%=rsurl("id")%>">
<font color="#FF0000">删除</font></a></td>
</tr>
<%
rsurl.movenext
next
end if
rsurl.close
set rsurl=nothing
%>
<tr>
<td width="78" bgcolor="#FFFFFF">增加影片:</td>
<td width="335" bgcolor="#FFFFFF">
<p align="left">在线<%=rs1("ipsip")%> 下载<%=rs1("movie")%></td>
</td>
<td width="325" bgcolor="#FFFFFF"><p align="left"><iframe width="179" height="22" noresize target="main" border="0" rows="64,*" frameborder="0" scrolling="no" framespacing="0" src="film_url_add_1.asp?id=<%=request("id")%>"></iframe></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<div align="center">
影片简介:</div>
</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<textarea rows="13" name="Contentl" cols="68"><%Content=replace(rs("Content"),"<br>",vbcrlf)
response.write content%></textarea></td>
</tr>
<tr>
<td width="78" bgcolor="#FFFFFF">
<p align="center">是否推荐:</td>
<td bgcolor="#FFFFFF" width="664" colspan="2">
<input type="radio" name="best" value="1" <%if rs("best")=true then%> checked <%end if%>>
是
<input type="radio" name="best" value="0" <%if rs("best")<>true then%> checked <%end if%>>
否<input type="hidden" name="no" value="<%=no%>"></td>
</tr>
<tr>
<td colspan="3" height="10" width="746"> </td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
<p><input type="submit" value=" 修 改 " name="cmdok" class="buttonface">
<input type="reset" value=" 复 原 " name="cmdcancel" class="buttonface"></p>
</center>
</form>
<p align="center">以上代 <font color="#FF0000" size="3">*</font> 为必填写</p>
</body>
</html>
<%
rs1.close
set rs1=nothing
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -