Esempio n. 1
0
    <h2 class="main-heading text-center">
        结算
    </h2>
    <!-- Main Heading Ends -->

    <form>
        <div class="breadcrumb address-panel">
            <div class="box-title container_24"><span
                    style="float:right"><?php 
echo Html::a('管理收货地址', array('/customer/delivery-address'), array('target' => '_blank'));
?>
</span>收货地址
            </div>
            <div class="box-content">
                <?php 
list($addressList, $defaultAddress) = Kiwi::getCustomerAddress()->getAddressList();
?>
                <?php 
echo Html::radioList('address', $defaultAddress, $addressList, ['separator' => '<br />']);
?>
            </div>
        </div>
        <div class="breadcrumb">
            <div class="box-title container_24">支付方式</div>
            <div class="box-content" style="vertical-align:middle;">
                <!--        --><?php 
//        $cri = new CDbCriteria(array(
//            'condition' => 'enabled = 1'
//        ));
//        $paymentMethod = PaymentMethod::model()->findAll($cri);
//        $list = CHtml::listData($paymentMethod, 'payment_method_id', 'name');
Esempio n. 2
0
 /**
  * Finds the customerAddress model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return customerAddress the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findCustomerAddressModel($id)
 {
     $model = Kiwi::getCustomerAddress();
     if (($model = $model::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }