<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js"></script>
<script src="<?php echo $this->basedir;?>js/movie.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    // Initialise the table
    var mov = new movie();
    $('#catebut').click(function(){
    	mov.setCategory('#category');
    });
    $('#playerbut').click(function(){
    	mov.setPlayer();
    });
     $('#sevbut').click(function(){
    	mov.setServer();
    });
     $('#seturl').click(function(){
    	mov.setUrl();
    });
    //test.setCategory('d');
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">
     
      <?php if (is_array($this->message)){
      	echo '<div class="BlockBar">数据格式不正确</div>';
      	foreach ($this->message as $msg){?>
       <div class="error"><ol><li><?php echo $msg;?></li></ol></div>
      <?php } }?>
        <div class="BlockBar">修改节目资料</div>
		<form action="<?php echo $this->installdir;?>movie/modify/" method="post" enctype="multipart/form-data" name="form1" id="form1">
        <table cellpadding="4" cellspacing="1" class="tab">
		
			   <tr class="row">
			     <td width="12%"  class="align-center">录入人员：</td>
			     <td width="88%"><?php echo $this->modify['author'];?></td>
	        </tr>
			   <tr class="row">
			     <td  class="align-center">添加时间：</td>
			     <td><?php echo date('Y-m-d H:i:s', $this->modify['addtime']);?></td>
	        </tr>
			   <tr class="row">
				<td class="align-center">*影片类型：</td>
				<td>
				<select name="category" id="category">
				<?php echo $this->CategoryOption;?>
				  </select>
				 <?php if ($this->moviecfg['cate'] == 2){?>
			     <input type="button" name="Submit" value="添加分类" id="catebut"/>
			     <?php }?>
			     <?php
			     if (is_array($this->cate)){
			     	foreach ($this->cate as $row){
			     		?>
			     <div><strong><?php echo $row['category'];?></strong><input type="hidden" name="category[]" value="<?php echo $row['id'];?>" /> <a onClick="this.parentNode.parentNode.removeChild(this.parentNode)">删除</a></div>
			     <?php
			     	}
			     }?>			     </td>
			  </tr>
			   <tr class="row">
			     <td class="align-center">*出产地区：</td>
			     <td><select name="area" id="area">
				 <?php echo $this->AreaOption;?>
			       </select>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">*播放器：</td>
			     <td><select name="player" id="player"><?php echo $this->PlayerOption;?>
			       </select>
			       <?php if ($this->moviecfg['play'] ==2){?>
			     <input type="button" name="Submit" value="添加分类" id="playerbut"/>
			     <?php }?>
			     <?php
			     if (is_array($this->player)){
			     	foreach ($this->player as $row){
			     		?>
			     <div><strong><?php echo $row['name'];?></strong><input type="hidden" name="player[]" value="<?php echo $row['tag'];?>" /> <a onClick="this.parentNode.parentNode.removeChild(this.parentNode)">删除</a></div>
			     <?php
			     	}
			     }?>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">*影片语言：</td>
			     <td><?php echo $this->langCheckbox;?></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">*影片名称：</td>
			     <td><input name="title" type="text" id="title" size="50" value="<?php echo $this->modify['title'];?>" />
			        例如：20 如果不限制台数请填写0</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">影片主演：</td>
			     <td><textarea name="actor" cols="48" rows="2" id="actor"><?php echo $this->modify['actor'];?></textarea></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">影片导演：</td>
			     <td><textarea name="director" cols="48" rows="2" id="director"><?php echo $this->modify['director'];?></textarea></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">大海报：</td>
			     <td ><div style="float:left"><input name="pic" type="text" id="pic" size="30" value="<?php echo $this->modify['pic'];?>" />
			     </div>
			     <div style="float:left; margin-left:5px;"><iframe scrolling="no" src="<?php echo $this->installdir;?>upload/index/item/pic/" height="25"  frameborder="0" width="300" >vodcms.com</iframe></div></td>
            </tr>
			   <tr class="row">
			     <td class="align-center">缩略海报：</td>
			     <td><div style="float:left"><input name="otherpic" type="text" id="otherpic" size="30" value="<?php echo $this->modify['otherpic'];?>" />
			     </div><div style="float:left; margin-left:5px;"><iframe scrolling="no" src="<?php echo $this->installdir;?>upload/index/item/otherpic/" height="25"  frameborder="0" width="300" >vodcms.com</iframe></div></td>
            </tr>
			   <tr class="row">
			     <td class="align-center">BT种子：</td>
			     <td><div style="float:left"><input name="bt" type="text" id="bt" size="30" value="<?php echo $this->modify['bt'];?>" />
			     </div><div style="float:left; margin-left:5px;"><iframe scrolling="no" src="<?php echo $this->installdir;?>upload/index/item/bt/" height="25"  frameborder="0" width="300" >vodcms.com</iframe></div></td>
		    </tr>
			   <tr class="row">
			     <td class="align-center">观看权限：</td>
			     <td><select name="lookgid" id="lookgid">
			       <option value="0">免费片</option>
				   <?php echo $this->GroupOption;?>
			       </select>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">点播扣点：</td>
			     <td><input name="lookpoint" type="text" id="point" value="<?php echo $this->modify['lookpoint'];?>" />
			       *</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">上映日期：</td>
			     <td><input name="publish" type="text" class="time" id="publish" size="60" value="<?php echo $this->modify['publish'];?>" />
			       例如:2007-7或者2007年7月</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">开放服务：</td>
			     <td><input name="look" type="radio" class="radio" value="1" <?php if ($this->modify['look'] == 1) echo 'checked';?> />
			       开放点播
		           <input name="look" type="radio" class="radio" value="0" <?php if ($this->modify['look'] == 0) echo 'checked';?> />
		           关闭点播
		           <input name="down" type="radio" class="radio" value="1" <?php if ($this->modify['down'] == 1) echo 'checked';?> />
		           开放下载
		           <input name="down" type="radio" class="radio" value="0" <?php if ($this->modify['down'] == 0) echo 'checked';?> />
		           关闭下载</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">连载状态<?php echo $this->modify['serialise'];?></td>
			     <td><input name="serialise" type="radio" class="radio" value="0" <?php if ($this->modify['serialise'] == 0) echo 'checked';?> />
			       普通影片
		           <input name="serialise" type="radio" class="radio" value="1" <?php if ($this->modify['serialise'] == 1) echo 'checked';?> />
		           连载影片
		           <input name="serialise" type="radio" class="radio" value="2" <?php if ($this->modify['serialise'] == 2) echo 'checked';?> />
		           连载完结</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center" >广告插播：</td>
			     <td><select name="smil" id="smil">
			       <option value="0">不插播广告</option>
				   <?php
				   if (is_array($this->smil))
				   foreach($this->smil as $row){?>
				   <option value="<?php echo $row['id'];?>" <?php if($this->modify['smil'] == $row['id']) echo 'selected';?>><?php echo $row['title'];?></option>
				   <?php }?>
			       </select>
			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">影片推荐：</td>
			     <td><?php echo $this->recmdCheckbox;?></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">所属服务器：</td>
			     <td><select name="sid" id="sid"><?php echo $this->ServerOption;?>
			       </select>
			     <?php if ($this->moviecfg['server'] ==2){?>
			     <input type="button" name="Submit" value="添加服务器" id="sevbut"/>
			     <?php }?>
			     <?php
			     if (is_array($this->sid)){
			     	foreach ($this->sid as $row){?>
			     <div><strong><?php echo $row['name'];?>|<?php echo $row['helixserver'];?></strong><input type="hidden" name="sid[]" value="<?php echo $row['sid'];?>" /> <a onClick="this.parentNode.parentNode.removeChild(this.parentNode)">删除</a></div>
			     <?php
			     	}
			     }?>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">&nbsp;</td>
			     <td><input name="urlname" type="text" size="32" id="urlname" /> 
			       第
		             <input name="startnum" type="text" size="5" value="<?php echo (count($this->modify['url'])+1);?>" id="startnum" />
		             至
		             <input name="endnum" type="text" size="5" value="<?php echo (count($this->modify['url'])+2);?>" id="endnum" />
		             集 后缀名
		             <input name="ext" type="text" size="6" value=".rmvb" id="ext"/>
		             <input name="Submit3" type="button" class="btns" value="生成" id="seturl" />
					 <br />
					 <?php if(is_array($this->modify['url'])){?>
					 <?php foreach($this->modify['url'] as $row){?>
					 <div><input name="url[]" type="text" size="40" value="<?php echo $row['url'];?>" /> 标题 <input name="alt[]" type="text" size="10" value="<?php echo $row['title'];?>" /> 排序 <input name="sort[]" type="text" size="5" value="<?php echo $row['sort'];?>" /><input type="hidden" name="urlid[]" value="<?php echo $row['urlid'];?>" /> <input name="Submit4" type="button" class="btns" value="删除" onClick="this.parentNode.parentNode.removeChild(this.parentNode)" /></div>
					 <?php }?>
					 <?php }?>
					 <div id="urldata"></div></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">影片介绍：</td>
			     <td><?php $this->FCKeditor->Create();?></td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">&nbsp;</td>
			     <td><input type="submit" class="btn" value=" 修 改 " />&nbsp;<input type="button" class="btn" value=" 返回上一页 " onclick="history.back()" /> <input type="button" class="btn" value=" 置顶 " onclick="window.scrollTo(0,0)" /></td>
	        </tr>
        </table>
		<input type="hidden" name="movid" value="<?php echo $this->modify['movid'];?>" />
		</form>
      </div>
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

