<div class="eject_con">
    <div id="warning"></div>
    <?php if ($order_info) {?>
    <form id="changeform" method="post" action="{:url('/home/sellerorder/change_state',['state_type'=>'modify_price','order_id'=>$order_info.order_id])}">
        <input type="hidden" name="form_submit" value="ok" />
        <dl>
            <dt>{$Think.lang.store_order_buyer_with}{$Think.lang.ds_colon}</dt>
            <dd><?php echo $order_info['buyer_name']; ?></dd>
        </dl>
        <dl>
            <dt>{$Think.lang.store_order_sn}{$Think.lang.ds_colon}</dt>
            <dd><span class="num"><?php echo $order_info['order_sn']; ?></span></dd>
        </dl>
        <dl>
            <dt>运费{$Think.lang.ds_colon}</dt>
            <dd>
                <input type="text" class="text" id="shipping_fee" name="shipping_fee" value="<?php echo $order_info['shipping_fee']; ?>"/>
            </dd>
        </dl>
        <dl class="bottom">
            <dt>&nbsp;</dt>
            <dd>
                <input type="submit" class="submit" id="confirm_button" value="{$Think.lang.ds_ok}" />
            </dd>
        </dl>
    </form>
    <?php } else { ?>
    <p style="line-height:80px;text-align:center">该订单并不存在，请检查参数是否正确!</p>
    <?php } ?>
</div>
<script type="text/javascript">
$(function(){
    $('#changeform').validate({
    	errorLabelContainer: $('#warning'),
        invalidHandler: function(form, validator) {
           var errors = validator.numberOfInvalids();
           if(errors){ $('#warning').show();}else{ $('#warning').hide(); }
        },
     	submitHandler:function(form){
    		ajaxpost('changeform', '', '', 'onerror'); 
    	},    
	    rules : {
        	order_amount : {
	            required : true,
	            number : true
	        }
	    },
	    messages : {
	    	order_amount : {
	    	required : '{$Think.lang.store_order_modify_price_gpriceerror}',
            	number : '{$Think.lang.store_order_modify_price_gpriceerror}'
	        }
	    }
	});
});
</script>