12345678910111213141516171819202122232425262728293031 |
- <?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/user.js");
- ?>
- <style>
- .layui-transfer-header {text-align: left}
- .layui-transfer-data {text-align: left}
- </style>
- <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['name'] ?>"></li>
- <?php } else { ?>
- <li class="y_role" data-id="<?php echo $val['id'] ?>" data-name="<?php echo $val['name'] ?>"></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-uid="<?php echo $uid ?>"
- data-type="2">提交
- </button>
- <button type="button" class="layui-btn" lay-demotransferactive="reload">重置</button>
- </div>
|