103 lines
5.2 KiB
HTML
Executable File
103 lines
5.2 KiB
HTML
Executable File
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
权限管理
|
|
<small>权限列表</small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo url('/admin/index/index');?>"><i class="fa fa-dashboard"></i> 首页</a></li>
|
|
<li><a href="<?php echo url('/admin/auth_access/lists');?>"> 权限列表</a></li>
|
|
<li class="active"> 权限</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">权限</h3>
|
|
<div class="box-tools pull-right">
|
|
<div class="input-group input-group-sm">
|
|
<input type="text" class="form-control pull-right" id="list-search-in" placeholder="Search Name" value="<?php echo $search['skeyword'];?>">
|
|
<div class="input-group-btn">
|
|
<button type="button" class="btn btn-default" id="list-search-btn"><i class="fa fa-search"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-tools -->
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body no-padding">
|
|
<?php if(!empty($list)):?>
|
|
<div class="table-responsive lists-table">
|
|
<table class="table table-hover table-striped">
|
|
<tbody>
|
|
<tr>
|
|
<th width="35rem"> </th>
|
|
<th width="50rem" class="text-center">ID</th>
|
|
<th width="100rem" class="text-center">名称</th>
|
|
<th width="70rem" class="text-center">分组</th>
|
|
<th width="70rem" class="text-center">模块</th>
|
|
<th class="text-center">权限</th>
|
|
<th width="100rem">操作</th>
|
|
</tr>
|
|
<?php foreach($list as $k=>$auth_access):?>
|
|
<tr>
|
|
<td><input type="checkbox" name="ids[]" value="<?php echo $auth_access['id'];?>"></td>
|
|
<td class="text-center"><?php echo $auth_access['id'];?></td>
|
|
<td class="text-center"><a href="<?php echo url('/admin/auth_access/edit',['id'=>$auth_access['id']]);?>"><?php echo $auth_access['name'];?></a></td>
|
|
<td class="text-center"><?php echo $auth_access['group'];?></td>
|
|
<td class="text-center"><?php echo $auth_access['module'];?></td>
|
|
<td class="text-justify"><?php echo str_replace(',',' ',$auth_access['access']);?></td>
|
|
<td>
|
|
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/auth_access/edit',['id'=>$auth_access['id']]);?>">编辑</a>
|
|
<a class="btn btn-xs btn-info" data-id="<?php echo $auth_access['id'];?>" data-url="<?php echo url('/admin/auth_access/delete');?>" data-cod="dowarn">删除</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<!-- /.table -->
|
|
</div>
|
|
<?php endif;?>
|
|
<!-- /.lists-table -->
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<div class="box-footer no-padding">
|
|
<div class="mailbox-controls row">
|
|
<div class="col-sm-6">
|
|
<button type="button" class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default btn-sm" data-url="<?php echo url('/admin/auth_access/deletes');?>" data-cod="batch">删除</button>
|
|
<button type="button" class="btn btn-default btn-sm" data-cod="refresh">刷新</button>
|
|
</div>
|
|
<!-- /.btn-group -->
|
|
<a href="<?php echo url('/admin/auth_access/add');?>" class="btn btn-default btn-sm">添加</a>
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
<div class="pull-right">
|
|
<?php if($page):?>
|
|
<?php echo $page;?>
|
|
<?php endif;?>
|
|
</div>
|
|
<!-- /.pull-right -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
|
|
<!-- Page Script -->
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
|
|
});
|
|
</script>
|