moveUp(intval($_GET['moveUp'])); $objExercise->save(); } // moves a question down in the list if(isset($_GET['moveDown'])) { $objExercise->moveDown(intval($_GET['moveDown'])); $objExercise->save(); } // deletes a question from the exercise (not from the data base) if($deleteQuestion) { // if the question exists if($objQuestionTmp = Question::read($deleteQuestion)) { $objQuestionTmp->delete($exerciseId); // if the question has been removed from the exercise if($objExercise->removeFromList($deleteQuestion)) { $nbrQuestions--; } } // destruction of the Question object unset($objQuestionTmp); } echo '
'; //we filter the type of questions we can add Question :: display_type_menu ($objExercise->feedbacktype); echo '
'; ?> selectQuestionList(); $i=1; if (is_array($questionList)) { foreach($questionList as $id) { $objQuestionTmp = Question :: read($id); //showQuestion($id); ?> >
selectTitle(); ?> selectLevel(); ?> IMS/QTI <?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> <?php echo get_lang('MoveUp'); ?> '; } if($i != $nbrQuestions) { if($i == 1) echo ''; ?> <?php echo get_lang('MoveDown'); ?>