<rdoc:include file="head.htm" />
<div class="portlet box default">


<div class="portlet-body form">

    <!-- BEGIN FORM-->
    <form action="$_base" name='ruiform' method="POST" class="form-horizontal" id="ruiform">
        <input type="hidden" name="sbt" value="$sbt">
        <input type="hidden" name="component" value="$component">
        <input type="hidden" name="task" value="password">
    
        <div class="form-body">
            
            <div class="form-group">
                <label class="control-label col-md-3">新密码</label>                
                <div class="col-md-4">
                    <label class="control-label col-md-3" id="newpassword"> dfasdfa </lable>
                </div>
            </div>
            
        </div>
        <div class="form-actions">
            <div class="row">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green" id="btnSubmit">确定重置</button>
                </div>
            </div>
        </div>
    </form>
    <!-- END FORM-->
</div>
</div>

<script type="text/javascript">
jQuery(document).ready(function() {
    
    $('#ruiform').validate({
                errorElement: 'span', //default input error message container
                errorClass: 'help-block', // default input error message class
                focusInvalid: false, // do not focus the last invalid input
                rules: {
                },
                messages: {  
                           
                },

                invalidHandler: function (event, validator) { //display error alert on form submit   
                    $('.alert-danger', $('.login-form')).show();
                },

                highlight: function (element) { // hightlight error inputs
                    $(element)
                        .closest('.form-group').addClass('has-error'); // set error class to the control group
                },

                success: function (label) {
                    label.closest('.form-group').removeClass('has-error');
                    label.remove();
                },

                errorPlacement: function (error, element) {
                    error.insertAfter(element);
                },

                submitHandler: function (form) {
                    showWaiting("请稍后。。。");    
                       var  formData = $(form).serializeArray();                       
                       $.post(form.action, formData, function(res) {
                            if (res.status == 0) {
                                rui.showTSuccess('操作成功.');                           
                            } else {
                               rui.showTError('操作失败:'+res.status);
                            }
                        }).error(function(){
                              rui.showTError('系统错误！');      
                        }); 
                    closeWaiting();
                }
            });
});
   
</script>

<rdoc:include file="foot.htm" />