addFeedback('CANCELLED'); header('Location: index.php'); exit; } else if (isset($_POST['submit_yes'])) { foreach($ids as $id) { $courseCategoriesDAO->Delete($id); } $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY'); header('Location: index.php'); exit; } require(TR_INCLUDE_PATH.'header.inc.php'); unset($hidden_vars); foreach($ids as $id) { $row = $courseCategoriesDAO->get($id); $names[] = $row['category_name']; } $names_html = ''; $hidden_vars['id'] = $_REQUEST['id']; $msg->addConfirm(array('DELETE_COURSE_CATEGORY', $names_html), $hidden_vars); $msg->printConfirm(); require(TR_INCLUDE_PATH.'footer.inc.php'); ?>