</h1> <div class="print"> <div> <?php if ($model->is_special_offer) { ?> <div> <?php echo '<h2>' . Yii::t('common', 'Special offer!') . '</h2>'; if ($model->is_free_to != '0000-00-00') { echo '<div>'; echo '<strong>' . Yii::t('common', 'Is avaliable') . '</strong>'; if ($model->is_free_to != '0000-00-00') { echo ' ' . Yii::t('common', 'to'); echo ' ' . Booking::getDate($model->is_free_to); } echo '</div>'; } ?> </div> <?php } ?> <div> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="320px" valign="top"> <?php $res = Images::getMainThumb(300, 200, $model->images);
$account->setStatus($request->GetVar('frm_receiptid', 'post'), $addids[$i]); } } $smarty->assign('tpl_close', 'true'); } else { include_once 'paycategoryclass.inc.php'; $pcat = new PayCategory(); $todaydate = getdate(); $day = $todaydate['mday']; $month = $todaydate['mon']; $year = $todaydate['year']; $thedate = "{$day}.{$month}.{$year}"; $smarty->assign('tpl_thedate', $thedate); $smarty->assign('tpl_guestid', $request->GetVar('frm_accountguestid', 'post')); $smarty->assign('tpl_bookingid', $request->GetVar('frm_bookid', 'post')); $smarty->assign('tpl_bookdate', $booking->getDate($request->GetVar('frm_bookid', 'post'))); $smarty->assign('tpl_receiptid', $request->GetVar('frm_receiptid', 'post')); $smarty->assign('tpl_on_receipt', $request->GetVar('frm_on_receipt', 'post')); if ($request->GetVar('frm_bookids', 'post') !== $request->undefined) { $bookids = $request->GetVar('frm_bookids', 'post'); $smarty->assign('tpl_bookids', $bookids); for ($i = 0; $i < count($bookids); $i++) { $bookings[$i] = $booking->getDate($bookids[$i]); } $smarty->assign('tpl_bookings', $bookings); } if ($request->GetVar('frm_difference', 'post') !== $request->undefined) { $difference = number_format(strtr($request->GetVar('frm_difference', 'post'), ',', '.'), 2, '.', ''); } else { $difference = ""; }
<?php if ($data->is_special_offer) { ?> <div class="big-special-offer"> <?php echo '<h4>' . Yii::t('common', 'Special offer!') . '</h4>'; if ($data->is_free_from != '0000-00-00' && $data->is_free_to != '0000-00-00') { echo '<p>'; echo Yii::t('common', 'Is avaliable'); if ($data->is_free_from != '0000-00-00') { echo ' ' . Yii::t('common', 'from'); echo ' ' . Booking::getDate($data->is_free_from); } if ($data->is_free_to != '0000-00-00') { echo ' ' . Yii::t('common', 'to'); echo ' ' . Booking::getDate($data->is_free_to); } echo '</p>'; } ?> </div> <?php } ?> <?php if (param('useShowUserInfo')) { echo '<div class="apartment-user-info' . ($data->is_special_offer ? ' top50' : '') . '">'; $this->widget('zii.widgets.jui.CJuiTabs', array('tabs' => array(tc('Listing provided by') => $this->renderPartial('//../modules/apartments/views/_user_info', array('data' => $data), true)), 'htmlOptions' => array('class' => 'info-tabs'))); echo '</div>'; }