<?php include(pe_tpl('header.html'));?>
<div class="right fr">
	<div class="now">
		<div class="fl now1"></div>
		<div class="fl now2"><?php if($_g_act=='edit'):?>修改文章<?php else:?>添加文章<?php endif;?></div>
		<div class="fl now3"></div>
		<div class="clear"></div>
	</div>
	<form method="post" action="<?php echo $action ?>">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang">
	<tr>
		<td width="70">文章名称：</td>
		<td><input type="text" name="info[notice_name]" value="<?php echo $info['notice_name'] ?>" class="inputtext inputtext_500" /></td>
	</tr>
	<tr>
		<td>文章分类：</td>
		<td>
			<select name="info[noticeclass_id]" class="inputselect">
			<?php foreach($cache_noticeclass as $v):?>
			<option value="<?php echo $v['noticeclass_id'] ?>" <?php if($v['noticeclass_id']==$info['noticeclass_id']):?>selected="selected"<?php endif;?>><?php echo $v['noticeclass_name'] ?></option>
			<?php endforeach;?>
			</select>
		</td>
	</tr>
	<tr>
		<td>置顶状态：</td>
		<td>
			<select name="info[notice_state]" class="inputselect">
			<?php foreach(array('未置顶', '已置顶') as $k => $v):?>
			<option value="<?php echo $k ?>" <?php if($k==$info['notice_state']):?>selected="selected"<?php endif;?>><?php echo $v ?></option>
			<?php endforeach;?>
			</select>
		</td>
	</tr>
	<tr>
		<td>发布时间：</td>
		<td><input type="text" name="info[notice_atime]" value="<?php echo pe_date($info['notice_atime'] ? $info['notice_atime'] : time()) ?>" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" /></td>
	</tr>
	<tr>
		<td colspan="2"><textarea name="info[notice_text]" id="editortext" style="width:100%;height:600px"><?php echo htmlspecialchars($info['notice_text']) ?></textarea></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input type="submit" value="提 交" class="tjbtn" /></td>
	</tr>
	</table>
	</form>
</div>
<script type="text/javascript" src="<?php echo $pe['host_root'] ?>include/plugin/my97/WdatePicker.js"></script>
<script type="text/javascript" src="<?php echo $pe['host_root'] ?>include/plugin/editor/kindeditor.js"></script>
<script type="text/javascript" src="<?php echo $pe['host_root'] ?>include/plugin/editor/lang/zh_CN.js"></script>
<script type="text/javascript" charset="utf-8">
var editor;
KindEditor.ready(function(K) {
	editor = K.create('#editortext', {
		allowFlashUpload :false
	});
});
</script>
<?php include(pe_tpl('footer.html'));?>