plugin->is_test_constructor()) { $forward_to = WWW_ROOT . "assessments/assessment/{$assessment_id}/candidates"; } $input_values = get_inputs(); $_SESSION['input_values'] = $input_values; if (get_input('delete_button', false)) { if (!is_array($ids)) { $TeKe->add_system_message(_("Delete failed"), 'error'); forward($forward_to); } else { $delete_failed = false; foreach ($ids as $id) { if (!$TeKe->plugin->deleteType("candidate", $id)) { $delete_failed = true; } } if ($delete_failed) { $TeKe->add_system_message(_("At least one of the deletions failed."), 'error'); forward($forward_to); } } $TeKe->add_system_message(_("Deleted")); } else if (get_input("reminder_button", false)) { if (!is_array($ids)) { forward($forward_to); } else { $email_content = get_input("reminder_text", ""); foreach ($ids as $id) { $candidate = $TeKe->plugin->loadType("candidate", $id); if (!$candidate->isAssessmentFinished() && $candidate->getEmail()) { $candidate->sendReminderMail($email_content); } } } } else { $TeKe->add_system_message(_("No action")); } forward($forward_to); ?>