moveUp($moveUp); $objExercise->save(); } // moves a question down in the list if($moveDown) { $objExercise->moveDown($moveDown); $objExercise->save(); } // deletes a question from the exercise (not from the data base) if($deleteQuestion) { // construction of the Question object $objQuestionTmp=new Question(); // if the question exists if($objQuestionTmp->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); } ?>
                

| | | | |   

selectQuestionList(); $i=1; foreach($questionList as $id) { $objQuestionTmp=new Question(); $objQuestionTmp->read($id); //showQuestion($id); ?>
selectTitle(); ?> selectType()-1]; ?> <?php echo get_lang('Feedback'); ?> <?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> <?php echo get_lang('MoveUp'); ?> <?php echo get_lang('MoveDown'); ?>
selectQuestionList(); $i=1; //echo "
";
//	print_r($questionList);
//echo "
"; foreach($questionList as $id) { $objQuestionTmp=new Question(); $objQuestionTmp->read($id); $s="'; echo $s; showQuestion($id); ?>
".get_lang('Question')." "; $s.=$i; if($exerciseType == 2) $s.=' / '.$nbrQuestions; //$s.=".get_lang('Modify')."; $s.='
<?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> <?php echo get_lang('MoveUp'); ?> <?php echo get_lang('MoveDown'); ?>