Browse Source

[svn r21160] show number answer in hotspot see FS#3909

Arthur Portugal 16 years ago
parent
commit
b7e59b9d01
2 changed files with 10 additions and 4 deletions
  1. 4 1
      main/exercice/exercise_result.php
  2. 6 3
      main/exercice/exercise_show.php

+ 4 - 1
main/exercice/exercise_result.php

@@ -29,7 +29,7 @@
 *	@author Olivier Brouckaert, main author
 *	@author Roan Embrechts, some refactoring
 * 	@author Julio Montoya Armas switchable fill in blank option added
-* 	@version $Id: exercise_result.php 21154 2009-06-01 03:05:46Z cfasanando $
+* 	@version $Id: exercise_result.php 21160 2009-06-01 15:44:49Z aportugal $
 *
 *	@todo	split more code up in functions, move functions to library?
 */
@@ -419,6 +419,9 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme
 		<tr>
 				<td valign="top">
 				<div style="height:11px; width:11px; background-color:<?php echo $hotspot_colors[$answerId]; ?>; display:inline; float:left; margin-top:3px;"></div>
+				<div style="float:left; padding-left:5px;">
+				<?php echo $answerId; ?>
+				</div>
 					<div style="float:left; padding-left:5px;">
 						
 						<div style="display:inline; float:left; width:80px;"><?php echo $answer ?></div>

+ 6 - 3
main/exercice/exercise_show.php

@@ -4,7 +4,7 @@
 *
 *	@package dokeos.exercise
 * 	@author Julio Montoya Armas Added switchable fill in blank option added
-* 	@version $Id: exercise_show.php 21154 2009-06-01 03:05:46Z cfasanando $
+* 	@version $Id: exercise_show.php 21160 2009-06-01 15:44:49Z aportugal $
 *
 * 	@todo remove the debug code and use the general debug library
 * 	@todo use the Database:: functions
@@ -332,8 +332,11 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme
 	<tr>
 		<td width="100px" valign="top" align="left">
 			<div style="width:100%;">
-				<div style="height:11px; width:11px; background-color:<?php echo $hotspot_colors[$answerId]; ?>; float:left; margin:3px;"></div>
-				<div><?php echo $answer ?></div>
+				<div style="height:11px; width:11px; background-color:<?php echo $hotspot_colors[$answerId]; ?>; display:inline; float:left; margin-top:3px;"></div>
+				<div style="float:left; padding-left:5px;">
+				<?php echo $answerId; ?>
+				</div>
+				<div><?php echo '&nbsp;'.$answer ?></div>
 			</div>
 		</td>
 		<td width="50px" style="padding-right:15px" valign="top" align="left">