<?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="15%">网站名称</td>
					<td>网站地址</td>
					<td>logo</td>
					<td>姓名</td>
					<td>状态</td>
					<td>编辑</td>
					<td>删除</td>
				</tr>
				<?php 
				if(isset($link_list) && count($link_list)):
					foreach ($link_list as $v):
				?>
				<tr>
					<td><pre><?php echo $v->title;?></pre></td>
					<td><pre><?php echo $v->url;?></pre></td>
					<td><?php if($v->logo!=''):?><img src="<?php echo $v->logo;?>" style="width:100px; height:40px; border:0px;" /><?php endif;?></td>
					<td><pre><?php echo $v->name;?></pre></td>
					<td>
					<?php if($v->index==1):?>首页<?php else:?>内页<?php endif;?>/
					<?php if($v->status==1):?>审核通过<?php else:?>未审核<?php endif;?>
					</td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('admin','link_modification',$v->id));?>">编辑 </a></td>
					<td><a href="javascript:zibanma.adminDeleteIterm('<?php echo $common->get_rewriter_url_arr(array('admin','link_delete',$v->id));?>');">删除 </a></td>
				</tr>
				<?php 
					endforeach;
				endif;
				?>
			</table>
		</div>
	</div>
</body>
</html>