<!--{template 'article/head'}-->
<script language="javascript">
var id='{$id}';
</script>
<script language='javascript' src="{AW_P}images/js/article/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='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" target="post_iframe" onsubmit="return doCheck();">
	<input type="hidden" name="myFormAc" value="update" />
	<input type="hidden" name="referer" value="{$_SERVER['HTTP_REFERER']}" />
	<table cellpadding="2" cellspacing="1" class="tableborder border">
		<tbody id='Tabs0' style='display:'>
			<tr>
				<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" style="margin-right:12px;">
							<option value='0-1'>选择{$channeltitle}所属栏目</option>
							{$strall}
						</select>

						<a href="###" title="展开方式" onclick="return qmeCms.category.show()"><img src='images/stack.gif' style="border:0" /></a>
					</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">{$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=text class="f-text"	name="thumb" id="thumb" size=75 value="{$_output[thumb]}" />
					</div>
					<div class="modify-cate">
						<select id=myDrop3 size=1 style="width:170px" onchange="mypic();">
							<option value="">不指定首页图片</option>
						</select>
						<input type=button onclick="qmeCms.dialogView.iframe('上传图片','system.php?sys=upload&id=thumb&channelid={$channelid}&javascript=addPic&thumb=1',{type:'abs'});" value="上传图片" />
						<input type=button onclick="SelectBrowse('{$_SET[webpath]}admin/images/browse.html?type=image&channelid={$channelid}','thumb', 550,360);" value="浏览服务器" />
					</div></td>
			</tr>
			<tr>
				<td class="tablerowl">转向链接</td>
				<td class="tablerow"><div class="modify-cate">
						<!--{if $_output[is_link]>0}-->
						<input type=radio name=is_link value=0 onclick="showopen(0);" id="is_link_0"><label for="is_link_0">否</label>
						<input type=radio name=is_link value=1 checked onclick="showopen(1);" id="is_link_1"><label for="is_link_1">是</label>
						<input style="margin-left:12px;"	type=text class="f-text"	name=linkurl id=linkurl value="{$_output[linkurl]}" size=60>
						<!--{else}-->
						<input type=radio name=is_link value=0 checked onclick="showopen(0);" id="is_link_0"><label for="is_link_0">否</label>
						<input type=radio name=is_link value=1 onclick="showopen(1);" id="is_link_1"><label for="is_link_1">是</label>
						<input style="margin-left:12px;" type=text class="f-text"	name=linkurl id=linkurl disabled size=60>
						<!--{/if}-->
						<font color=red>使用转向链接</font> </div></td>
			</tr>
			<tr>
				<td class="tablerowl">{$channeltitle}简介</td>
				<td class="tablerow"><textarea name="description" rows="6" cols="80" class="f-text">{$_output[description]}</textarea></td>
			</tr>
			<tr>
				<td class="tablerowl" colspan="2"><table border="0" width="100%">
						<tr>
							<td align="left" width="400">
								<input type="checkbox" style="vertical-align:middle" name="clear_link" id="clear_link" value="1" /><label for="clear_link"	style="vertical-align:middle">清除站外链接</label>
								<input type="checkbox" style="vertical-align:middle" name="clear_tag" id="clear_tag" value="1" /><label for="clear_tag"	style="vertical-align:middle">清除Flash，iframe，JS</label>
								<!--{if $action == 'add'}-->
								<input type="checkbox" style="vertical-align:middle" name="site_link" id="site_link" checked value="1" /><label for="site_link"	style="vertical-align:middle">为关键词添加链接</label>
								<!--{/if}-->
							</td>
							<td align="left" style="padding-left:30px"> {$channeltitle}内容：分页符号：<a href="#" onclick="return setNextPage();">[nextpage]</a> <a href="#" onclick="return toHeightB();">[+]</a> &nbsp;<a href="#" onclick="return toHeightS();">[-]</a> </td>
						</tr>
					</table></td>
			</tr>
			<!--{if $_output[is_link]>0}-->
			<tr id="message_value" style="display:none">
				<!--{else}-->
			<tr id="message_value" style="display:">
				<!--{/if}-->
				<td class="tablerow" colspan=2><textarea name="message" style="width:100%;height:300px;display:none;" id='message'>{$_output[message]}</textarea>
					<input type="hidden" name="text_id" value="{$_output['text_id']}">
					<script type="text/javascript">
						var oFCKeditor = new FCKeditor( 'message' ) ;
						oFCKeditor.BasePath = '{$_SET['webpath']}images/fck/';
						oFCKeditor.Height	= 400 ;
						oFCKeditor.ReplaceTextarea() ;
					</script>
				</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]}" >多个关键词请用“|”隔开(如果不填则系统自动生成)</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">作者</td>
				<td class="tablerow"><input name='author' type='text' class="f-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 name='source' type='text' class="f-text"	id='from' value="{$_output[source]}" size='15' maxlength='50' />
					<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>
							<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">
						<input name='status' type='radio'	value='1' id='status'><label for="status">草稿</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_0' checked><label for="status_0">通过审核</label>&nbsp;&nbsp;
					</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><p style="padding-top:6px;">
						<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&callback=getDir','showphp',550,360);" value="选择模版" />
					</p>
					<p style="padding:6px 0;color:blue"> 如果为空则使用系统默认模板，template/{$_SET['skin']}/article/show.php </p></td>
			</tr>
			<tr>
				<td class=tablerowl align=center>发送Trackback</td>
				<td class=tablerow><p style="padding-top:6px;">
						<input type=text class="f-text"	name="trackback" id="trackback" size=60 />
					</p>
					<p style="padding:6px 0;color:blue"> 如果要发送引用通告，请填写Trackback地址 </p></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><!--{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{
	<!--{if $_output['thumb']}-->
	var pic = '{$_output['thumb']}';
	document.myform.thumb.value =	pic;
	selectChecked( 'myDrop3', pic);
	<!--{/if}-->
	selectChecked( 'subject_pre', '{$_output['subject_pre']}');
	selectChecked( 'stars', '{$_output[stars]}');
	selectChecked( 'status', '{$_output[status]}');
	selectChecked( 'read_purview', '{$_output[read_purview]}');
	selectChecked( 'pay_type', '{$_output[pay_type]}');
}catch(e){};
</Script>
<!--{/if}-->
<!--{template 'foot'}-->
