Exemplo n.º 1
0
    $tpl->date_end_date = TimeDate::toDisplayDate($focus->end_time, true);
}
$date_end_time_hour = TimeDate::format($focus->end_time, '%I', true);
$date_end_time_minute = TimeDate::format($focus->end_time, '%M', true);
$date_end_time_meridiem = strtolower(TimeDate::format($focus->end_time, '%p', true));
// BUG 326 - Optionally allo 24-hour format
if (intval($jTips['Is24Hour']) == 1) {
    $hour_end = 23;
    if ($date_end_time_meridiem == 'pm') {
        $date_end_time_hour += 12;
    }
} else {
    $hour_end = 12;
}
$tpl->date_end_time_hour = jTipsHTML::integerSelectList(1, $hour_end, 1, 'date_end_time_hour', "class='inputbox'", $date_end_time_hour);
$tpl->date_end_time_minute = jTipsHTML::integerSelectList('00', $end, $step, 'date_end_time_minute', "class='inputbox'", $date_end_time_minute);
if (intval($jTips['Is24Hour']) == 1) {
    $tpl->date_end_time_meridiem = '';
} else {
    $tpl->date_end_time_meridiem = jTipsHTML::selectList($meridiemOptions, 'date_end_time_meridiem', "class='inputbox'", 'value', 'text', $date_end_time_meridiem);
}
$jSeason = new jSeason($database);
$jSeasons = forceArray($jSeason->loadByParams());
$options = array(jTipsHTML::makeOption('', $jLang['_ADMIN_USERS_SELECT_SEASON']));
foreach ($jSeasons as $season) {
    $options[] = jTipsHTML::makeOption($season->id, $season->name);
}
$tpl->selectLists['season_id'] = jTipsHTML::selectList($options, 'season_id', "id='season_id' class='inputbox' onChange='getTheRounds(this);'", 'value', 'text', $focus->season_id);
$roundOptions = array(jTipsHTML::makeOption('', $jLang['_ADMIN_CONF_NONE']));
$tpl->selectLists['roundnum'] = jTipsHTML::selectList($roundOptions, 'roundnum', "disabled id='roundnum', class='inputbox'", 'value', 'text', $focus->round);
$tpl->display();