<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>修改密码</title>
</head>
<body>
<div class="container" style="width: 1200px;">
    <form id="input_form" class="form-horizontal valid"
          action="${ctx}/modifyPWD"
          method="get">
        <house365:flushMessage/>
        <div class="row${fluid}">
            <div>
                <div class="form-horizontal house365Page">
                    <div class="house365Border">
                        <!-- 片段头 begin -->
                        <div class="sectionTitle">
                            <h5>修改密码</h5>
                        </div>
                        <div class="row-fluid">
                            <div class="span6 control-group">
                                <label class="control-label">原始密码:</label>
                                <div class="controls">
                                    <input type="password" id="nowPwd"
                                           name="nowPwd" class="required"/>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span6 control-group">
                                <label class="control-label">新密码:</label>
                                <div class="controls">
                                    <input type="password" id="newPwd"
                                           name="newPwd" class="required"/>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span6 control-group">
                                <label class="control-label">确认新密码:</label>
                                <div class="controls">
                                    <input type="password" id="againNewPwd"
                                           name="againNewPwd" class="required" PdEq="#newPwd"/>
                                </div>
                            </div>
                        </div>

                        <div class="row-fluid">
                            <div class="span6 control-group">
                                <div class="controls">
                                    <button type="submit" class="btn blue" onClick="btnSubmit()"><i
                                            class="icon-save"></i>&nbsp;保存
                                    </button>
                                </div>
                            </div>
                        </div>

                        <input type="hidden" value="${successFlag}" id="successFlag">
                    </div>
                </div>
            </div>
    </form>

    <script type="text/javascript">
        $(document).ready(function () {
            if ($("#successFlag").val()) {
                setTimeout(reLogin, 1000);
                /* $('body').oneTime('1s',function(){
                 window.location = "/logout";
                 }); */
            }

            function reLogin() {
                window.location = "${ctx}/logout";
            }
        })

        function btnSubmit() {
            /*  var $form = $("#input_form");
             $.ajax({
             url: $form.attr("action")+"?222=111",
             type: "GET",
             data: $form.serialize(),
             success: function (data) {
             alert(111);
             }
             }); */
        }
    </script>
</div>
</body>

</html>
