本文整理匯總了PHP中TimeHelper::getExtendedTimePicker方法的典型用法代碼示例。如果您正苦於以下問題:PHP TimeHelper::getExtendedTimePicker方法的具體用法?PHP TimeHelper::getExtendedTimePicker怎麽用?PHP TimeHelper::getExtendedTimePicker使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TimeHelper
的用法示例。
在下文中一共展示了TimeHelper::getExtendedTimePicker方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
echo $form->labelEx($model, 'email');
?>
<?php
echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 100));
?>
<?php
echo $form->error($model, 'email');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'Date of Birth');
?>
<?php
$timers = TimeHelper::getExtendedTimePicker();
?>
<?php
$day_selected = str_replace('0', '', date('d', strtotime($model->dob)));
$month_selected = str_replace('0', '', date('m', strtotime($model->dob)));
$year_selected = date('Y', strtotime($model->dob));
?>
<?php
echo CHtml::dropDownList('Members[dob_day]', $day_selected ? $day_selected : '*', $timers['days']);
?>
<?php
echo CHtml::dropDownList('Members[dob_month]', $month_selected ? $month_selected : '*', $timers['months']);
?>
<?php
echo CHtml::dropDownList('Members[dob_year]', $year_selected ? $year_selected : 1990, $timers['years']);
?>