15 $form = $this->beginWidget(
'CActiveForm',
16 array(
'id'=>
'order-finish-form',
17 'enableAjaxValidation'=>
true,
23 <table width=
"100%" cellspacing=
"0" cellpadding=
"0" class=
"items">
31 <th
class=
"item_quantity"> <?php echo
Item::model()->getAttributeLabel(
'quantity'); ?></th>
32 <th
class=
"item_title"> <?php echo
Item::model()->getAttributeLabel(
'title'); ?></th>
33 <th
class=
"item_price"> <?php echo
Item::model()->getAttributeLabel(
'price'); ?></th>
38 foreach($this->items as $i=>$item):
39 $sum += $item->price * $item->quantity;
42 <td
class=
"item_quantity"><?php echo $item->quantity ?></td>
43 <td
class=
"item_title">
44 <a <?php
if($this->link_items_to_page){echo
"href='".$item->referrer.
"'";} ?>>
45 <?php echo $item->title; ?>
54 <td
class=
"item_sum"><?php echo
Item::addCurrency($sum + Yii::app()->getModule(
'shoppingcart')->shipping_costs); ?></td>
58 </div><!-- row - items table -->
60 <div
class=
"row block">
61 <label><?php echo $this->order->getAttributeLabel(
'shipping_info'); ?></label>
63 <?php echo $this->shipping_info; ?>
67 <div
class=
"row block">
68 <label><?php echo $this->order->getAttributeLabel(
'payment_info'); ?></label>
70 <?php echo $this->payment_info; ?>
74 <?php
if(Yii::app()->user->getState(
'step_2')==
true): ?>
75 <div
class=
"row block">
77 <table
class=
"user" width=
"500">
79 <col width=
"50%"><col width=
"50%">
81 <?php
foreach($this->user->attributes as $fieldName => $field):
82 if(substr($fieldName,-2) ==
'id' || empty($field))
continue; ?>
84 <td
class=
"label"><?php echo $this->user->getAttributeLabel($fieldName); ?></td>
85 <td
class=
"value"><?php echo $field; ?></td>
92 <div
class=
"row block captcha">
94 if (!(!CCaptcha::checkRequirements() || !Yii::app()->user->isGuest || !Yii::app()->getModule(
'shoppingcart')->captchaEnabled)):
95 $this->widget(
'CCaptcha',array(
'captchaAction' =>
'/shoppingcart/shoppingcart/captcha' ,
'buttonLabel'=>
ShoppingcartModule::t(
'Get a new code')));
96 echo $form->textField($this->order,
'verifyCode');
97 echo $form->error($this->order,
'verifyCode');
99 echo $form->hiddenField($this->order,
'verifyCode');
104 <input type=
"hidden" name=
"step" value=
"<?php echo $this->step ?>">
106 <div
class=
"row controls">
110 <?php $this->endWidget(); ?>