addrolemenu.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/7
  6. * Time: 上午8:56
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/role.js");
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/layui/layui-xtree.js");
  11. ?>
  12. <style>
  13. #xtree1 {width:90%;margin:0 auto;}
  14. /*#xtree1 .layui-xtree-item {display:inline-block;}*/
  15. </style>
  16. <form class="layui-form xm-layui-form" action="" style="margin-top: 20px;" id="menuListform">
  17. <div id="xtree1"></div>
  18. <!-- <button class="layui-btn btn1" style="position:relative;left:106px;">更新权限</button> -->
  19. <!-- <div class="div-btns">-->
  20. <!-- <input type="button" id="btn1" value="更新权限" class="layui-btn layui-btn-fluid" style="width:120px;position:relative;left:106px;"/>-->
  21. <!-- </div>-->
  22. <input type="hidden" value="<?php echo $id?>" name="id">
  23. <!-- <div class="layui-form-item" pane="">-->
  24. <!-- <label class="layui-form-label">菜单列表</label>-->
  25. <!-- <div class="layui-input-block">-->
  26. <!-- --><?php //foreach ($model as $val){?>
  27. <!-- <input type="checkbox" name="nid[][]" value="--><?php //echo $val['id']?><!--" lay-skin="primary"-->
  28. <!-- title="--><?php // echo $val['name']?><!--" --><?php //if(!empty($val['checked'])) echo $val['checked']?><!-->
  29. <!-- --><?php //}?>
  30. <!---->
  31. <!-- </div>-->
  32. <!---->
  33. <!-- </div>-->
  34. <div class="layui-form-item" style="margin:30px 0;text-align:center">
  35. <div class="layui-input-block">
  36. <input type="hidden" name="rid" value="<?php echo $id ?>" >
  37. <input type="hidden" name="type" value="2">
  38. <button class="layui-btn" lay-submit="" lay-filter="add_Role_Menu" >更新权限</button>
  39. <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
  40. </div>
  41. </div>
  42. </form>