<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>菜单管理</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="<?= RESOURCES ?>/layuiadmin/layuiadmin/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="<?= RESOURCES ?>/layuiadmin/layuiadmin/style/admin.css" media="all">
	</head>

	<body>

		<div class="layui-fluid">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div class="layui-card">
						<!--<div class="layui-card-header">菜单管理</div>-->
						<div class="layui-card-body">
							<table class="layui-table">
								<colgroup>
									<col width="80">
									<col width="80">
									<col width="">
									<col width="100">
									<col width="200">
								</colgroup>
								<thead>
									<tr>
										<th>排序</th>
										<th>菜单ID</th>
										<th>菜单名称</th>
										<th>状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="content">
									<?=$html?>

								</tbody>
							</table>

						</div>
					</div>
				</div>
			</div>
		</div>

		<script src="<?= RESOURCES ?>/layuiadmin/layuiadmin/layui/layui.js"></script>
		<script>
			layui.config({
				base: '<?= RESOURCES ?>/layuiadmin/layuiadmin/' //静态资源所在路径
			}).extend({
				index: 'lib/index' //主入口模块
			}).use(['index', 'form', 'laydate'], function() {
				var $ = layui.$,
					admin = layui.admin,
					element = layui.element,
					layer = layui.layer,
					laydate = layui.laydate,
					form = layui.form;

				$(".menu_anniu").click(function() {
					var url = $(this).attr("data-href");
					var title = $(this).attr("data-title");
					if(title == "删除") {
						layer.confirm('确定删除吗？', function(index) {
							layer.close(index);
							window.location.href=url;
						});
					} else {
						layOpen(title, url);
					}

				})

			});
		</script>
	</body>

</html>