MDL-19789 Upgraded calls to print_time_selector and print_date_selector

This commit is contained in:
nicolasconnault
2009-08-06 01:08:50 +00:00
parent e344da638a
commit bb587f9b10
+5 -1
View File
@@ -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');