]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19789 Upgraded calls to print_time_selector and print_date_selector
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:08:50 +0000 (01:08 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:08:50 +0000 (01:08 +0000)
backup/restore_form.html

index 22445249b0023ed842bc4645ed5a4c82334c6e20..cc59e9e4fb2e0c636db49da87e9bb141abd3b9f9 100644 (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');