<?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="8%">编辑</td>
					<td width="8%">删除</td>
					<td width="8%">排序</td>
				</tr>
				<?php 
				if($category_list):
					$i = 1;
					foreach ($category_list as $ck=>$cv):
				?>
				<tr>
					<td><?php echo $i;?></td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('news','category',$cv->id));?>" target="_blank"><?php echo $cv->category_name;?></a></td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('admin','news_category_modification',$cv->id));?>">编辑</a></td>
					<td><a href="<?php echo $common->get_rewriter_url_arr(array('admin','news_category_delete',$cv->id));?>">删除</a></td>
					<td><input type="text" value="<?php echo $cv->sort;?>" style="width:45px; text-align:center;" onblur="zibanma.adminListSort({'id':<?php echo $cv->id;?>,'value':this.value}, '<?php echo $common->get_rewriter_url('admin-news_category_sort');?>')" /></td>
				</tr>
				<?php 
					$i++;
					endforeach;
				endif;
				?>
			</table>
		</div>
	</div>
</body>
</html>