<?php include 'header.tpl.php';?>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<?php if($obj_ctl_limit->chk_act("add_article")){?><li><a href="javascript:frmExecute('add_article');">添加文章</a></li><?php }?>
<?php if($obj_ctl_limit->chk_act("add_folder")){?><li><a href="javascript:frmExecute('add_folder');">添加目录</a></li><?php }?>
<li class="sel"><a href="javascript:frmExecute('edit_article');">编辑文章</a></li>
<li class="info"><a href="javascript:inc_show_help(213);" style="color:#ff0000">帮助</a></li>
</div>
<div class="pSearchDiv" id="objSearch" style="display:none">
<table class="sTab">
<tr><td>名称或关键字：<input type="text" name="s_title" value="<?php echo $get_s_title?>">　修改日期：<input type="text" name="s_updatetime1" value="<?echo $get_s_updatetime1?>" size=10 onblur="chkNoDateToNow('s_updatetime1');"><A href="javascript:setday(frmMain.s_updatetime1);"><img id=dimg1 src="../images/calendar.gif" width="34" height="21"align=absMiddle border=0></a> 到 <input type="text" name="s_updatetime2" value="<?php echo $get_s_updatetime2?>" size=10 onblur="chkNoDateToNow('s_updatetime2');"><A href="javascript:setday(frmMain.s_updatetime2);"><img id=dimg2 src="../images/calendar.gif" width="34" height="21"align=absMiddle border=0></a>　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="meSearchClear();frmExecute('');"></td></tr>
</table>
</div>

<div class="pArticleTopPath">
路径：<?php echo $folder_path;?>
</div><div>
<table class='pEditTable'>
<tr class='pTabTitRow'>
	<td class='pTabTitCol' colspan="2"></td></tr>
<tr><td class="pTabColName">标　题：</td><td class="pTabColVal"><input type="input" name="article_title" value="<?php echo $arr_article["article_title"];?>" size=50 id="id_article_title" style="<?php echo $arr_article["article_css"];?>"></td>
	</tr>
<tr><td class="pTabColName">标题样式：</td><td class="pTabColVal"><input type="checkbox" name="article_css[]" value="font-weight:bold" <?php if(strstr($arr_article["article_css"],"font-weight:bold")) echo "checked"?> onclick="if(this.checked){document.frmMain.article_title.style.fontWeight='bold';}else{document.frmMain.article_title.style.fontWeight='normal';}">加粗 <input type="checkbox" name="article_css[]" value="font-style:italic" <?php if(strstr($arr_article["article_css"],"font-style:italic")) echo "checked"?> onclick="if(this.checked){document.frmMain.article_title.style.fontStyle='italic';}else{document.frmMain.article_title.style.fontStyle='normal';}">斜体 <select name="article_css[]" style="width:50px" onchange="me_change_css_color(this.value)">
<option value="" style=""></option>
<option value="color:#ff0000" style="background:#ff0000" <?php if(strstr($arr_article["article_css"],"color:#ff0000")) echo "selected"?>></option>
<option value="color:#0000ff" style="background:#0000ff" <?php if(strstr($arr_article["article_css"],"color:#0000ff")) echo "selected"?>></option>
<option value="color:#ff8800" style="background:#ff8800" <?php if(strstr($arr_article["article_css"],"color:#ff8800")) echo "selected"?>></option>
<option value="color:#00ff00" style="background:#00ff00" <?php if(strstr($arr_article["article_css"],"color:#00ff00")) echo "selected"?>></option>
<option value="color:#660099" style="background:#660099" <?php if(strstr($arr_article["article_css"],"color:#660099")) echo "selected"?>></option>
<option value="color:#999999" style="background:#999999" <?php if(strstr($arr_article["article_css"],"color:#999999")) echo "selected"?>></option>
<option value="color:#009933" style="background:#009933" <?php if(strstr($arr_article["article_css"],"color:#009933")) echo "selected"?>></option>
<option value="color:#990099" style="background:#990099" <?php if(strstr($arr_article["article_css"],"color:#990099")) echo "selected"?>></option>
</select></td>
	</tr>
