<!--#include file="oklu.asp"-->
<!--#include file="security.asp"-->
<% if request("serverip")="" then
response.write"<script>alert('没有选择服务器');history.back();</Script>"
response.end
end if
%>
<!--#include file="articleconn.asp"-->
<%if session("flag")>3 then
    response.write "<br><p align=center>您的操作权限不够！</p>"
    response.end
end if
%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>添加电影</title>
</head>

<body topmargin="20" leftmargin="15" bgcolor="#E8E8E8">

<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.title3.value == "")
  {
    alert("请在 title3 域中输入值。");
    theForm.title3.focus();
    return (false);
  }

  if (theForm.title3.value.length > 11)
  {
    alert("在 title3 域中，请最多输入 11 个字符。");
    theForm.title3.focus();
    return (false);
  }
  return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="<%=okurlv42d%>/savemovie.asp" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
  <center>
  <table width="584" border="0" cellpadding="0" cellspacing="1" bordercolorlight="#000000" height="379">
    <tr bordercolordark="#FFFFFF">
      <td width="578" height="377">
      <table width="830" cellpadding="0" cellspacing="0" bordercolor="#006CD9" height="352" style="border-collapse: collapse" border="0">
            <tr> 
              <td width="808" bgcolor="#F5F5F5" colspan="2" height="23"> <p align="center"><b>影片添加页<font color="#0000FF">（<a href="selcolor.htm" target="_blank"><font color="#0000FF">颜色代码表</font></a>）</font></b></td>
            </tr>
            <tr> 
              <td bgcolor="#FFFFFF" height="25" nowrap>颜色代码：</td>
              <td height="25"><font color="#0000FF">蓝色：#0000FF、<font color="#FF0000">红色：#FF0000、<font color="#006600"><font color="#990099">紫色：#CC00FF</font></font></font></font></td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="25" nowrap> <p align="center">影片名称：</td>
              <td width="741" bgcolor="#FFFFFF" height="25"> 
                <!--webbot bot="Validation" b-value-required="TRUE"
                i-maximum-length="11" -->
                <input name="title3" type="text" class="smallinput" value="&lt;font color=#0000FF&gt;&lt;/font&gt;" size="45" maxlength="45"> 
                <font color="#FF0000"><span lang="en-us"> </span>支持<span lang="en-us">htm</span></font></td>       
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="13" nowrap> <div align="center"> 
                  影片设置： </div></td>
              <td bgcolor="#FFFFFF" height="13" width="741"> <select class="smallSel" name="typeid" size="1">&nbsp; 
                  <%                          
 dim rs,sql,sel
 set rs=server.createobject("adodb.recordset")
 sql="select * from type"
  if okurlv42d="" then response.end
 rs.open sql,conn,1,1
 do while not rs.eof
   sel="selected"    
   response.write "<option " & sel & " value='"&rs("type")&"'>"+rs("type")+"</option>"+chr(13)+chr(10)
   rs.movenext
 loop
 rs.close
		     %>
                  <option selected value="影片类型" name="typeid">影片类型</option>
                </select>
                &nbsp;       
                <select size="1" name="where">
                  <option value="大陆">大陆</option>
                  <option value="台湾">台湾</option>
                  <option value="香港">香港</option>
                  <option value="日韩">日本</option>
                  <option value="韩国">韩国</option>
                  <option value="欧美">欧美</option>
                  <option value="法国">法国</option>
                  <option value="德国">德国</option>
                  <option value="其他">其他</option>
                  <option selected value="出产地区" name="where">出产地区</option>
                </select>
                <select size="1" name="softlevel">       
                  <option value="1">一星级</option>
                  <option value="2">二星级</option>
                  <option value="3">三星级</option>
                  <option value="4">四星级</option>
                  <option value="5" selected>五星级</option>
                  <option value="选择推荐度" name="softlevel">选择推荐度</option>
                </select>
                <select size="1" name="canlook">       
                  <option value="1">普通影片</option>
                  <option value="3">黄金影片</option>
                  <option value="0" selected>免费电影</option>
                </select></td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="3" nowrap> <p align="center">播放格式：</td>
              <td bgcolor="#FFFFFF" height="3" width="741"> <input name="movietype" type="radio" value="rm" checked> 
                <img border="0" src="IMG/real.gif"> <input type="radio" value="md" name="movietype"> 
                <img border="0" src="IMG/media.gif"> <input type="radio" value="mov" name="movietype"> 
                <img border="0" src="IMG/lookmov.gif"></td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="3" nowrap> <p align="center">影片长度：</td>
              <td bgcolor="#FFFFFF" height="3" width="741"> <input type="text" name="howlong4" size="4" class="smallinput" maxlength="255" value="100">
                <span lang="en-us"> </span>分钟</td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="25" nowrap> <p align="center">领衔主演：</td>
              <td bgcolor="#FFFFFF" height="25" width="741"> <input type="text" name="name" size="38" class="smallinput" maxlength="255"></td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="25" nowrap> <div align="center"> 
                  缩略图片： </div></td>
              <td bgcolor="#FFFFFF" height="25" width="741"> <input name="domurl3" type="text" class="smallinput" value="pic/" size="38" maxlength="255"> 
                <a href onclick="window.open('upload/uploadmovie.asp','','toolbar=0,location=0,status=0,menubar=0,width=500, height=350, scrollbars=1,resizable=0')"> 
                点击上传图片</a></td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="14" nowrap> <p align="center">图片地址：</td>
              <td bgcolor="#FFFFFF" height="14" width="741"> <input name="url" type="text" class="smallinput" value="pic/" size="38" maxlength="255"> 
                <input type="hidden" name="serverip" size="13" class="smallinput" maxlength="15" value="<%=request("serverip")%>"> 
              </td>
            </tr>
            <tr> 
              <td width="68" bgcolor="#FFFFFF" height="1" nowrap> <p align="center">开放方式：</td>
              <%set rs=server.createobject("adodb.recordset")
   sql="select * from movie where id="&request("serverip")
    rs.open sql,conn,1,1
%>
              <td bgcolor="#FFFFFF" height="1" width="741"> <input name="onlinelookb" type="checkbox" value="1" checked>
                在线观看 </td>
            </tr>
            <tr> 
              <td width="808" bgcolor="#FFFFFF" height="0" colspan="2"> <table width="829" border="0" cellpadding="0" cellspacing="0" bordercolorlight="#000000">
                  <tr bordercolordark="#FFFFFF"> 
                    <td width="829" height="20"> <table width="828" cellspacing="0" border="0" style="border-collapse: collapse" bordercolor="#111111">
                        <script language="javascript">
function setid()
{
str='';
if(!window.myform.no.value)
window.myform.no.value=1;
for(i=1;i<=window.myform.no.value;i++)
str+='&nbsp;影片地址：&nbsp;在线：<%=rs("ipsip")%><input type="text" name="urla'+i+'" class="button" style="padding-left:1pt"  size=45 value="'+window.myform.no1.value+''+i+''+window.myform.no2.value+'">&nbsp;第'+i+'集<BR>';
window.upid.innerHTML=str+'<br>';
}
                </script>
                        <tr> 
                          <td width="69" valign="bottom"> 
                            <div align="center"> 
                              影片地址：</div></td>
                          <td width="755"><input type="text" name="no1" class="button" value="" size="32">集数<span lang="en-us"> </span> 
                            <input type="text" name="no" class="button" value="1" size="3">格式<input type="text" name="no2" class="button" value=".rm" size="5"><input type="button" name="Button" class="buttonface" onclick="setid();" value="设定">
 </td>
                        </tr>
                        <tr> 
                          <td colspan="2" id="upid"></td>
                        </tr>
                      </table></td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td width="67" bgcolor="#FFFFFF" height="11" valign="top"> 
                <div align="center"> 
                  <p align="center">影片简介：<br>
                    <font color="#FF0000">前30个字不能输入表格代码。<br>
                    <br>
                    </font><a href="editor.htm" target="_blank"><font color="#0000FF">编辑器</font></a> 
                </div></td>
              <td bgcolor="#FFFFFF" height="11" width="741"> <textarea rows="13" name="Content3" cols="68"></textarea></td>
            </tr>
            <tr> 
              <td width="67" bgcolor="#FFFFFF" height="14"> <p align="center">站长推荐：</td>
              <td bgcolor="#FFFFFF" height="22" width="741"> <input name="best" type="radio" value="1" checked>
                &nbsp; 是 
                <input type="radio" name="best" value="0">
                否&nbsp;&nbsp;&nbsp;&nbsp;</td>
            </tr>
          </table>
      </td>
    </tr>
  </table>
  <p><input type="submit" value=" 添 加 " name="cmdok" class="buttonface">&nbsp;&nbsp;
  <input type="reset" value=" 清 除 " name="cmdcancel" class="buttonface"></p>
  </center>
</form>
<div align="center">
  以上全为必填写<p>　</div>

</body>
<%
 set rs=nothing
 conn.close
 set conn=nothing
%>

</html>
