[svn r10862] change the images of test menu

skala
Eric Marguin 19 years ago
parent 954d520720
commit 11e374baa5
  1. 2
      main/exercice/fill_blanks.class.php
  2. 2
      main/exercice/freeanswer.class.php
  3. 2
      main/exercice/hotspot.class.php
  4. 2
      main/exercice/matching.class.php
  5. 2
      main/exercice/multiple_answer.class.php
  6. 34
      main/exercice/question.class.php
  7. 2
      main/exercice/unique_answer.class.php
  8. BIN
      main/img/fill_in_blanks.gif
  9. BIN
      main/img/fill_in_blanks.png
  10. BIN
      main/img/hotspot.gif
  11. BIN
      main/img/hotspot.png
  12. BIN
      main/img/matching.gif
  13. BIN
      main/img/matching.png
  14. BIN
      main/img/mcma.gif
  15. BIN
      main/img/mcma.png
  16. BIN
      main/img/mcua.gif
  17. BIN
      main/img/mcua.png
  18. BIN
      main/img/open_answer.gif
  19. BIN
      main/img/open_answer.png

@ -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';
/**

@ -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';
/**

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

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

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

@ -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 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>';
}
}

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Loading…
Cancel
Save