<%@ 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="addUsers.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" id="nameTxt" placeholder="请输入姓名"
                           onblur="return checkName()"/>
                    <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" id="unameTxt" placeholder="请输入账号" required/>
                    <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" id="pwdTxt" placeholder="请输入密码" required/>
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>重复密码：</label>
                </div>
                <div class="field">
                    <input type="password" class="input"  id="pwdTxtConfirm" placeholder="请输入重复密码" required/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>图片：</label>
                </div>
                <div class="field">
                    <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="男">男</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" 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="普通用户">普通用户</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" id="telTxt" placeholder="请输入电话" required/>
                    <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" 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" 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"></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>


