Parcourir la source

[svn r15302] Added question description in results screen

Yannick Warnier il y a 17 ans
Parent
commit
c7cc533800
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      main/exercice/exercise_result.php

+ 7 - 2
main/exercice/exercise_result.php

@@ -25,7 +25,7 @@
 *	@package dokeos.exercise
 *	@author Olivier Brouckaert, main author
 *	@author Roan Embrechts, some refactoring
-* 	@version $Id: exercise_result.php 14840 2008-04-11 06:21:45Z yannoo $
+* 	@version $Id: exercise_result.php 15302 2008-05-16 04:05:01Z yannoo $
 *
 *	@todo	split more code up in functions, move functions to library?
 */
@@ -328,6 +328,7 @@ $exerciseTitle=api_parse_tex($exerciseTitle);
 		$objQuestionTmp = Question :: read($questionId);
 
 		$questionName=$objQuestionTmp->selectTitle();
+		$questionDescription=$objQuestionTmp->selectDescription();
 		$questionWeighting=$objQuestionTmp->selectWeighting();
 		$answerType=$objQuestionTmp->selectType();
 		$quesId =$objQuestionTmp->selectId(); //added by priya saini
@@ -362,6 +363,10 @@ $exerciseTitle=api_parse_tex($exerciseTitle);
 			<tr>
 			<td colspan="<?php echo $colspan; ?>">
 				<?php echo $questionName; ?>
+				<br />
+				<i>
+				<?php echo $questionDescription; ?>
+				</i>
 			</td>
 			</tr>
 		<?php
@@ -936,4 +941,4 @@ $msg .= '</head>
 	$subject = get_lang('OpenQuestionsAttempted');
 	api_mail_html($student_name, $to, $subject, $mail_content, $from_name, $from);
 }
-?>
+?>