41 $datetime = getdate(
$value);
43 $date->setAttribute(
'id',
$name.
'-date');
48 for (
$i = 0;
$i < 24; ++
$i) {
49 for (
$j = 0;
$j < 60;
$j =
$j + 10) {
50 $key = (
$i * 3600) + (
$j * 60);
51 $timearray[$key] = (
$j != 0) ?
$i .
':' .
$j :
$i .
':0' .
$j;
57 new Select(
'',
$name .
'[time]', $datetime[
'hours'] * 3600 + 600 * ceil($datetime[
'minutes'] / 10));
58 $timeselect->setAttribute(
'id',
$name.
'-time');
59 $timeselect->addOptionArray($timearray);
60 $timeselect->setClass(
'span2');