<div class="eject_con">
  <div id="warning" class="alert alert-error"></div>
  <form action="{:url('/Home/Sellerreturn/receive',['return_id'=>$return.refund_id])}" method="post" id="post_form">
    <input type="hidden" name="form_submit" value="ok" />
	  <dl>
	    <dt>发货时间{$Think.lang.ds_colon}</dt>
	    <dd> <?php echo date("Y-m-d H:i:s",$return['delay_time']); ?> </dd>
	  </dl>
	  <dl>
	    <dt>物流信息{$Think.lang.ds_colon}</dt>
	    <dd> <?php echo $e_name.' , '.$return['invoice_no']; ?> </dd>
	  </dl>
    <dl>
      <dt><i class="required">*</i>收货情况{$Think.lang.ds_colon}</dt>
      <dd><select name="return_type">
          <option value="">{$Think.lang.ds_please_choose}</option>
          <option value="4"><?php echo '已收到'; ?></option>
          <?php if ($delay_time > 0) { ?>
          <option value="3"><?php echo '未收到'; ?></option>
          <?php } ?>
        </select>
        <p class="hint">如果暂时没收到请联系买家，发货 <?php echo $return_delay;?> 天后可以选择未收到，买家可以廷长时间，超过 <?php echo $return_confirm;?> 天不处理按弃货处理。</p>
      </dd>
    </dl>
    <div class="bottom">
        <label class="submit-border"><input type="submit" class="submit" id="confirm_yes" value="" />{$Think.lang.ds_ok}</label>
    </div>
  </form>
</div>
<script type="text/javascript">
$(function(){
    $('#post_form').validate({
        errorLabelContainer: $('#warning'),
        invalidHandler: function(form, validator) {
               $('#warning').show();
        },
         submitHandler: function(form) {
			    	ajaxpost('post_form', '', '', 'onerror');
				 },
        rules : {
            return_type : {
                required   : true
            }
        },
        messages : {
            return_type  : {
                required  : '<i class="icon-exclamation-sign"></i>请选择收货情况'
            }
        }
	    });
});
</script>