<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>


<!DOCTYPE html>
<html lang="zh-cn">

<jsp:include page="/admin/head.jsp"></jsp:include>

<body>
<div class="panel admin-panel">
    <div class="body-content">
        <form method="post" class="form-x" action="updateUsers" enctype="multipart/form-data">

            <div class="form-group">
                <div class="label">
                    <label>姓名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="name" value="${users.name}" placeholder="请输入姓名"
                           onblur="return checkName()" readonly/>
                    <input type="hidden" value="${users.id}" name="id">
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>账号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="uname" value="${users.uname}" id="username"
                           placeholder="请输入账号" readonly/>
                    <input type="hidden" value="${users.id}" name="id">
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>密码：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="pwd" value="${users.pwd}" id="pwdTxt" placeholder="请输入密码"
                           readonly/>
                    <div id='pwdCheck' class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>图片：</label>
                </div>
                <div class="field">
                    <img src="../upload/${users.img}" width="100px;" height="100px;">
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>性别：</label>
                </div>
                <div class="field">
                    <select name="sex" class="input">
                        <option value="${users.sex}">${users.sex}</option>
                    </select>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>地址：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="address" value="${users.address}" id="addressTxt"
                           placeholder="请输入地址" readonly/>
                    <div id='addressCheck' class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>角色：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="utype" value="${users.utype}" id="utypeTxt"
                           placeholder="请输入角色" readonly/>
                    <div id='utypeCheck' class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>电话：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="tel" value="${users.tel}" id="telTxt" placeholder="请输入电话"
                           readonly/>
                    <div id='telCheck' class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>年龄：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="age" value="${users.age}" id="ageTxt" placeholder="请输入年龄"
                           readonly/>
                    <div id='ageCheck' class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>邮箱：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="email" value="${users.email}" id="emailTxt"
                           placeholder="请输入邮箱" readonly/>
                    <div id='emailCheck' class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>介绍：</label>
                </div>
                <div class="field">
                    ${users.note}
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>

