<%@ 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="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form method="post" class="form-horizontal" action="updatePersonUser.do" enctype="multipart/form-data">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账号：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="uname"
                                   value="${users.uname}" id="unameTxt1"
                                   placeholder="请输入账号" readonly/>
                            <input type="hidden" value="${users.id}" name="id">
                            <div class="help-block m-b-none"></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="name"
                                   value="${users.name}" id="nameTxt"
                                   placeholder="请输入名称" onblur="return checkName()"/>
                            <input type="hidden" value="${users.id}" id="idTxt" name="id">
                            <div class="help-block m-b-none"></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">图片：</label>
                        <div class="col-sm-10">
                            <img src="../upload/${users.img}" width="50px;" height="50px;">
                            <input type="file" class="form-control" name="file"/>
                            <div class="help-block m-b-none"></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">性别：</label>
                        <div class="col-sm-10">
                            <select name="sex" class="form-control" id="sexTxt">
                                <option value="${users.sex}">${users
                                        .sex}</option>
                                <option value="男">男</option>
                                <option value="女">女</option>
                            </select>
                            <div class="help-block m-b-none"></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">地址：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="address"
                                   value="${users.address}" id="addressTxt"
                                   placeholder="请输入地址"/>
                            <div class="help-block m-b-none" id='addressCheck'></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码：</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control" name="pwd"
                                   value="${users.pwd}" id="pwdTxt"
                                   placeholder="请输入密码"/>
                            <div class="help-block m-b-none"></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">角色：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="utype"
                                   value="${users.utype}" id="utypeTxt"
                                   placeholder="请输入角色" readonly/>
                            <div class="help-block m-b-none" id='utypeCheck'></div>
                        </div>
                    </div>




                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">电话：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="tel"
                                   value="${users.tel}" id="telTxt"
                                   placeholder="请输入电话"/>
                            <div class="help-block m-b-none" id='telCheck'></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">年龄：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="age"
                                   value="${users.age}" id="ageTxt"
                                   placeholder="请输入年龄"/>
                            <div class="help-block m-b-none" id='ageCheck'></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">邮箱：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="email"
                                   value="${users.email}" id="emailTxt"
                                   placeholder="请输入邮箱"/>
                            <div class="help-block m-b-none" id='emailCheck'></div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            <button class="btn btn-primary" type="submit">保存</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>

