MDL-19789 Upgraded calls to print_time_selector and print_date_selector
This commit is contained in:
@@ -284,7 +284,11 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
||||
/// (some formats like main page, social..., haven't it and rolling dates
|
||||
/// from 0 produces crazy dates. MDL-10125
|
||||
if ($form1->startdate) {
|
||||
print_date_selector("startday", "startmonth", "startyear", $form1->startdate);
|
||||
$dayselector = moodle_select::make_time_selector('days', "startday", $form1->startdate);
|
||||
$monthselector = moodle_select::make_time_selector('months', "startmonth", $form1->startdate);
|
||||
$yearselector = moodle_select::make_time_selector('years', "startyear", $form1->startdate);
|
||||
|
||||
echo $OUTPUT->select($dayselector) . $OUTPUT->select($monthselector) . $OUTPUT->select($yearselector);
|
||||
helpbutton("coursestartdate", get_string("startdate"));
|
||||
} else {
|
||||
print_string('notavailable');
|
||||
|
||||
Reference in New Issue
Block a user