<?php if (!defined('APP_PATH')) exit;?><!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></title>
<link href="http://127.0.0.5/Magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/Magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/jquery.nicescroll.min.js"></script>
</head>
<body>
<style type="text/css">
	.tablelist td{line-height:25px;}
</style>
<script>
  $(document).ready(function() {    
	$("html").niceScroll();
  });
</script>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li>首页</a></li>
		<li>后台菜单管理</li>
	</ul>
</div>
<div class="rightinfo">
	<div class="tools">
		<ul class="toolbar">
			<li><a href="javascript:" onclick="load('添加菜单','?r=menu-index-edit&nid=<?php echo $vo['nid'];?>','450px','500px')";><span><img src="http://127.0.0.5/Magic/Data/Public/images/t01.png" /></span>添加菜单</a></li>
		</ul>
    </div> 
   <div class="formtitle1"><span>菜单列表</span></div>
   <iframe id="blank" name="blank"  style="display:none" ></iframe>
    <table class="tablelist">
		<thead>
    		<tr>
				<th align="left"><b>菜单名称</b></th>
				<th width="150" align="center"><b>MODULE</b></th>
				<th width="150" align="center"><b>CONTROLLER</b></th>
				<th width="150" align="center"><b>ACTION</b></th>
				<th width="150" align="center"><b>排序</b></th>
				<th width="150" align="center"><b>状态</b></th>
				<th width="150" align="center"><b>操作</b></th>
			</tr>
        </thead>
		<tbody>
			<?php if (empty($list)){ ?>
			暂无记录!
			<?php }else{ ?>
			<?php foreach ($list as $vo){?>
			<tr>
				<td style="text-indent:20px;"><a href="javascript:" onclick="load('编辑菜单','?r=menu-index-edit&nid=<?php echo $vo['nid'];?>','450px','500px')";><?php echo $vo['_name'];?></a></td>
				<td align="center"><?php echo $vo['module'];?></td>
				<td align="center"><?php echo $vo['controller'];?></td>
				<td align="center"><?php echo $vo['action'];?></td>
				<td align="center"><?php echo $vo['sorter'];?></td>
				<td align="center"><a href="javascript:void(0)"><img src="http://127.0.0.5/Magic/Data/Public/images/ico-0<?php echo $vo['status'];?>.png" width="15" height="15"><a></td>
				<td align="center">
					<a href="javascript:" onclick="load('编辑菜单','?r=menu-index-edit&nid=<?php echo $vo['nid'];?>','450px','500px')";>编辑</a> | 
					<a href="javascript:" onclick="confirms('菜单删除后将无法恢复，<br>请谨慎操作，确认删除？','?r=menu-index-del&nid=<?php echo $vo['nid'];?>')" >删除</a>
				</td>
			</tr>
			<?php }?>
			<?php }?>
		</tbody>
		</table>
</div>
<script type="text/javascript">$('.tablelist tbody tr:odd').addClass('odd');</script>

</body>
</html>





