<?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/js/zibanma.admin.js" type="text/javascript"></script>
<style type="text/css">
td { background-color:#006699; text-indent:5px; height:28px;}
</style>
</head>
<body id="main">
	<div class="body">
		<div class="title"><?php echo $menu_name;?></div>
		<div class="content">
			<table style="width:800px;">
				<tr>
					<td width="8%">编号</td>
					<td>相册名称</td>
					<td width="12%">创建时间</td>
					<td width="15%">创建者</td>
					<td width="12%">所属分类</td>
					<td width="8%">编辑</td>
					<td width="8%">删除</td>
				</tr>
				<?php 
				if($album_list->rs):
					foreach ($album_list->rs as $ak=>$av):
				?>
				<tr>
					<td><?php echo $av->album_id;?></td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('pic','album',$av->album_id));?>" target="_blank"><?php echo $av->title;?></a></td>
					<td><?php echo date('Y-m-d', $av->create_time);?></td>
					<td><?php echo $av->create_user;?></td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('admin','pic_album_manage',$av->category_id));?>"><?php echo $av->category_name;?></a></td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('admin','pic_album_modification',$av->category_id,$av->album_id));?>">编辑</a></td>
					<td><a href="javascript:zibanma.adminDeleteIterm('<?php echo $common->get_rewriter_url_arr(array('admin','pic_album_delete',$av->category_id,$av->album_id));?>');">删除</a></td>
				</tr>
				<?php 
					endforeach;
				endif;
				?>
				<tr>
					<td colspan="7" style="text-align:center;"><?php echo $album_list->links;?></td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>