<tr><td class="pTabColName">目　录：</td><td class="pTabColVal"><select name="article_folder_id"><?php echo $str_selfolder;?></select></td>
	</tr>
<tr><td class="pTabColName">属　性：</td><td class="pTabColVal">
<?php foreach($arr_article_attribute as $item){?>
<input type="checkbox" name="article_attribute[]" value="<?php echo $item?>" <?php echo strstr(",".$arr_article["article_attribute"].",",",".$item.",")?"checked":"";?>><?php echo $item;?>
<?php }?></td></tr>
<tr><td class="pTabColName">链　接：</td><td class="pTabColVal"><span id="objLinkUrl" style="display:none"><input type="input" name="article_linkurl" value="<?php echo $arr_article["article_linkurl"];?>" size=50></span><span><input type="checkbox" name="article_islink" value="1" onclick="if(this.checked){objLinkUrl.style.display='';}else{objLinkUrl.style.display='none';}">启用</span></td></tr>
<tr><td class="pTabColName">发布时间：</td><td class="pTabColVal"><input type="input" name="article_addtime" value="<?php echo format_date($arr_article["article_addtime"]);?>" size=15 onfocus="setday(this)"></td>
	</tr>
<tr><td class="pTabColName">略　图：</td><td class="pTabColVal"> <input type="input" name="article_pic" value="<?echo $arr_article["article_pic"]?>" size=50>&nbsp;<input type="button" name="btnpic" value="选择" style="border:1px #000000 solid" onclick="dialog_winPic('article_pic');"><br><iframe name="frm_upload_pic" src="<?php echo WEB_URL;?>/plus/dialog/upload_attatch.php?obj_id=article_pic" width="300px" height="30px" frameborder=0 scrolling="no"></iframe></td>
	</tr>
<tr><td class="pTabColName">简　介：</td><td class="pTabColVal"><textarea name='article_intro' id="article_intro" style='width:500px;height:120px' onpropertychange='this.style.posHeight=this.scrollHeight+2'><?php echo $arr_article["article_intro"];?></textarea></td>
	</tr>
<tr><td class="pTabColName">内容：<br><br><font style="color:#888888">分页符号[NextPage]</font></td><td class="pTabColVal"><textarea name="article_content" id="article_content" cols="60" rows="5" style="display:none"><?php echo $arr_article["article_content"];?></textarea><?=get_editor('article_content','admin')?> </td>
	</tr>
<tr style="display:none"><td class="pTabColName">关键词：</td><td class="pTabColVal"><input type="input" name="article_tag" value="<?php echo $arr_article["article_tag"];?>" size=50></td>
	</tr>
<tr style="display:none"><td class="pTabColName">模　板：</td><td class="pTabColVal"><input type="input" name="article_tpl" value="<?php echo $arr_article["article_tpl"];?>" readonly size=50> <input type="button" name="btntemp" value="选择" class="pBtn" onclick="winTemp('article_tpl');"></td>
	</tr>
	<tr><td colspan=2 class="pTabSubmit">
	<?php if($obj_ctl_limit->chk_act("save_article")){?><input type="button" name="subok" value="保 存" class="pSubmit" onclick="frmExecute('save_article')"><?php }else{?>
	<font color="red">没有保存权限！</font>
	<?php }?>
	　<input type="button" name="subok" value="取　消" class="pCancel" onclick="frmExecute('')"></td></tr>
</table>
<input type="hidden" name="article_channel_id" value="<?php echo $arr_article["article_channel_id"];?>">
</div>
<script>
function me_change_css_color(msgval){
	obj_x=document.getElementById("id_article_title");
	if(msgval!=""){
		msgval=msgval.replace("color:","");
	}
	obj_x.style.color=msgval;
}
areabox_autoheight("article_intro");
</script>
<?php include 'footer.tpl.php';?>		
