<?
$row=db()->get_table("user",$_GET['id']);



?>
<div class="layuimini-main">

    <div class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label required">用户名</label>
            <div class="layui-input-block">
                <input  type="text" name="ddusername" lay-verify="required" lay-reqtext="用户名不能为空" placeholder="请输入4位数以上账号" value="<?=$row['ddusername']?$row['ddusername']:"xcx_".time()?>" class="layui-input">
              
            </div>
        </div>

          <div class="layui-form-item">
            <label class="layui-form-label required">角色</label>
            <div class="layui-input-block">
                  <?=select3(app("user")->type,$row['type'],"type")?>
              
            </div>
        </div>
        
       <div class="layui-form-item">
            <label class="layui-form-label">微信呢称</label>
            <div class="layui-input-block">
                <input type="text" name="nickName" lay-verify="" lay-reqtext="用户名不能为空" placeholder="请输入姓名" value="<?=$row['nickName']?>" class="layui-input">
               <!-- <tip>填写自己管理账号的名称。</tip>-->
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input type="text" name="realname" lay-verify="" lay-reqtext="用户名不能为空" placeholder="请输入姓名" value="<?=$row['realname']?>" class="layui-input">
               <!-- <tip>填写自己管理账号的名称。</tip>-->
            </div>
        </div>
        
        
     
        
    
      
        
   
        <div class="layui-form-item" >
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-block">
                <?=html_radio1(app("user")->status,$row['status']?$row['status']:1,"status")?>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机</label>
            <div class="layui-input-block">
                <input type="number" name="mobile"  placeholder="请输入手机" value="<?=$row['mobile']?$row['mobile']:""?>" class="layui-input">
            </div>
        </div>

          <div class="layui-form-item">
            
            <label class="layui-form-label">身份证号码</label>
            <div class="layui-input-block">
                <input type="text" name="idnumber" lay-verify="required"  placeholder="" value="<?=$row['idnumber']?>" class="layui-input">
              
            </div>
        </div>
      

        
       
         <?
         $title="头像";
         $field="avatarUrl";
         $name="avatarUrl";
         $fvalue=$row['avatarUrl'];
        include(ADMINROOT.'/template/tpl/inputimg.tpl.php'); //
       ?>
      
           <div class="layui-form-item">
            <label class="layui-form-label">学号</label>
            <div class="layui-input-block">
                <input type="text" name="code" placeholder="" class="layui-input" value="<?=$row['code']?>" >
            </div>
        </div>
          <div class="layui-form-item">
            
            <label class="layui-form-label">报考学校</label>
            <div class="layui-input-block">
                <input type="text" name="school" lay-verify=""  placeholder="" value="<?=$row['school']?>" class="layui-input">
              
            </div>
        </div>


         <div class="layui-form-item">
            
            <label class="layui-form-label">报考专业</label>
            <div class="layui-input-block">
                <input type="text" name="major" lay-verify=""  placeholder="" value="<?=$row['major']?>" class="layui-input">
              
            </div>
        </div>

         <div class="layui-form-item">
            
            <label class="layui-form-label">学习中心</label>
            <div class="layui-input-block">
                <input type="text" name="learning_center" lay-verify=""  placeholder="" value="<?=$row['learning_center']?>" class="layui-input">
              
            </div>
        </div>

         <div class="layui-form-item">
            
            <label class="layui-form-label">学习账号</label>
            <div class="layui-input-block">
                <input type="text" name="username" lay-verify=""  placeholder="" value="<?=$row['username']?>" class="layui-input">
              
            </div>
        </div>

         <div class="layui-form-item">
            
            <label class="layui-form-label">学习密码</label>
            <div class="layui-input-block">
                <input type="text" name="pwd" lay-verify=""  placeholder="" value="<?=$row['pwd']?>" class="layui-input">
              
            </div>
        </div>

        <div class="layui-form-item">
            
            <label class="layui-form-label">级别</label>
            <div class="layui-input-block">
                <input type="text" name="level" lay-verify=""  placeholder="" value="<?=$row['level']?>" class="layui-input">
              
            </div>
        </div>

          <div class="layui-form-item">
            
            <label class="layui-form-label">层次</label>
            <div class="layui-input-block">
                <input type="text" name="cheng" lay-verify=""  placeholder="" value="<?=$row['cheng']?>" class="layui-input">
              
            </div>
        </div>

       <div class="layui-form-item">
            <label class="layui-form-label">unionid</label>
            <div class="layui-input-block">
                <input type="text"  name="unionid" placeholder="" class="layui-input" value="<?=$row['unionid']?>" >
            </div>
        </div>

         <div class="layui-form-item">
            <label class="layui-form-label">小程序openid</label>
            <div class="layui-input-block">
                <input type="text" name="openid"  placeholder="" class="layui-input" value="<?=$row['openid']?>" >
            </div>
        </div>

         <div class="layui-form-item">
            <label class="layui-form-label">公众号openid</label>
            <div class="layui-input-block">
                <input type="text"  name="gzh_openid" placeholder="" class="layui-input" value="<?=$row['gzh_openid']?>" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">token</label>
            <div class="layui-input-block">
                <input type="text"  name="token" placeholder="" class="layui-input" value="<?=$row['token']?>" >
            </div>
        </div>

        <!--<div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注信息</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea" placeholder="请输入备注信息"></textarea>
            </div>
        </div>-->

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" value="<?=$row['id']?>" name="id">
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form', 'table'], function () {
        var form = layui.form,
            layer = layui.layer,
            table = layui.table,
            $ = layui.jquery;
    
        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();
      
      
       

    });
</script>