<%@ 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>
<script type="text/javascript" src="/util/js/jquery-1.10.1.js"></script>

<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="addReg.do" enctype="multipart/form-data"
                      onsubmit="return check()">
                    <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" id="nameTxt"
                                   placeholder="请输入姓名" onblur="return checkName()" required/>
                            <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="uname" id="unameTxt"
                                   placeholder="请输入账号" required/>
                            <div class="help-block m-b-none" id='unameCheck'></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" id="pwdTxt"
                                   placeholder="请输入密码" required/>
                            <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="password" class="form-control" id="pwdTxtConfirm"
                                   placeholder="请输入重复密码" required/>
                            <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="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="男">男</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="utype" id="utypeTxt"
                                   placeholder="请输入角色"/>
                            <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" id="telTxt"
                                   placeholder="请输入手机号" required/>
                            <input type="hidden" value="普通用户" name="utype">
                            <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="email" class="form-control" name="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" onclick="return check()">保存</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


</body>
</html>


