<!--{template 'movie/head'}-->
<script language='javascript' src="{AW_P}images/js/movie/add.js"></script>
<table width='100%'  border='0' align='center' cellpadding='0' cellspacing='0'  class="tableborder">
  <tr align='center' id=menus>
	<td id='TabTitle0' class='title6' onclick='ShowTabs(0)' height=24>基本选项</td>
	<td id='TabTitle7' class='title5' onclick='ShowTabs(7)'>播放地址</td>
	<td id='TabTitle2' class='title5' onclick='ShowTabs(2)'>{$channeltitle}属性</td>
	<!--{if $show_money}--><td id='TabTitle4' class='title5' onclick='ShowTabs(4)'>收费选项</td><!--{/if}-->
	<td id='TabTitle5' class='title5' onclick='ShowTabs(5)'>扩展选项</td>
	<!--{if $show_related}--><td id='TabTitle6' class='title5' onclick='ShowTabs(6)'>相关内容</td><!--{/if}-->
	<td>&nbsp;</td>
  </tr>
</table>
<form action="system.php?sys=module&mod={$mod}&channelid={$channelid}&action={$action}" method="post" name="myform" onsubmit="return doCheck();" target="post_iframe">
<table cellpadding="0" cellspacing="1" class="tableborder border"  id="down_table"> 
  <tbody id='Tabs0' style='display:'>
    <tr>
	<input type="hidden" name="referer" value="{$_SERVER['HTTP_REFERER']}" />
	<!--{if $action=='add'}-->
	<input type="hidden" name="insert" value="1">
	<!--{else}-->
	<input type="hidden" name="up" value="1">
	<input type="hidden" name="oldtime" value="{$_output[dateline]}">
	<!--{/if}-->
	<input type="hidden" name="id" value="{$id}">
	<td class="tablerowl" width="150"><font color='#FF0000'>所属栏目</font></td>
	<td class="tablerow">
				  <div class="modify-cate">
					<select name=cid id="cid" stye="margin-right:12px;"><option value='0-1'>选择{$channeltitle}所属栏目</option>
						{$strall}
					</select>
				</div>
	</td>
  </tr>
  <tr>
	<td class="tablerowl"><font color='#FF0000'>{$channeltitle}名称</font></td>
	<td class="tablerow">
			<!--{eval MakeSelectDownload("subject_pre", $_output[subject_pre], 1);}--> 
			<input name='subject' type=text class="f-text"  id='title' size='44' maxlength='100' value="{$_output[subject]}"> 
			<input type=text class="f-text"  name='subject_color' onchange="this.style.backgroundColor=this.value" id=subject_color value="{$_output[subject_color]}" size="7" /> <input type="button" onclick="return getColor(this, 'subject_color');" value="选择颜色" />
	</td>
  </tr>
  <tr>
	<td class="tablerowl">其它名称</td>
	<td class="tablerow">
			<input name='subject_ot' type=text class="f-text"  id='title' size='44' maxlength='128' value="{$_output[subject_ot]}"> 
			<font color="blue">多个名称请使用逗号分隔</font>
	</td>
  </tr>
<tr>
	<td class="tablerowl">{$channeltitle}过滤</td>
	<td class="tablerow">
		<div class="modify-cate">
			<!--{echo makeFilterBox($_output['filter']);}-->
		</div>
	</td>
