<!--{template 'pic/head'}-->

<script language=JavaScript>
var id        = {$_output[id]};
var action    = '{$action}';
</script>
<link href="{AW_P}images/upload.css" rel="stylesheet" type="text/css" />
<table width="100%" align="center" cellspacing="1" cellpadding="0" class="tableborder">
   <tr>
     <td>
	<form action="system.php?sys=module&mod={$mod}&channelid={$channelid}&action={$action}" method="post" name="myform" id="myform" enctype="multipart/form-data" onsubmit="return doCheck();" target="post_iframe">
	<table width='100%'  border='0' align='center' cellpadding='0' cellspacing='0'  class="tableborder">
		<tr align='center'>
			<td id='TabTitle0' class='title6' onclick='ShowTabs(0)' height=24>基本选项</td>
			<td id='TabTitle3' class='title5' onclick='ShowTabs(3)'>图集属性</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>
	<table cellpadding="0" cellspacing="1" class="tableborder border">
		<tbody id='Tabs0' style='display:'>
			<tr>
				<input type="hidden" name="insert" value="1">
				<input type="hidden" name="referer" value="{$_SERVER['HTTP_REFERER']}" />
				<input type="hidden" name="thumb" id="thumb" value="{$_output['thumb']}" />
				<td class="tablerowl"><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'>图集标题</font></td>
				<td width="90%" class="tablerow">
					<!--{eval MakeSelectDownload("subject_pre", $_output[subject_pre], 1);}--> 
					<input class="f-text" name='subject' type='text' id='title' size='45' maxlength='100' value="{$_output[subject]}">&nbsp;
					<input type=text name='subject_color' class="f-text" id='subject_color' value="{$_output[subject_color]}" size=6> <input type=button onclick="return getColor(this, 'subject_color');" value="选择颜色">
				</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">展现方式</td>
				<td class="tablerow">
					<div class="modify-cate">
						<input type="radio" value="0" id="showtype_0" name="showtype"<!--{if $_output['showtype'] == 0}--> checked<!--{/if}--> /><label for="showtype_0">普通翻页</label>
						<input type="radio" value="1" id="showtype_1" name="showtype"<!--{if $_output['showtype'] == 1}--> checked<!--{/if}--> /><label for="showtype_1">小图展示</label>
						<input type="radio" value="2" id="showtype_2" name="showtype"<!--{if $_output['showtype'] == 2}--> checked<!--{/if}--> /><label for="showtype_2">幻灯浏览</label>
					</div>
				</td>
			</tr>
			<tr class='tdbg'>      
				<td class="tablerowl">上传图片</td>
				<td class="tablerow">
					<input type=button class="f-button" onclick="qmeCms.dialogView.iframe('上传图集图片','module.php?mod=pic&action=upload&channelid={$channelid}&type=1&bts=1&javascript=AddImageProxy',{type:'abs'});" value=" 上传图集图片 ">
				</td>  
			</tr>  
			<tr>          
				<td class="tablerowl"><font color='#FF0000'>图集图片</font></td>    
				<td class="tablerow">             
					<div>
						<ul id="pic-box">
							
						</ul>
					</div>
				</td>      
			</tr> 
			<script type="text/javascript">
			<!--{loop $piclist $val}-->
			AddImage('thumb', '{$val['url']}','{$val['ext']}', '{$val['pid']}', '{$val['is_thumb']}');
			<!--{/loop}-->
			</script>
			<tr>
				<td class="tablerowl"><font color='#FF0000'>图集介绍</font></td>
				<td class="tablerow">
					<textarea name="message" id="message" rows="10" cols="80" style="display:none">{$_output[description]}</textarea>
					<iframe height="300" frameborder="0" width="100%" scrolling="no" src="../images/fck/editor/fckeditor.html?InstanceName=message&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='Tabs3' style='display:none'>
			<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 class="f-text"  type="text" id="name"  size="30" onkeypress="return Form.ob(event, 'add_tag');" /> <input type=button id='add_tag' value="添加关键词" onclick="addTag();"  /> </td>
			</tr>
			<tr>
				<td class="tablerowl">图集作者</td>
				<td class="tablerow">
					<input class="f-text" name='author' type='text' id='author' value="{$_output[author]}" size='15' maxlength='30' />
					<span class="morelink"><!--{eval makeAuthorLink('author');}--></span>
				</td>
			</tr>
			<tr>
				<td class="tablerowl">来源名称</td>
				<td class="tablerow">
					<input  class="f-text" name='source' type='text' id='from' value="{$_output[source]}" size='15' maxlength='30' />
					<span class="morelink"><!--{eval makeAuthorLink('from');}--></span>
				</td>
			</tr>
			<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>
						{$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>
						</select>
					</div>
				</td>
			</tr>
			<!--{if $_SET['modify_views']}-->
			<tr>
				<td class="tablerowl">初始点击</td>
				<td class="tablerow">
					今日：<input class="f-text" name='dview' type='text' id='dview' value="<!--{eval echo isset($_output[dview])?$_output[dview]:20;}-->" size='10' maxlength=8 style='text-align:center'>
					本周：<input class="f-text" name='wview' type='text' id='wview' value="<!--{eval echo isset($_output[wview])?$_output[wview]:100;}-->" size='10' maxlength=8 style='text-align:center'>
					本月：<input class="f-text" name='mview' type='text' id='mview' value="<!--{eval echo isset($_output[mview])?$_output[mview]:500;}-->" size='10' maxlength=8 style='text-align:center'>
					总共：<input class="f-text" name='views' type='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">
					<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;
				</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 size=40 id="showphp" 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"  colspan=2>
					<input type="hidden" name="id" value="{$id}">
					<input type="hidden" name="myFormAc" value="update">
					<input type="submit" name="submit" id="submit" value=" 确定修改" class="f-button" > &nbsp;
				</td>
			</tr>
		</tbody>
	</table>
	</form>
     </td>
  </tr>
</table>
<script language=javascript>
	new qmeCms.Calendar("totime");
	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]}');
</script>
<!--{template 'foot'}-->
