<%@ page import="com.lightinit.hsdatashow.dictionary.DicResourceCatelogType" %>
<%@ page import="com.lightinit.hsdatashow.dictionary.DicUserAccountLockType" %>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String basePath = request.getContextPath();
%>
<jsp:include page="../../../common/admin/modal_content_pre.jsp">
    <jsp:param name="modal_title" value="新增用户"/>
</jsp:include>
<form id="formAdd"  action="<%=basePath%>/admin/user/add.action" method="post" class="form-horizontal">
    <div class="form-group">
        <div class="form-group">
            <label for="username" class="col-sm-3 control-label"><span style="color: red;">*</span>用户账号</label>
            <div class="col-sm-8">
                <input type="text" id="username" name="username" class="form-control"/>
                <span class="field-validation-valid help-block"></span>
            </div>
        </div>
        <div class="form-group">
            <label for="showname" class="col-sm-3 control-label"><span style="color: red;">*</span>用户全称</label>
            <div class="col-sm-8">
                <input type="text" id="showname" name="showname" class="form-control"/>
                <span class="field-validation-valid help-block"></span>
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-sm-3 control-label"><span style="color: red;">*</span>用户密码</label>
            <div class="col-sm-8">
                <input type="password" id="password" name="password" class="form-control"/>
                <span class="field-validation-valid help-block"></span>
            </div>
        </div>
        <div class="form-group">
            <label for="salt" class="col-sm-3 control-label">密码盐</label>
            <div class="col-sm-8">
                <input type="text" id="salt" name="salt" class="form-control"
                value="系统将自动生成盐" readonly/>
            </div>
        </div>
        <div class="form-group">
            <label for="accountlock" class="col-sm-3 control-label">用户状态</label>
            <div class="col-sm-8">
                <select id="accountlock" name="accountlock" class="form-control">
                    <option value="0" selected="selected"><%=DicUserAccountLockType.NORMAL%></option>
                    <option value="1"><%=DicUserAccountLockType.LOCKING%></option>
                </select>
            </div>
        </div>

    </div>
</form>
<jsp:include page="../../../common/admin/modal_content_post.jsp"></jsp:include>
<jsp:include page="../../../common/admin/modal_footer_pre.jsp"></jsp:include>
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-close"></i>取消</button>
<button type="button" id="btnSave" class="btn btn-primary"><i class="fa fa-check"></i>保存</button>
<jsp:include page="../../../common/admin/modal_footer_post.jsp"></jsp:include>
<script type="text/javascript">
    $("#btnSave").click(function() {
        $('#formAdd').ajaxSubmitCloseRefresh();
    });

</script>