當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Booking::getJsDateFormat方法代碼示例

本文整理匯總了PHP中Booking::getJsDateFormat方法的典型用法代碼示例。如果您正苦於以下問題:PHP Booking::getJsDateFormat方法的具體用法?PHP Booking::getJsDateFormat怎麽用?PHP Booking::getJsDateFormat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Booking的用法示例。


在下文中一共展示了Booking::getJsDateFormat方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

?>
	</div>
</div>
<div class="row">
	<div class="full-multicolumn-first">
		<?php 
echo $form->labelEx($model, 'date_end');
?>
		<?php 
/*if(!$model->date_end){
			$model->date_end = Yii::app()->dateFormatter->formatDateTime(time()+60*60*24, 'medium', null);
		}*/
if (!$isSimpleForm && $useBookingCalendar) {
    $this->widget('application.modules.bookingcalendar.extensions.FFJuiDatePicker', array('model' => $model, 'attribute' => 'date_end', 'range' => 'eval_period', 'language' => Yii::app()->language, 'options' => array('showAnim' => 'fold', 'dateFormat' => Booking::getJsDateFormat(), 'minDate' => 'new Date()')));
} else {
    $this->widget('application.extensions.FJuiDatePicker', array('model' => $model, 'attribute' => 'date_end', 'range' => 'eval_period', 'language' => Yii::app()->language, 'options' => array('showAnim' => 'fold', 'dateFormat' => Booking::getJsDateFormat(), 'minDate' => 'new Date()')));
}
?>
		<?php 
echo $form->error($model, 'date_end');
?>
	</div>
	<div class="full-multicolumn-second">
		<?php 
echo $form->labelEx($model, 'time_out');
?>
		<?php 
echo $form->dropDownList($model, 'time_out', $this->getTimesOut(), array('class' => 'width150'));
?>
		<?php 
echo $form->error($model, 'time_out');
開發者ID:alexjkitty,項目名稱:estate,代碼行數:31,代碼來源:_form.php

示例2: isset

<div class="<?php 
echo $divClass;
?>
">
    <div class="<?php 
echo $controlClass;
?>
">
        <?php 
$bStart = isset($this->bStart) ? $this->bStart : HDate::formatForDatePicker(time());
$bEnd = isset($this->bEnd) ? $this->bEnd : null;
echo tc('Booking from') . ':&nbsp;';
$this->widget('application.extensions.FJuiDatePicker', array('name' => 'b_start', 'value' => $bStart, 'range' => 'eval_period', 'language' => Yii::app()->controller->datePickerLang, 'options' => array('showAnim' => 'fold', 'dateFormat' => Booking::getJsDateFormat(), 'minDate' => 'new Date()'), 'htmlOptions' => array('class' => 'width70', 'readonly' => 'true')));
echo ' ' . tc('to') . ':&nbsp;';
$this->widget('application.extensions.FJuiDatePicker', array('name' => 'b_end', 'value' => $bEnd, 'range' => 'eval_period', 'language' => Yii::app()->controller->datePickerLang, 'options' => array('showAnim' => 'fold', 'dateFormat' => Booking::getJsDateFormat(), 'minDate' => 'new Date()'), 'htmlOptions' => array('class' => 'width70', 'readonly' => 'true')));
?>
    </div>
</div>
開發者ID:barricade86,項目名稱:raui,代碼行數:18,代碼來源:_search_field_booking.php


注:本文中的Booking::getJsDateFormat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。