<%@ 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.do" 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}"  id="nameTxt"  placeholder="请输入姓名"  onblur="return checkName()"  />
                    <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="unameTxt1"   placeholder="请输入账号" readonly  />
                    <input type="hidden" value="${users.id}" id="idTxt" name="id">
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>密码：</label>
                </div>
                <div class="field">
                    <input type="password" class="input" name="pwd" value="${users.pwd}"  id="pwdTxt"  placeholder="请输入密码"    />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>图片：</label>
                </div>
                <div class="field">
                    <img src="../upload/${users.img}" width="50px;" height="50px;">
                    <input type="file" class="input" name="file"   />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>性别：</label>
                </div>
                <div class="field">
                    <select name="sex" class="input" id="sexTxt">
                        <option value="${users.sex}"  >${users.sex}</option>
                        <option value="男" >男</option>
                        <option value="女" >女</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="请输入地址"  />
                    <div id='addressCheck' class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>角色：</label>
                </div>
                <div class="field">
                    <select name="utype" class="input" id="utype">
                        <option value="${users.utype}" >${users.utype}</option>
                        <option value="普通用户" >普通用户</option>
                    </select>
                    <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="请输入电话"  />
                    <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="请输入年龄"  />
                    <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="请输入邮箱"  />
                    <div id='emailCheck' class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>介绍：</label>
                </div>
                <div class="field">
                    <textarea class="form-control" id="note" rows="5" id="noteTxt" style="width: 680px;" name="note">${users.note}</textarea>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit" onclick="return check()"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>

