📄 film_add.asp
字号:
<!--#include file="chklogin.asp"-->
<%
call myobj.chkrq()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>增加新影片</title>
<link href="images/style2.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.style1 {color: #FF0000}
-->
</style>
<script language="javascript">
function setid()
{
str='';
if(!window.form1.no2.value)
window.form1.no2.value=1;
for(i=1;i<=window.form1.no2.value;i++)
{
if(window.form1.no2.value<2)
{
str+='全集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+''+window.form1.no3.value+'"><BR>';
}
else if(window.form1.no2.value<10)
{
str+='第'+i+'集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+'/0'+i+''+window.form1.no3.value+'"><BR>';
}
else if(window.form1.no2.value<100)
{
if(i<10)
{
str+='第'+i+'集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+'/0'+i+''+window.form1.no3.value+'"><BR>';
}
else
{
str+='第'+i+'集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+'/'+i+''+window.form1.no3.value+'"><BR>';
}
}
else if(window.form1.no2.value<1000)
{
if(i<10)
{
str+='第'+i+'集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+'/'+'00'+i+''+window.form1.no3.value+'"><BR>';
}
else if(i<100)
{
str+='第'+i+'集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+'/'+'0'+i+''+window.form1.no3.value+'"><BR>';
}
else
{
str+='第'+i+'集:<input type="text" name="urla'+i+'" size="40" class="input1" value="'+window.form1.no1.value+'/'+i+''+window.form1.no3.value+'"><BR>';
}
}
}
window.upid.innerHTML=str+'<br>';
}
</script>
<script language="javascript" SRC="getpy.js"></script>
<script language="javascript">
function getrandom(len)
{
var seed = new Array(
'abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'0123456789'
);
var idx,i;
var result = '';
for (i=0; i<len; i++)
{
idx = Math.floor(Math.random()*3); //此处的3定义上方可用字符串的行数
result += seed[idx].substr(Math.floor(Math.random()*(seed[idx].length)), 1);
}
return result;
}
function GetFileName(str)
{
if(form1.film_name.value=="")
{
alert("请先填写影片名称")
}
else
{
form1.no1.value=getpy(form1.film_name.value)+"_"+getrandom(12)
}
}
</script>
</head>
<body leftMargin="0" topMargin="0" bgcolor="#FFFFFF">
<%
action_e=request.form("action")
Select Case action_e
Case ""
Call main()
Case "save_film"
Call save_film()
Case "upload_pic"
Call upload_pic()
end select
%>
<%
sub main()
%>
<form name="form1" method="post" action="<%=filename%>">
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="550" height="25" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3975CE">
<tr>
<td align="center" class="font1"><strong>增加新影片</strong></td>
</tr>
</table>
<table width="550" height="30" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td align="center" bgcolor="#F7F7F7"><table width="500" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="60">影片路径:</td>
<td><select name="pathid" class="select1" id="pathid">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from film_path"
rs.open sql,conn,1,1
do while not rs.eof
%>
<option value="<%=rs("id")%>">ID<%=rs("id")%>:rtsp://<%=mid(rs("caption"),27,len(rs("caption")))%></option>
<%
rs.movenext
loop
rs.close
%>
</select></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" height="160" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td align="center" bgcolor="#F7F7F7"><table width="500" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="60">影片名称:</td>
<td width="120"><input name="film_name" type="text" class="input1" id="film_name" size="15"></td>
<td width="60">影片别名:</td>
<td><input name="other_name" type="text" class="input1" id="other_name" size="15"></td>
</tr>
</table>
<table width="500" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="60">影片导演:</td>
<td width="120"><input name="film_director" type="text" class="input1" id="film_director" value="无" size="15"></td>
<td width="60">主要演员:</td>
<td><input name="film_player" type="text" class="input1" id="film_player" size="15"></td>
</tr>
</table>
<table width="500" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="60">影片类别:</td>
<td width="120"><select name="film_class" class="select1" id="film_class">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from film_class"
rs.open sql,conn,1,1
do while not rs.eof
%>
<option value="<%=rs("caption")%>"><%if rs("isvip")=true then%>[VIP]<%end if%><%=rs("caption")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</select></td>
<td width="60">影片产地:</td>
<td><select name="film_from" class="select1" id="film_from">
<option value="1" selected>欧美</option>
<option value="2">港台</option>
<option value="3">大陆</option>
<option value="4">日韩</option>
<option value="5">其它</option>
</select></td>
</tr>
</table>
<table width="500" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="60">推荐级别:</td>
<td width="120"><select name="film_level" class="select" id="film_level">
<option value="1">★</option>
<option value="2">★★</option>
<option value="3" selected>★★★</option>
<option value="4">★★★★</option>
<option value="5">★★★★★</option>
</select></td>
<td width="60" align="right">清晰程度:</td>
<td><select name="film_clear" class="select" id="film_clear">
<option value="5">☆☆☆☆☆</option>
<option value="4" selected>☆☆☆☆</option>
<option value="3">☆☆☆</option>
<option value="2">☆☆</option>
<option value="1">☆</option>
</select></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -