<%@ LANGUAGE=VBScript codepage ="936" %>
<!--#include file="check.asp"-->
<%Response.Expires=0
urlsl=trim(Request.Form("urlsl"))
gvfs=trim(Request.Form("gvfs"))
gvtype=trim(Request.Form("gvtype"))
mystar=trim(Request.Form("mystar"))
myend=trim(Request.Form("myend")) 
mylong=trim(Request.Form("mylong"))
gvserver=trim(Request.Form("gvserver"))
%>
<html><head><title>影视下载添加</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="jh.css" rel="stylesheet" type="text/css"></head>
<SCRIPT language=JavaScript>
function check(){
var name=document.form.name.value;
var yanyuan=document.form.yanyuan.value;
var xf=document.form.xf.value;
var xfvalue=document.form.xfvalue.value;
var gvtype=document.form.gvtype.value;
var daoxiao=document.form.daoxiao.value;
var format=document.form.format.value;
var sm=document.form.sm.value;
var gvpic=document.form.gvpic.value;
var gvsee=document.form.gvsee.checked;
var gvdown=document.form.gvdown.checked;
if(name==""){alert("提示：请输入名称！");return false;}
if(yanyuan==""){alert("提示：演员名字不可以为空！");return false;}
if(gvsee==false && gvdown==false){alert("提示：在线播放，下载操作请选择其一！");return false;}
if(xf==""){alert("提示：请选择消费方式！");return false;}
var pattern = /^([0-9])+$/;
if(pattern.test(xfvalue)!=true){alert("提示：消费数值请用数字添写！");return false;}
if(xfvalue==0){alert("提示：消费数值要大于0！");return false;}
if(gvtype==""){alert("提示：请选择影视类型！");return false;}
if(daoxiao==""){alert("提示：请输入影视时间！");return false;}
if(format==""){alert("提示：请选择影视格式！");return false;}
<%for i=1 to urlsl%>
var url<%=i%>=document.form.url<%=i%>.value;
if(url<%=i%>==""){alert("提示：联接地址<%=i%>不可以为空！");return false;}
<%next%>
if(sm==""){alert("提示：请输入简介说明！");return false;}
if(gvpic==""){alert("提示：请输入图片Url！");return false;}
}
</script>
<form name="form" method="post" action="jhgl.asp?act=gvvodadd" onSubmit="return check(this);">
  <div align="center"></div>
  <table width="80%" border=1 align="center" cellpadding=1 cellspacing=0  bordercolor="#000000" bordercolordark="#FFFFFF">
    <tr> 
      <td colspan="6" align="center" bgcolor="#d7ebff">影视下载添加</td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#d7ebff">名称</td>
      <td>
<input name="name" type="text" id="name" size="20" maxlength="40"> 
        <input name="urlsl" type="hidden" id="urlsl" value="<%=urlsl%>" size="4" maxlength="4"> 
        <input name="gvfs" type="hidden" id="gvfs" value="<%=gvfs%>" size="4="4"> 
        <input name="gvtype" type="hidden" id="gvtype" value="<%=gvtype%>" size="4="4">
      </td>
      <td align="center" bgcolor="#d7ebff">推荐</td>
      <td> 
        <select name="tj" id="select">
          <option value="1">★</option>
          <option value="2">★★</option>
          <option value="3" selected>★★★</option>
          <option value="4">★★★★</option>
          <option value="5">★★★★★</option>
          <option value="6">强烈推荐</option>
        </select>
      </td>
      <td align="center" bgcolor="#d7ebff">会员可看</td>
      <td>
<input type="radio" name="viphy" value="1" >
        是 
        <input type="radio" name="viphy" value="0" checked>
        否 </td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#d7ebff">消费</td>
      <td><select name="xf" id="select4">
          <option selected>选择</option>
          <option value="jh_yl">银两</option>
          <option value="jh_jb">金币</option>
          <option value="allvalue">存点</option>
        </select> <input name="xfvalue" type="text" id="xfvalue3" value="0" size="6" maxlength="10">
        点 </td>
      <td align="center" bgcolor="#d7ebff">格式</td>
      <td colspan="3"> <input name="format" type="radio" value="real" checked>
        real<img src="images/real.gif" width="16" height="16" border="0"> <input type="radio" value="media" name="format">
        media<img src="images/media.gif" width="18" height="17" border="0"> <input type="radio" value="mov" name="format">
        mov<img src="images/mov.gif" width="16" height="16" border="0"> </td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#d7ebff">方式</td>
      <td colspan="5"><input name="gvsee" type="checkbox" id="gvsee" value="1">
        在线观看 
        <input name="gvdown" type="checkbox" id="gvdown" value="1">
        在线下载 所在服务器：<input name="gvserver" type="hidden" readonly id="gvserver" value="<%=gvserver%>" size="3" maxlength="3"><font color=blue><b><%=gvserver%></b></font>号服务器</td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#d7ebff">演员</td>
      <td colspan="3"><input name="yanyuan" type="text" id="yanyuan" size="40" maxlength="100"> 
      </td>
      <td align="center" bgcolor="#d7ebff">时间</td>
      <td><input name="daoxiao" type="text" id="daoxiao" value="120分 225KB/s" size="15" maxlength="15"></td>
    </tr>
    <tr> 
      <td align="center" valign="top" bgcolor="#d7ebff">简介</td>
      <td colspan="5"><textarea name="sm" cols="60" rows="6" id="sm"></textarea>
      </td>
    </tr>
    <tr> 
      <td rowspan="2" align="center" valign="top" bgcolor="#d7ebff">图片</td>
      <td colspan="4"><input name="gvpic" type="text" id="gvpic" size="50" maxlength="150" value="无"></td>
      <td rowspan="2" align="center" bgcolor="#d7ebff" id="pic">图片</td>
    </tr>
    <tr> 
      <td colspan="4"> <iframe name="ad" frameborder=0 width=100% height=25 scrolling=no src=upfile.asp></iframe></td>
    </tr>
    <%for i=1 to urlsl
    if mylong>1 then
    	temp=""
    	for t=1 to (mylong-len(cstr(i)))
    		temp=temp & "0"
    	next
    	mytpf=temp&i
    else
    	mytpf=i
    end if
    if i=1 and urlsl=1 then mytpf="all"
    if i=1 and urlsl=2 then mytpf="a"
    if i=2 and urlsl=2 then mytpf="b"
    %>
    <tr> 
      <td align="center" bgcolor="#d7ebff">址址<%=i%></td>
      <td colspan="5"><input name="url<%=i%>" type="text" id="url<%=i%>" size="60" value="<%=mystar%><%=mytpf%><%=myend%>"></td>
    </tr>
    <%next%>
    <tr> 
      <td colspan="6" align="center" bgcolor="#d7ebff"><input type="SUBMIT" name="Submit" value="确定"> 
        <input type="RESET" name="Reset" value="清除"></td>
    </tr>
  </table>
</form>
</body>
</html>
