Эх сурвалжийг харах

[svn r10862] change the images of test menu

Eric Marguin 18 жил өмнө
parent
commit
11e374baa5

+ 1 - 1
main/exercice/fill_blanks.class.php

@@ -40,7 +40,7 @@ if(!class_exists('FillBlanks')):
 
 class FillBlanks extends Question {
 
-	static $typePicture = 'fill_in_blanks.png';
+	static $typePicture = 'fill_in_blanks.gif';
 	static $explanationLangVar = 'FillBlanks';
 
 	/**

+ 1 - 1
main/exercice/freeanswer.class.php

@@ -32,7 +32,7 @@ if(!class_exists('FreeAnswer')):
 
 class FreeAnswer extends Question {
 
-	static $typePicture = 'open_answer.png';
+	static $typePicture = 'open_answer.gif';
 	static $explanationLangVar = 'freeAnswer';
 
 	/**

+ 1 - 1
main/exercice/hotspot.class.php

@@ -40,7 +40,7 @@ if(!class_exists('HotSpot')):
 
 class HotSpot extends Question {
 
-	static $typePicture = 'hotspot.png';
+	static $typePicture = 'hotspot.gif';
 	static $explanationLangVar = 'Hotspot';
 
 

+ 1 - 1
main/exercice/matching.class.php

@@ -41,7 +41,7 @@ if(!class_exists('Matching')):
 class Matching extends Question {
 
 
-	static $typePicture = 'matching.png';
+	static $typePicture = 'matching.gif';
 	static $explanationLangVar = 'Matching';
 
 	/**

+ 1 - 1
main/exercice/multiple_answer.class.php

@@ -39,7 +39,7 @@ if(!class_exists('MultipleAnswer')):
 
 class MultipleAnswer extends Question {
 
-	static $typePicture = 'mcma.png';
+	static $typePicture = 'mcma.gif';
 	static $explanationLangVar = 'MultipleSelect';
 
 	/**

+ 19 - 17
main/exercice/question.class.php

@@ -22,7 +22,7 @@
 *	File containing the Question class.
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: question.class.php 10800 2007-01-19 13:24:39Z elixir_julian $
+* 	@version $Id: question.class.php 10862 2007-01-24 09:03:15Z elixir_inter $
 */
 
 
@@ -794,30 +794,32 @@ abstract class Question
 	 */
 	static function display_type_menu ()
 	{
-		?>
-		<script type="text/javascript">
-			function explain(explanation){
-				document.getElementById('answer_type_explanation').innerHTML = explanation;
-			}
-			function hideExplanation(){
-				document.getElementById('answer_type_explanation').innerHTML = '<?php echo get_lang('ChooseQuestionType') ?>';
-			}
-		</script>
-		<?php
-		echo '<div onmouseout="hideExplanation()">';
+		
+		echo '<div>';
 		foreach(self::$questionTypes as $i=>$a_type)
 		{
-			include_once($a_type[0]);
+			
+			// include the class of the type
+			include_once($a_type[0]); 
+			
+			 // get the picture of the type and the langvar which describes it
 			eval('$img = '.$a_type[1].'::$typePicture;');
 			eval('$explanation = get_lang('.$a_type[1].'::$explanationLangVar);');
 
 			echo '
-			<div id="answer_type_'.$i.'" style="display: inline">
-				<a href="admin.php?newQuestion=yes&answerType='.$i.'" onmouseover="explain(\''.$explanation.'\')"><img src="'.api_get_path(WEB_IMG_PATH).'/'.$img.'" /></a>
+			<div id="answer_type_'.$i.'" style="float: left; width:120px; text-align:center">
+				<a href="admin.php?newQuestion=yes&answerType='.$i.'">
+					<div>
+						<img src="'.api_get_path(WEB_IMG_PATH).'/'.$img.'" />
+					</div>
+					<div>
+						'.$explanation.'
+					</div>
+				</a>
 			</div>';
+			
 		}
-		echo '
-		<div id="answer_type_explanation" class="accordion_content" style="display:block">'.get_lang('ChooseQuestionType').'</div></div>';
+		echo '</div>';
 
 	}
 }

+ 1 - 1
main/exercice/unique_answer.class.php

@@ -40,7 +40,7 @@ if(!class_exists('UniqueAnswer')):
 
 class UniqueAnswer extends Question {
 
-	static $typePicture = 'mcua.png';
+	static $typePicture = 'mcua.gif';
 	static $explanationLangVar = 'UniqueSelect';
 
 	/**

BIN
main/img/fill_in_blanks.gif


BIN
main/img/fill_in_blanks.png


BIN
main/img/hotspot.gif


BIN
main/img/hotspot.png


BIN
main/img/matching.gif


BIN
main/img/matching.png


BIN
main/img/mcma.gif


BIN
main/img/mcma.png


BIN
main/img/mcua.gif


BIN
main/img/mcua.png


BIN
main/img/open_answer.gif


BIN
main/img/open_answer.png