</tr>
   <tr>
	<td class="tablerowl">{$channeltitle}封面</td>
	<td class="tablerow">
		<input type=text class="f-text"  name="thumb" id="thumb" size=50 value="{$_output[thumb]}" />
		<input type=button onclick="qmeCms.dialogView.iframe('上传图片','system.php?sys=upload&id=thumb&channelid={$channelid}&thumb=1',{type:'abs'});" value="上传图片" />
		<input type=button onclick="SelectBrowse('{$_SET['webpath']}admin/images/browse.html?type=image&channelid={$channelid}','thumb', 550,360);" value="浏览服务器" />
	</td>
  </tr>
  <tr>
	<td class="tablerowl">首映时间</td>
	<td class="tablerow">
		<input type=text class="f-text"  name="play_year" id="play_year" size=10 value="{$_output[play_year]}" maxlength="12" /> <font color="blue">格式如 2010-02-08</font>
	</td>
  </tr>
  <tr>
	<td colspan="2">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td width="150" class="tablerowl">连载状态</td>
				<td width="100" class="tablerow">
					<select name="play_status">
						<option value="0"<!--{if $_output['play_status'] == 0}--> selected<!--{/if}-->>完结</option>
						<option value="1"<!--{if $_output['play_status'] == 1}--> selected<!--{/if}-->>连载中</option>
						<option value="2"<!--{if $_output['play_status'] == 2}--> selected<!--{/if}-->>预告片</option>
						<option value="2"<!--{if $_output['play_status'] == 3}--> selected<!--{/if}-->>不可观看</option>
					</select>
				</td>
				<td width="100" class="tablerowl">地区</td>
				<td class="tablerow">
					<!--{eval MakeSelectDownload("play_area", $_output[play_area], 1);}--> 
				</td>	
			</table>
		</tr>
	</td>
  </tr>
  <tr>
	<td class="tablerowl">导演</td>
	<td class="tablerow">
		<input type=text class="f-text"  name="play_leader" id="play_leader" size=60 value="{$_output[play_leader]}" maxlength="128" /> <font color="blue">多个导演请使用逗号分隔</font>
	</td>
  </tr>
  <tr>
	<td class="tablerowl">主演</td>
	<td class="tablerow">
		<input type=text class="f-text"  name="play_actor" id="play_actor" size=60 value="{$_output[play_actor]}" maxlength="128" /> <font color="blue">多个主演请使用逗号分隔</font>
	</td>
  </tr>
  <tr>
	<td class="tablerowl">一句话</td>
	<td class="tablerow">
		<input type=text class="f-text"  name="play_word" id="play_word" size=60 value="{$_output[play_word]}" maxlength="64" />
		<font color="blue">使用最简洁的一句话来介绍该影视</font>
	</td>
  </tr>
  <tr>
	<td class="tablerowl">{$channeltitle}简介</td>
	<td class="tablerow">
		<textarea name="description" id="description" rows="12" cols="80" style="font-size:14px;overflow-x:hidden;display:none">{$_output[description]}</textarea>
		<iframe height="300" frameborder="0" width="100%" scrolling="no" src="../images/fck/editor/fckeditor.html?InstanceName=description&amp;Toolbar=Standard&channelid={$channelid}" id="FCKeditor1___Frame" name="FCKeditor1___Frame" style="border: 0pt none ; margin: 0pt; padding: 0pt; background-color: transparent; background-image: none; width: 100%; height: 300px;"></iframe>
	</td>
  </tr>
  </tbody>
	<tbody id='Tabs7' style='display:none'>
		<tr>
			<td class="tablerowl" width=10%></td>
			<td class="tablerow">
				<input class='f-button' type="button" value="播放地址添加"  onClick="AddItem();" />
				<input class='f-button' type="button" value="采集播放数据"  onClick="movieCollect();" />
			</td>
		</tr>
		<!--{if $action == 'add'}-->
		<tr>
			<td class="tablerowl"><font color=red>播放地址</font></td>
			<td class="tablerow">
				<input name="url_name[]" type=text class="f-text"  id="url_name" size="15" maxlength="30" value="第1集">
				<select name="types[]">{$movie_source_type_option}</select>
				<input name="urls[]" type=text class="f-text"  id="urls" size="40" maxlength="255" value="">
				<input type="button" value="上传" class='f-button' id="up" onClick="qmeCms.dialogView.iframe('上传视频','system.php?sys=upload&id=urls&channelid={$channelid}&file_type=media&javascript=getBrowseSoft',{type:'abs'});"><input  class='f-button'  type=button onclick="SelectBrowse('{$_SET[webpath]}admin/images/browse.html?type=media&channelid={$channelid}&callback=getBrowseSoft','urls',550,360);" value="浏览" />
			</td>
		</tr>
		<!--{else}-->
			<!--{loop $players $item}-->
		<tr>
			<td class="tablerowl"><font color=red>播放地址</font></td>
			<td class="tablerow">
				<input name="url_name[]" type=text class="f-text" id="url_name_{$item[pid]}" size="15" maxlength="30" value="{$item['pname']}">
				<select name="types[]">
					<!--{loop $movie_source_type $k $v}-->
					<option value="{$k}"<!--{if $k == $item['type']}--> selected<!--{/if}-->>{$v}</option>
					<!--{/loop}-->
				</select>
				<input name="urls[]" type=text class="f-text"  id="urls" size="40" maxlength="255" value="{$item['url']}">
				<input type="button" value="上传" class='f-button' id="up" onClick="qmeCms.dialogView.iframe('上传视频','system.php?sys=upload&id=urls&channelid={$channelid}&file_type=media&javascript=getBrowseSoft',{type:'abs'});"><input  class='f-button'  type=button onclick="SelectBrowse('{$_SET[webpath]}admin/images/browse.html?type=media&channelid={$channelid}&callback=getBrowseSoft','urls',550,360);" value="浏览" /><input onclick="save('deleteurl',{$item[pid]},this.parentNode.parentNode.rowIndex,this);" value='删除' type='button'  class='f-button' />
			</td>
		</tr>
			<!--{/loop}-->
		<!--{/if}-->
		<tr id="urlsitem"><td colspan="2"></td></tr>
	</tbody>
  <tbody id='Tabs2' style='display:none'>
  <!--{if $action=='add'}-->
  <tr>
	<td class="tablerowl">关键词</td>
	<td class="tablerow"><input name="keyword" type="text" class="f-text"  id="keyword" size="30" value="{$_output[keyword]}"  onkeypress="return Form.ob(event, 'add_tag');" />多个关键词请用“|”隔开(如果不填则系统自动生成)</td>
  </tr>
  <!--{else}-->
			<tr>
				<td class="tablerowl" style="height:30px">已有关键字</td>
				<td class="tablerow">
					<div class="tag-list" id="keyword_start">
						<ul>
							<!--{loop $keywords_array	$key $val}-->
							<li id='tag_{$val[tid]}'>
								<a class="keyword" title="删除" href="###" onclick="return delTag({$val[tid]},{$val[kid]}, this);">{$val[name]}</a>
							</li>
							<!--{/loop}-->				
						</ul>
					</div>
				</td>
			</tr>
  <tr>
	<td class="tablerowl" width=60>添加关键字</td>
	<td class="tablerow"><input type="text" class="f-text"  id="name"  size="30" onkeypress="return Form.ob(event, 'add_tag');" /> <input type="button" id='add_tag' value="添加关键词" onclick="addTag();"  /></td>
  </tr>
  <!--{/if}-->
  <tr>
	<td class="tablerowl">{$channeltitle}性质</td>
	<td class="tablerow">
		<div class="modify-cate">
			<select name='is_comend' id='is_comend' style="margin-right:15px;">
				<option value="0"<!--{if $_output[is_comend]==0}--> selected<!--{/if}-->>{$channeltitle}推荐等级</option>
				<option value="1"<!--{if $_output[is_comend]==1}--> selected<!--{/if}-->>☆</option>
				<option value="2"<!--{if $_output[is_comend]==2}--> selected<!--{/if}-->>☆☆</option>
				<option value="3"<!--{if $_output[is_comend]==3}--> selected<!--{/if}-->>☆☆☆</option>
				<option value="4"<!--{if $_output[is_comend]==4}--> selected<!--{/if}-->>☆☆☆☆</option>
				<option value="5"<!--{if $_output[is_comend]==5}--> selected<!--{/if}-->>☆☆☆☆☆</option>
			</select>
			<input name='nocoment' type='checkbox' id='nocoment' value='1'<!--{if $_output[nocoment]==1}--> checked<!--{/if}-->><label for="nocoment">禁止评论</label>&nbsp;&nbsp;&nbsp;&nbsp;
			{$channeltitle}评分等级
			<select name='stars' id='stars'>
				<option value='5'>5</option>
				<option value='4'>4</option>
				<option value='3' selected>3</option>
				<option value='2'>2</option>
				<option value='1'>1</option>
				<option value='0'>无</option>
			</select>	
		</div>
	</td>
  </tr>
  <!--{if $_SET['modify_views']}-->
  <tr>
	<td class="tablerowl">初始点击</td>
	<td class="tablerow">
		今日：<input name='dview' type=text class="f-text"  id='dview' value="<!--{eval echo isset($_output[dview])?$_output[dview]:20;}-->" size='10' maxlength=8 style='text-align:center'>
		本周：<input name='wview' type=text class="f-text"  id='wview' value="<!--{eval echo isset($_output[wview])?$_output[wview]:100;}-->" size='10' maxlength=8 style='text-align:center'>
		本月：<input name='mview' type=text class="f-text"  id='mview' value="<!--{eval echo isset($_output[mview])?$_output[mview]:500;}-->" size='10' maxlength=8 style='text-align:center'>
		总共：<input name='views' type=text class="f-text"  id='views' value="<!--{eval echo isset($_output[views])?$_output[views]:1000;}-->" size='10' maxlength=8 style='text-align:center'>
	</td>
  </tr>
  <!--{/if}-->
  <tr>
	<td class="tablerowl">{$channeltitle}状态</td>
	<td class="tablerow">
		<div class="modify-cate">
		<!--{if $action=='edit'}-->
			<input name='status' type='radio'  value='1' id='status_1'> <label for="status_1">草稿</label>&nbsp;&nbsp;
			<input name='status' type='radio'  value='2' id='status_2' > <label for="status_2">退稿</label>&nbsp;&nbsp;
			<input name='status' type='radio'  value='3' id='status_3'> <label for="status_3">待审核</label>&nbsp;&nbsp;
			<input name='status' type='radio'  value='0' id='status' checked > <label for="status">通过审核</label>&nbsp;&nbsp;
		<!--{else}-->
			<input name='status' type='radio'  value='1' id='status_1'> <label for="status_1">草稿</label>&nbsp;&nbsp;
			<input name='status' type='radio'  value='2' id='status_2'> <label for="status_2">退稿</label>&nbsp;&nbsp;
			<input name='status' type='radio'  value='3' id='status_3'> <label for="status_3">待审核</label>&nbsp;&nbsp;
			<input name='status' type='radio'  value='0' id='status' checked> <label for="status">通过审核</label>&nbsp;&nbsp;
		<!--{/if}-->
		</div>
	</td>
  </tr>
    <tr>
	<td class=tablerowl align=center width="150">自定义文件名</td>
	<td class=tablerow>
		<p style="padding-top:6px;">
			<input type=text class="f-text" name="filename" id="filename" size=40 maxlength="64" value="{$_output[filename]}" /> <input type="checkbox" name="auto_filename" id="auto_filename" value="1"  <!--{if $_SET['auto_filename']}--> checked<!--{/if}--> /><label for="auto_filename">自动生成</label>
		</p>
		<p style="padding:6px 0;color:blue"> 自定义生成静态文件名，只能由英文字母，数字，和-_组成, 不包含文件扩展名 </p>
	</td>
  </tr>  
  <tr>
	<td class=tablerowl align=center>使用模板</td>
	<td class=tablerow>
		<input type=text class="f-text"  name=showphp id="showphp" size=40 value="{$_output[showphp]}"> <input type="button" onclick="SelectBrowse('images/browse.html?type=read&amp;channelid=-1&amp;callback=getDir','showphp',550,360);" value="选择模版"/> 为空则使用系统默认模板</td>
  </tr>
  </tbody>
	<!--{if $show_money}-->
	<tbody id='Tabs4' style='display:none'>
	<!--{template 'element/money'}-->
	</tbody>
	<!--{/if}-->        

  <tbody id='Tabs5' style='display:none'>
	<!--{template 'element/extend'}-->
  </tbody>
