<?php
/**
 * 拒绝直接访问模板
 */ 
if(ZIBANMA_SYS_LINK != 'zibanma_com'){
	die('access deny');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main</title>
<link href="/template/admin/style/style.css" rel="stylesheet" type="text/css"/>
<script src="/library/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="/library/editor/kindeditor-min.js" type="text/javascript"></script>
<script src="/library/js/zibanma.admin.js" type="text/javascript"></script>
<script type="text/javascript">
zibanma.adminLoadEditer();
</script>
</head>
<body id="main">
	<div class="body">
		<div class="title"><?php echo $menu_name;?></div>
		<div class="content">
			<form action="" method="post">
			<input type="hidden" name="id" value="<?php echo $article_info->id;?>" />
			<table>
				<tr>
					<td style="text-align:right;">选择分类：</td>
					<td>
						<select name="category" class="select">
							<?php
							if($category_list):
								foreach ($category_list as $ck=>$cv):
							?>
							<option value="<?php echo $cv->id;?>" <?php if($cv->id==$article_info->category):echo 'selected';endif;?>><?php echo $cv->category_name;?></option>
							<?php 
								endforeach;
							endif;
							?>
						</select>
					</td>
				</tr>
				<tr>
					<td>文章名称：</td>
					<td><input type="text" id="title" name="title" class="input" onblur="zibanma.adminCheckFromIsNull(this)" value="<?php echo $article_info->title;?>" /></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>优化选项，多个关键词以半角逗号 , 隔开</td>
				</tr>
				<tr>
					<td>文章关键词：</td>
					<td><textarea name="keywords" style="width:500px; height:60px;"><?php echo $article_info->keywords;?></textarea></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>优化选项，说明不超过200字，请勿在说明里使用特殊符号</td>
				</tr>
				<tr>
					<td style="text-align:right;">文章说明：</td>
					<td><textarea name="description" style="width:500px; height:60px;"><?php echo $article_info->description;?></textarea></td>
				</tr>
				<tr>
					<td style="text-align:right;">文章作者：</td>
					<td><input type="text" id="author" name="author" class="input" value="<?php echo $article_info->create_user;?>" onblur="zibanma.adminCheckFromIsNull(this)" /></td>
				</tr>
				<tr>
					<td style="text-align:right;">发布日期：</td>
					<td><input type="text" id="create_time" name="create_time" class="input" value="<?php echo date('Y-m-d H:i:s', $article_info->create_time);?>" onblur="zibanma.adminCheckFromIsNull(this)" /></td>
				</tr>
				<tr>
					<td style="text-align:right;">初始点击：</td>
					<td><input type="text" id="click" name="click" class="input" value="<?php echo $article_info->click;?>" onblur="zibanma.adminCheckFromIsNull(this)" /> * 本选项只可为数字</td>
				</tr>
				<tr>
					<td style="text-align:right;">文章内容：</td>
					<td><textarea name="content"><?php echo $article_info->content;?></textarea></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" id="submit" name="submit" class="button" value="确认提交" /></td>
				</tr>
			</table>
			</form>
		</div>
	</div>
</body>
</html>