id)); $strreset = get_string('reset'); $strresetcourse = get_string('resetcourse'); $strremove = get_string('remove'); print_header($course->fullname.': '.$strresetcourse, $course->fullname.': '.$strresetcourse, ''.$course->shortname.' -> '.$strresetcourse); print_simple_box_start(); print_heading($strresetcourse); /// If we have data, then process it. if ($data = data_submitted() and confirm_sesskey()) { $data->courseid = $course->id; reset_course_userdata($data, true); if (!empty($data->reset_start_date)) { if (set_field('course', 'startdate', make_timestamp($data->startyear, $data->startmonth, $data->startday), 'id', $course->id)) { notify(get_string('datechanged'), 'notifysuccess'); } } print_continue('view.php?id='.$course->id); // Back to course page print_simple_box_end(); print_footer($course); exit; } /// Print forms so the user can make choices about what to delete print_simple_box(get_string('resetinfo'), 'center', '60%'); echo '
'; print_simple_box_end(); print_footer($course); ?>