当前位置: 首页>>代码示例>>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;未经允许,请勿转载。