当前位置: 首页>>代码示例>>PHP>>正文


PHP Booking::getDate方法代码示例

本文整理汇总了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);
开发者ID:barricade86,项目名称:raui,代码行数:31,代码来源:view_print.php

示例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 = "";
    }
开发者ID:BackupTheBerlios,项目名称:zvs,代码行数:31,代码来源:addtoaccount.php

示例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>';
}
开发者ID:alexjkitty,项目名称:estate,代码行数:31,代码来源:_view.php


注:本文中的Booking::getDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。