コード例 #1
0
ファイル: order.php プロジェクト: snapfrozen/boxomatic
	<?php 
$form = $this->beginWidget('application.widgets.SnapActiveForm', array('id' => 'extras-form', 'enableAjaxValidation' => false));
?>
	<div class="large-3 columns products order">
		<?php 
if ($Customer) {
    ?>
		<h2>Your order (<?php 
    echo SnapFormat::currency($Customer->totalByDeliveryDate($DeliveryDate->id));
    ?>
)</h2>
		
		<div class="items row list-view">
		<?php 
    foreach ($DeliveryDate->MergedBoxes as $Box) {
        $UserBox = UserBox::findUserBox($DeliveryDate->id, $Box->size_id, Yii::app()->user->user_id);
        if (!$UserBox) {
            continue;
        }
        $quantity = $UserBox ? $UserBox->quantity : 0;
        ?>
		
			<div class="view large-12 columns">
				<div class="row">
					<div class="large-4 columns">
						<div class="image">
						<?php 
        if (!empty($Box->BoxSize->image)) {
            ?>
							<?php 
            echo CHtml::image($this->createUrl('boxSize/image', array('id' => $Box->BoxSize->id)));