addrolenode.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ?>
  11. <!--2020.6.22 lyy 引入新版layui-->
  12. <link rel="stylesheet" href="/static/layui_2.5/layui/css/layui.css">
  13. <style>
  14. .layui-transfer-header {
  15. text-align: left
  16. }
  17. .layui-transfer-data {
  18. text-align: left
  19. }
  20. </style>
  21. <!--<form class="layui-form" action="" style="margin-top: 20px" id="nodeListform">-->
  22. <!---->
  23. <!---->
  24. <!-- <div class="layui-form-item" pane="">-->
  25. <!-- <label class="layui-form-label">全部节点</label>-->
  26. <!-- <div class="layui-input-block">-->
  27. <!-- --><?php //foreach ($model as $val){?>
  28. <!-- <input type="checkbox" name="nid[]" value="--><?php //echo $val['id']?><!--" lay-skin="primary"-->
  29. <!-- title="--><?php // echo $val['controller'].'/'.$val['action']?><!--" --><?php //if(!empty($val['checked'])) echo $val['checked']?><!-->
  30. <!-- --><?php //}?>
  31. <!---->
  32. <!-- </div>-->
  33. <!---->
  34. <!-- </div>-->
  35. <!---->
  36. <!-- <hr style="margin:25px auto;width:98%;">-->
  37. <!-- <div class="layui-form-item" style="text-align: center;">-->
  38. <!-- <div class="layui-input-block">-->
  39. <!-- <input type="hidden" name="rid" value="--><?php //echo $id ?><!--" >-->
  40. <!-- <input type="hidden" name="type" value="1">-->
  41. <!-- <button class="layui-btn" lay-submit="" lay-filter="add_Role_Node" >立即提交</button>-->
  42. <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
  43. <!-- </div>-->
  44. <!-- </div>-->
  45. <!--</form>-->
  46. <div id="userrolelist" style="display: none">
  47. <?php foreach ($model as $val) {
  48. if (!empty($val['checked'])) { ?>
  49. <li class="c_role y_role" data-id="<?php echo $val['id'] ?>" data-name="<?php echo $val['controller'].'/'.$val['action']?>"></li>
  50. <?php } else { ?>
  51. <li class="y_role" data-id="<?php echo $val['id'] ?>" data-name="<?php echo $val['controller'].'/'.$val['action']?>"></li>
  52. <?php }
  53. } ?>
  54. </div>
  55. <div id="test4" class="demo-transfer" style="text-align: center;margin-top: 30px;"></div>
  56. <div class="layui-btn-container" style="text-align: center;margin-top: 20px;">
  57. <button type="button" class="layui-btn" lay-demotransferactive="getData" data-id="<?php echo $id ?>"
  58. data-type="1">提交
  59. </button>
  60. <button type="button" class="layui-btn" lay-demotransferactive="reload">重置</button>
  61. </div>