
<h3 class="header smaller lighter blue mg-top12 mg-bottom20">权限管理</h3>
<div>
    <div class="  well">
        <form  role="form" class="form-inline search-group" action="<?php echo url('manage/permissionsList'); ?>" method="get">
            <div class="">
                <div class="form-group search-list ">
                    <label for="">权限编号　</label>
                    <input type="text" name="id" <?php if(isset($id)): ?>value="<?php echo $id; ?>"<?php endif; ?> />
                </div>
                <div class="form-group search-list ">
                    　<label for="">权限名　</label>
                    <input type="text" name="display_name" <?php if(isset($display_name)): ?>value="<?php echo $display_name; ?>"<?php endif; ?>/>
                </div>

            </div>
            <div class="space-10"></div>
            <div class="">
                <div class="form-group search-list ">
                    <label for="">权限路由　</label>
                    <input type="text" name="name" <?php if(isset($name)): ?>value="<?php echo $name; ?>"<?php endif; ?>/>
                </div>
                <div class="form-group search-list width285">
                    <label for="">所属模块　</label>
                    <select name="module_type">
                        <option <?php if( !isset($module_type) ): ?>selected="selected"<?php endif; ?> value="">全部</option>
                        <?php foreach($type as $v): ?>
                             <option <?php if(isset($module_type) && $module_type == $v->id ): ?>selected="selected"<?php endif; ?> value="<?php echo e($v->id); ?>"> <?php echo e($v['module_type']); ?></option>
                        <?php endforeach; ?>
                    </select>
                    <select name="order">
                        <option <?php if(isset($order) && $order == 'desc'): ?>selected="selected"<?php endif; ?> value="desc">递减</option>
                        <option <?php if(isset($order) && $order == 'asc'): ?>selected="selected"<?php endif; ?> value="asc">递增</option>
                    </select>
                </div>
                <div class="form-group">
                    <button class="btn btn-primary btn-sm">搜索</button>
                </div>
            </div>
        </form>
    </div>

</div>

                                <?php /*<div class="well h4 blue">权限列表</div>*/ ?>
        <div>
            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                <thead>

                <tr>
                    <th class="center">
                        <label>
                            <input type="checkbox" class="ace allcheck"/>
                            <span class="lbl"></span>
                            编号
                        </label>
                    </th>
                    <th>权限</th>
                    <th>权限路由</th>
                    <th>所属模块</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($list as $v): ?>
                <tr>
                    <td class="center">
                        <label>
                            <input type="checkbox" class="ace" name="chk"/>
                            <span class="lbl"></span>
                            <?php echo e($v['id']); ?>

                        </label>
                    </td>

                    <td>
                        <?php echo e($v['display_name']); ?>

                    </td>

                    <td>
                        <?php echo e($v['name']); ?>

                    </td>
                    <td>
                        <?php echo e($v['menu_name']); ?>

                    </td>
                    <td>
                        <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                            <a class="btn btn-xs btn-info" href="permissionsDetail/<?php echo e($v['id']); ?>">
                                <i class="fa fa-edit bigger-120"></i>编辑
                            </a>
                            <a  href="permissionsDel/<?php echo e($v['id']); ?>" title="删除" class="btn btn-xs btn-danger">
                                <i class="ace-icon fa fa-trash-o bigger-120"></i>删除
                            </a>
                        </div>
                        <div class="visible-xs visible-sm hidden-md hidden-lg">
                            <div class="inline position-relative">
                                <button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-caret-down icon-only bigger-120"></i>
                                </button>

                                <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-left dropdown-caret dropdown-close">
                                    <li>
                                        <a href="#" class="tooltip-info" data-rel="tooltip" title="" data-original-title="View">
                                            <span class="blue">
                                                <i class="fa fa-edit bigger-120"></i>
                                            </span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#" class="tooltip-error" data-rel="tooltip" title="" data-original-title="Delete">
                                            <span class="red">
                                                <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                            </span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </td>

                </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
        <div class="row">
            <div class="col-xs-12">
                <div class="dataTables_info" id="sample-table-2_info">
                    <a href="permissionsAdd" class="btn  btn-primary btn-sm">添加权限</a>
                </div>
            </div>
            <div class="space-10 col-xs-12"></div>
            <div class="col-xs-12">
                <div class="dataTables_paginate paging_bootstrap row">
                    <ul class="pagination">
                        <?php echo $list->appends($_GET)->render(); ?>

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

<?php echo Theme::asset()->container('custom-css')->usePath()->add('backstage', 'css/backstage/backstage.css'); ?>