addFeedback('CANCELLED'); header('Location: question_db.php?_course_id='.$_course_id); exit; } else if (isset($_POST['submit_yes'])) { $_POST['qid'] = explode(',', $_POST['qid']); foreach ($_POST['qid'] as $id) { $id = intval($id); if ($testsQuestionsDAO->Delete($id)) $testsQuestionsAssocDAO->DeleteByQuestionID($id); } $msg->addFeedback('QUESTION_DELETED'); header('Location: question_db.php?_course_id='.$_course_id); exit; } /* else: */ require_once(TR_INCLUDE_PATH.'header.inc.php'); $these_questions= explode(",", $_REQUEST['qid']); foreach($these_questions as $this_question){ $this_question = intval($this_question); $row = $testsQuestionsDAO->get($this_question); $confirm .= "
  • ".$row['question']."
  • "; } $confirm = array('DELETE', $confirm); $hidden_vars['qid'] = $_REQUEST['qid']; $hidden_vars['_course_id'] = $_course_id; $msg->addConfirm($confirm, $hidden_vars); $msg->printConfirm(); require_once(TR_INCLUDE_PATH.'footer.inc.php'); ?>