本文整理汇总了PHP中Booking::getDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Booking::getDate方法的具体用法?PHP Booking::getDate怎么用?PHP Booking::getDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Booking
的用法示例。
在下文中一共展示了Booking::getDate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</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);
示例2: PayCategory
$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 = "";
}
示例3: array
<?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>';
}