1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?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");
- ?>
- <!--2020.6.22 lyy 引入新版layui-->
- <link rel="stylesheet" href="/static/layui_2.5/layui/css/layui.css">
- <style>
- .layui-transfer-header {
- text-align: left
- }
- .layui-transfer-data {
- text-align: left
- }
- </style>
- <!--<form class="layui-form" action="" style="margin-top: 20px" id="nodeListform">-->
- <!---->
- <!---->
- <!-- <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['controller'].'/'.$val['action']?><!--" --><?php //if(!empty($val['checked'])) echo $val['checked']?><!-->
- <!-- --><?php //}?>
- <!---->
- <!-- </div>-->
- <!---->
- <!-- </div>-->
- <!---->
- <!-- <hr style="margin:25px auto;width:98%;">-->
- <!-- <div class="layui-form-item" style="text-align: center;">-->
- <!-- <div class="layui-input-block">-->
- <!-- <input type="hidden" name="rid" value="--><?php //echo $id ?><!--" >-->
- <!-- <input type="hidden" name="type" value="1">-->
- <!-- <button class="layui-btn" lay-submit="" lay-filter="add_Role_Node" >立即提交</button>-->
- <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
- <!-- </div>-->
- <!-- </div>-->
- <!--</form>-->
- <div id="userrolelist" style="display: none">
- <?php foreach ($model as $val) {
- if (!empty($val['checked'])) { ?>
- <li class="c_role y_role" data-id="<?php echo $val['id'] ?>" data-name="<?php echo $val['controller'].'/'.$val['action']?>"></li>
- <?php } else { ?>
- <li class="y_role" data-id="<?php echo $val['id'] ?>" data-name="<?php echo $val['controller'].'/'.$val['action']?>"></li>
- <?php }
- } ?>
- </div>
- <div id="test4" class="demo-transfer" style="text-align: center;margin-top: 30px;"></div>
- <div class="layui-btn-container" style="text-align: center;margin-top: 20px;">
- <button type="button" class="layui-btn" lay-demotransferactive="getData" data-id="<?php echo $id ?>"
- data-type="1">提交
- </button>
- <button type="button" class="layui-btn" lay-demotransferactive="reload">重置</button>
- </div>
|