<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>
<?php
$form = $this->form;
$form->prepare();

?>
<div class="container">
    <div class="xm-plain-box">
        <div class="box-hd">
            <h3 class="title"><?php echo $this->translate('订单支付'); ?></h3>
        </div>
    </div>
    <?php echo $this->form()->openTag($form); ?>
    <?php echo $this->formElement($form->get('shopCsrf')); ?>
    <?php echo $this->formElementErrors($form->get('shopCsrf'), ['class'=>'error-message']); ?>
    <div class="box-hd">
        <p style="font-size:16px;margin-left: 450px;"><strong><?php echo $this->translate('订单金额'); ?>：<font color="color:#ED145B"><?php echo $this->shopHelper()->orderCurrency($this->orderInfo->getOrderAmount(), $this->orderInfo->getCurrencySymbol()); ?></font></strong></p>
        <p style="font-size:16px;margin-left: 450px;"><strong><?php echo $this->translate('订单编号'); ?>：<font color="color:#ED145B"><?php echo $this->orderInfo->getOrderSn(); ?></font></strong></p>
        <p style="font-size:16px;margin-left: 450px;">
            <?php echo $this->translate('选择支付方式完成支付'); ?>：
            <?php $defaultPaymentCode = $this->orderInfo->getPaymentCode(); if($this->paymentList) foreach ($this->paymentList as $paymentKey => $paymentValue) { ?>
                <label>
                    <input type="radio" name="paymentCode" value="<?php echo $paymentValue['editAction']; ?>" <?php if (($defaultPaymentCode && $defaultPaymentCode == $paymentValue['editAction']) || (!$defaultPaymentCode && $paymentKey == 0)) echo 'checked'; ?>>
                    <img src="<?php echo $this->basePath($paymentValue['paymentLogo']['content']); ?>" style="border:1px solid #D7D7D7; margin-left:8px;">
                </label>
            <?php } ?>
            <?php echo $this->formElementErrors($form->get('paymentCode'), ['class'=>'error-message']); ?>
        </p>
        <hr>
        <p style="text-align: center;">
            <input type="button" class="btn" onClick="location.href='<?php echo $this->url('shop'); ?>'" value="<?php echo $this->translate('继续去购物'); ?>">&nbsp;&nbsp;
            <input type="submit" class="btn btn-primary" value="<?php echo $this->translate('马上去支付'); ?>">&nbsp;&nbsp;
            <input type="button" class="btn" onClick="location.href='<?php echo $this->url('home-order'); ?>'" value="<?php echo $this->translate('查看订单详情'); ?>">
        </p>
    </div>
    <?php echo $this->form()->closeTag(); ?>
</div>