110 lines
5.6 KiB
HTML
Executable File
110 lines
5.6 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/user_role/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> </th>
|
|
<th>ID</th>
|
|
<th>名称</th>
|
|
<th>描述</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
<?php foreach($list as $k=>$user_role):?>
|
|
<tr>
|
|
<td><input type="checkbox" name="ids[]" value="<?php echo $user_role['id'];?>"></td>
|
|
<td><?php echo $user_role['id'];?></td>
|
|
<td><a href="<?php echo url('/admin/user_role/edit',['id'=>$user_role['id']]);?>"><?php echo $user_role['name'];?></a></td>
|
|
<td><?php echo $user_role['description'];?></td>
|
|
<td>
|
|
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/user_role/edit',['id'=>$user_role['id']]);?>">编辑</a>
|
|
<a class="btn btn-xs btn-info" data-id="<?php echo $user_role['id'];?>" data-url="<?php echo url('/admin/user_role/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-3">
|
|
<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/user_role/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/user_role/add');?>" class="btn btn-default btn-sm">添加</a>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<!-- <div class="form-inline input-group">
|
|
<span class="input-group-addon">角色</span>
|
|
<select name="roleid" id="roleid" class="form-control input-sm">
|
|
<option value="0">默认值</option>
|
|
<?php //echo $roleOption;?>
|
|
</select>
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-info btn-sm" id="move_archive">选择</button>
|
|
</span>
|
|
</div>-->
|
|
</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>
|