<%@ 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="移动顺序111"/></jsp:include>
<form id="formMove" action="<%=basePath%>/admin/HotWord/doMove.action" method="post" role="form">
    <input type="hidden" name="id" value="${model.id}" />
    <input type="hidden" name="word" value="${model.word}" />
    <input type="hidden" name="createdAt" value="${model.createdAt}" />
    <input type="hidden" name="createdBy" value="${model.createdBy}" />

    <div class="form-group">
        <label for="sort">排序值</label>
        <input type="text" id="sort" name="sort"   class="form-control" />
        <span class="help-block"></span>
    </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>
<script type="text/javascript">
    $("#btnSave").click(function() {
        var reg=/^[0-9]+$/;
        var result= reg.test($("#sort").val());
        if(result) {
            $('#formMove').ajaxSubmitCloseRefresh();
        }else{
            alert("请输入数字！");
            reurn;
        }

    });

    $(".input-group.date").datetimepicker({
        format: "YYYY-MM-DD",
        locale: "zh-cn"
    });
</script>
<jsp:include page="../../../common/admin/modal_footer_post.jsp"></jsp:include>