<?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"/>
<style type="text/css">
td img { width:180px; height:120px; padding:3px 0px;}
</style>
<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="10%">编号</td>
					<td width="30%">图片</td>
					<td>创建者</td>
					<td>创建时间</td>
					<td>所属分类</td>
					<td>编辑</td>
					<td>删除</td>
				</tr>
				<?php 
				if(count($graph_list->rs)):
					foreach ($graph_list->rs as $v):
				?>
				<tr>
					<td><?php echo $v->graph_id;?></td>
					<td><a href="<?php echo $v->pic_thumb_big;?>" target="_blank"><img src="<?php echo $v->pic_thumb_small;?>" /></a></td>
					<td colspan="5">
						<table>
							<tr>
								<td>创建者：</td>
								<td><?php echo $v->create_user;?></td>
							</tr>
							<tr>
								<td>创建时间：</td>
								<td><?php echo date('Y-m-d H:i:s', $v->create_time);?></td>
							</tr>
							<tr>
								<td>所属分类：</td>
								<td><a href="<?php echo $common->get_rewriter_url_arr(array('admin','pic_graph_manage',$v->album_id));?>"><?php echo $v->album_title;?></a></td>
							</tr>
							<tr>
								<td>图片操作：</td>
								<td>
									<a href="<?php echo $common->get_rewriter_url_arr(array('admin','pic_graph_modification',$v->create_user,$v->album_id,$v->graph_id));?>">编辑</a>
									<a href="javascript:zibanma.adminDeleteIterm('<?php echo $common->get_rewriter_url_arr(array('admin','pic_graph_delete',$v->graph_id));?>');">删除</a>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<?php 
					endforeach;
				endif;
				?>
				<tr>
					<td colspan="7" style="text-align:center;"><?php echo $graph_list->links;?></td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>