<!--{if $show_related}-->
<tbody id='Tabs6' style='display:none'>
   <!--{template 'element/related'}-->

</tbody>
<!--{/if}-->
  <tbody>
  <tr>
	<td class="tablerowl" align=center colspan=2>
	<input type=hidden name=myFormAc value="update">
	<!--{if $action=='add'}-->
		<input type="submit" name="okk" id='submit' value=" 确定发表" class="f-button" > &nbsp;
	<!--{else}-->
		<input type=hidden name=pid value="{$_output[pid]}">
		<input type=hidden name=username value="{$_output[username]}">
		<input type="submit" name="okk" id='submit'  value=" 确定修改" class="f-button" > &nbsp;
	<!--{/if}-->
	</td>
  </tr>
  </tbody>
</table>
</form>
	<!--{if $action=='edit'}-->
	<script language=javascript>
	try
	{
		selectChecked( 'subject_pre', '{$_output[subject_pre]}');
		var specialid = new Array();
		    <!--{loop $specialids $key $val}-->
		    specialid[$key] = '{$val[sid]}';
		    <!--{/loop}-->
		selectChecked( 'specialid', specialid);
		selectChecked( 'stars', '{$_output[stars]}');
		selectChecked( 'status', '{$_output[status]}');
		selectChecked( 'read_purview', '{$_output[read_purview]}');
		selectChecked( 'pay_type', '{$_output[pay_type]}');
	}catch(e){};
	</Script>
	<!--{/if}-->
<script language=javascript>
	new qmeCms.Calendar("play_year");
</script>
<!--{template 'foot'}-->
