1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/6
- * Time: 下午5:49
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/user.js");
- ?>
- <form class="layui-form" action="" style="margin-top: 50px">
- <div class="layui-form-item">
- <label class="layui-form-label">账号</label>
- <div class="layui-input-block" style="width: 200px;">
- <input type="text" name="user" required value="<?php echo $model['user'] ?>" lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">姓名</label>
- <div class="layui-input-block" style="width: 200px;">
- <input type="text" name="name" required value="<?php echo $model['name'] ?>" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">密码</label>
- <div class="layui-input-block" style="width: 200px;">
- <input type="password" name="password" required value="<?php echo $model['password'] ?>" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">状态</label>
- <div class="layui-input-block">
- <input type="radio" name="status" value="1" title="正常" <?php if($model['status'] == 1) echo 'checked' ?>>
- <input type="radio" name="status" value="2" title="禁用" <?php if($model['status'] == 2) echo 'checked' ?>>
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block">
- <input type="hidden" name="uid" value="<?php echo $model['uid'] ?>" >
- <button class="layui-btn" lay-submit lay-filter="userEditSubmit">确认修改</button>
- </div>
- </div>
- </form>
|