diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index 1357a91865..88364cbc9e 100644 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -24,7 +24,7 @@ * @author Olivier Brouckaert, original author * @author Denes Nagy, HotPotatoes integration * @author Wolfgang Schneider, code/html cleanup -* @version $Id: exercice.php 11105 2007-02-14 08:33:43Z elixir_julian $ +* @version $Id: exercice.php 11107 2007-02-14 09:46:32Z elixir_julian $ */ @@ -310,7 +310,7 @@ if($show == 'test'){ { //error_log('is_allowedToEdit and origin<> learnpath',0); echo "", - "\"new ".get_lang("NewEx")."", + "\"new ".get_lang("NewEx")."", //"\"new".get_lang("QuestionPool")." | ", //" | \"HotPotatoes\" ".get_lang("ImportHotPotatoesQuiz")."", @@ -427,7 +427,7 @@ if($show == 'test'){ ?> - +
@@ -925,7 +925,7 @@ $message = "

You attempt for the test #test# has been viewed/commented/correct '.get_lang("Show").' >>

'; + echo '

 '.get_lang("Show").' >>

'; }// end if($show == 'result') diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index bc0fb22190..bbceea144d 100644 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -35,7 +35,7 @@ * the administrator * @package dokeos.exercise * @author Olivier Brouckaert -* @version $Id: exercice_submit.php 10957 2007-01-29 10:16:23Z elixir_julian $ +* @version $Id: exercice_submit.php 11107 2007-02-14 09:46:32Z elixir_julian $ */ @@ -485,7 +485,7 @@ $s="
- "; +
"; echo $s; /* */ @@ -528,8 +528,9 @@ foreach($questionList as $questionId) } } - $s=" - + + - @@ -147,10 +147,10 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false) { $s.=" - - "; @@ -160,10 +160,10 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false) elseif($answerType == MULTIPLE_ANSWER) { $s.=" - - "; @@ -284,7 +284,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false) if(!$onlyAnswers) { $s=" - diff --git a/main/exercice/question_pool.php b/main/exercice/question_pool.php index 8c095bcf99..15eb4f3dec 100644 --- a/main/exercice/question_pool.php +++ b/main/exercice/question_pool.php @@ -24,7 +24,7 @@ * One question can be in several exercises * @package dokeos.exercise * @author Olivier Brouckaert -* @version $Id: question_pool.php 11057 2007-02-05 08:56:17Z elixir_julian $ +* @version $Id: question_pool.php 11107 2007-02-14 09:46:32Z elixir_julian $ */ // name of the language file that needs to be included @@ -297,7 +297,7 @@ if($is_allowedToEdit) { ?> - <?php echo get_lang('Reuse'); ?> + <?php echo get_lang('Reuse'); ?>
+ $s="
".get_lang('Question')." "; $s.=$i; if($exerciseType == 2) $s.=' / '.$nbrQuestions; diff --git a/main/exercice/exercise.lib.php b/main/exercice/exercise.lib.php index f8188f6fb8..fa15edc2da 100644 --- a/main/exercice/exercise.lib.php +++ b/main/exercice/exercise.lib.php @@ -23,7 +23,7 @@ * shows a question and its answers * @package dokeos.exercise * @author Olivier Brouckaert -* @version $Id: exercise.lib.php 10789 2007-01-18 19:18:27Z pcool $ +* @version $Id: exercise.lib.php 11107 2007-02-14 09:46:32Z elixir_julian $ */ @@ -49,7 +49,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false) $questionDescription=$objQuestionTmp->selectDescription(); $s="
"; +  "; $questionName=api_parse_tex($questionName); $s.=$questionName; $s.="
+ "; + "; $answer=api_parse_tex($answer); $s.=$answer; $s.="
+ "; + "; $answer = api_parse_tex($answer); $s.=$answer; $s.="
"; +  "; $questionName=api_parse_tex($questionName); $s.=$questionName; $s.="