123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/7
- * Time: 上午8:56
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/role.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/layui/layui-xtree.js");
- ?>
- <style>
- #xtree1 {width:90%;margin:0 auto;}
- /*#xtree1 .layui-xtree-item {display:inline-block;}*/
- </style>
- <form class="layui-form xm-layui-form" action="" style="margin-top: 20px;" id="menuListform">
- <div id="xtree1"></div>
- <!-- <button class="layui-btn btn1" style="position:relative;left:106px;">更新权限</button> -->
- <!-- <div class="div-btns">-->
- <!-- <input type="button" id="btn1" value="更新权限" class="layui-btn layui-btn-fluid" style="width:120px;position:relative;left:106px;"/>-->
- <!-- </div>-->
- <input type="hidden" value="<?php echo $id?>" name="id">
- <!-- <div class="layui-form-item" pane="">-->
- <!-- <label class="layui-form-label">菜单列表</label>-->
- <!-- <div class="layui-input-block">-->
- <!-- --><?php //foreach ($model as $val){?>
- <!-- <input type="checkbox" name="nid[][]" value="--><?php //echo $val['id']?><!--" lay-skin="primary"-->
- <!-- title="--><?php // echo $val['name']?><!--" --><?php //if(!empty($val['checked'])) echo $val['checked']?><!-->
- <!-- --><?php //}?>
- <!---->
- <!-- </div>-->
- <!---->
- <!-- </div>-->
- <div class="layui-form-item" style="margin:30px 0;text-align:center">
- <div class="layui-input-block">
- <input type="hidden" name="rid" value="<?php echo $id ?>" >
- <input type="hidden" name="type" value="2">
- <button class="layui-btn" lay-submit="" lay-filter="add_Role_Menu" >更新权限</button>
- <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
- </div>
- </div>
- </form>
|