<?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.adminLoadSimpleEditer();
</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 $album_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==$album_info->category):echo 'selected';endif;?>><?php echo $cv->category_name;?></option>
							<?php 
								endforeach;
							endif;
							?>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align:right;">相册名称：</td>
					<td><input type="text" name="title" class="input" value="<?php echo $album_info->title;?>" /></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>优化选项，多个关键词以半角逗号 , 隔开</td>
				</tr>
				<tr>
					<td style="text-align:right;">相册关键词：</td>
					<td><textarea name="keywords" style="width:500px; height:60px;"><?php echo $album_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 $album_info->description;?></textarea></td>
				</tr>
				<tr>
					<td style="text-align:right;">创建者：</td>
					<td><input type="text" name="create_user" class="input" value="<?php echo $album_info->create_user;?>" /></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', $album_info->create_time);?>" onblur="zibanma.adminCheckFromIsNull(this)" /></td>
				</tr>
				<tr>
					<td style="text-align:right;">初始点击：</td>
					<td><input type="text" name="click" class="input" value="<?php echo $album_info->click;?>" /> * 本选项只可为数字</td>
				</tr>
				<tr>
					<td style="text-align:right;">相册简介：</td>
					<td><textarea name="content"><?php echo $album_info->content;?></textarea></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" name="submit" class="button" value="确认提交" /></td>
				</tr>
			</table>
			</form>
		</div>
	</div>
</body>
</html>