[svn r20952] Hot spot completly see FS#4050

skala
Carlos Vargas 17 years ago
parent 19b511b13f
commit 48c2572fdb
  1. 6
      main/exercice/exercise.lib.php
  2. 21
      main/exercice/exercise_result.php
  3. 5
      main/exercice/exercise_show.php
  4. BIN
      main/plugin/hotspot/hotspot_solution.fla
  5. BIN
      main/plugin/hotspot/hotspot_solution.swf
  6. BIN
      main/plugin/hotspot/hotspot_user.fla
  7. BIN
      main/plugin/hotspot/hotspot_user.swf

@ -1,4 +1,4 @@
<?php // $Id: exercise.lib.php 20938 2009-05-21 22:08:42Z aportugal $
<?php // $Id: exercise.lib.php 20952 2009-05-23 20:43:53Z cvargas1 $
/*
==============================================================================
@ -29,7 +29,7 @@
* shows a question and its answers
* @package dokeos.exercise
* @author Olivier Brouckaert <oli.brouckaert@skynet.be>
* @version $Id: exercise.lib.php 20938 2009-05-21 22:08:42Z aportugal $
* @version $Id: exercise.lib.php 20952 2009-05-23 20:43:53Z cvargas1 $
*/
/**
@ -314,7 +314,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false,$current_it
$objAnswerTmp=new Answer($questionId);
$nbrAnswers=$objAnswerTmp->selectNbrAnswers();
$answer_list = '<div style="padding: 10px; margin-left: 0px; border: 1px solid #A4A4A4; height: 390px; width: 200px;"><b>'.get_lang('HotspotZones').'</b><dl>';
$answer_list = '<div style="padding: 10px; margin-left: 0px; border: 1px solid #A4A4A4; height: 408px; width: 200px;"><b>'.get_lang('HotspotZones').'</b><dl>';
for($answerId=1;$answerId <= $nbrAnswers;$answerId++)
{
$answer_list .= '<dt>'.$answerId.'.- '.$objAnswerTmp->selectAnswer($answerId).'</dt><br>';

@ -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 20937 2009-05-21 21:28:51Z cvargas1 $
* @version $Id: exercise_result.php 20952 2009-05-23 20:43:53Z cvargas1 $
*
* @todo split more code up in functions, move functions to library?
*/
@ -411,12 +411,13 @@ 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;">
<div style="display:inline; float:left; width:80px;"><?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>
</td>
<td valign="top"><?php echo $answerId; ?></td>
<td valign="top">
<?php $my_choice = ($studentChoice)?get_lang('Correct'):get_lang('Fault'); echo $my_choice; ?>
</td>
@ -520,7 +521,7 @@ foreach ($questionList as $questionId) {
<td width="5%" valign="top" align="center" nowrap="nowrap">
<i><?php echo get_lang("Choice"); ?></i>
</td>
<td width="5%" valign="top" nowrap="nowrap">
<td width="5%" align="center" nowrap="nowrap">
<i><?php echo get_lang("ExpectedChoice"); ?></i>
</td>
<td width="45%" valign="top">
@ -554,18 +555,16 @@ foreach ($questionList as $questionId) {
?>
<tr>
<td valign="top" colspan="2">
<table width="510" border="0">
<table width="552" border="1" bordercolor="#A4A4A4" style="border-collapse: collapse;">
<tr>
<td width="40%" valign="top">
<td width="152" valign="top">
<i><?php echo get_lang("CorrectAnswer"); ?></i><br /><br />
</td>
<td width="15%" valign="top">
<i><?php echo get_lang("ClickNumber"); ?></i><br /><br />
</td>
<td width="20%" valign="top">
<td width="100" valign="top">
<i><?php echo get_lang('HotspotHit'); ?></i><br /><br />
</td>
<td width="25%" valign="top">
<td width="300" valign="top">
<i><?php echo get_lang("Comment"); ?></i><br /><br />
</td>
</tr>

@ -4,7 +4,7 @@
*
* @package dokeos.exercise
* @author Julio Montoya Armas Added switchable fill in blank option added
* @version $Id: exercise_show.php 20937 2009-05-21 21:28:51Z cvargas1 $
* @version $Id: exercise_show.php 20952 2009-05-23 20:43:53Z cvargas1 $
*
* @todo remove the debug code and use the general debug library
* @todo use the Database:: functions
@ -330,7 +330,6 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme
<div><?php echo $answer ?></div>
</div>
</td>
<td valign="top" align="left"><?php echo $answerId; ?></td>
<td width="50px" style="padding-right:15px" valign="top" align="left">
<?php
$my_choice = ($studentChoice)?get_lang('Correct'):get_lang('Fault'); echo $my_choice; ?>
@ -858,7 +857,7 @@ if ($show_results) {
?>
<tr>
<td valign="top" align="center" style="padding-left:0px;" >
<table style="border: 1px solid #A4A4A4;border-bottom:none" width="552">
<table border="1" bordercolor="#A4A4A4" style="border-collapse: collapse;" width="552">
<?php
for ($answerId=1;$answerId <= $nbrAnswers;$answerId++) {
$answer=$objAnswerTmp->selectAnswer($answerId);

Loading…
Cancel
Save