本文整理汇总了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');
示例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') . ': ';
$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') . ': ';
$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>