|
|
|
@ -46,7 +46,11 @@ echo Display::page_header($nameTools); |
|
|
|
|
|
|
|
|
|
/* MAIN CODE */ |
|
|
|
|
|
|
|
|
|
if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (isset($_POST['recycle_option']) && $_POST['recycle_option'] == 'full_backup')) { |
|
|
|
|
if ((isset($_POST['action']) && |
|
|
|
|
$_POST['action'] == 'course_select_form') || |
|
|
|
|
(isset($_POST['recycle_option']) && |
|
|
|
|
$_POST['recycle_option'] == 'full_backup') |
|
|
|
|
) { |
|
|
|
|
if (isset($_POST['action']) && $_POST['action'] == 'course_select_form') { |
|
|
|
|
$course = CourseSelectForm::get_posted_course(); |
|
|
|
|
} else { |
|
|
|
@ -74,7 +78,7 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is |
|
|
|
|
echo get_lang('NoResourcesToRecycle'); |
|
|
|
|
} else { |
|
|
|
|
Display::display_warning_message(get_lang('RecycleWarning'), false); |
|
|
|
|
$form = new FormValidator('recycle_course', 'post', 'recycle_course.php?'.api_get_cidreq()); |
|
|
|
|
$form = new FormValidator('recycle_course', 'post', api_get_self().'?'.api_get_cidreq()); |
|
|
|
|
$form->addElement('header', get_lang('SelectOptionForBackup')); |
|
|
|
|
$form->addElement('radio', 'recycle_option', null, get_lang('FullRecycle'), 'full_backup'); |
|
|
|
|
$form->addElement('radio', 'recycle_option', null, get_lang('LetMeSelectItems'), 'select_items'); |
|
|
|
|