[svn r19813] is not necessary to confirm response in the hot spot see FS#4031

skala
Carlos Vargas 17 years ago
parent cbcf3a1d89
commit 48adf9b0d7
  1. 8
      main/exercice/exercise.lib.php
  2. 4
      main/exercice/exercise_show.php
  3. BIN
      main/plugin/hotspot/hotspot_user.fla
  4. BIN
      main/plugin/hotspot/hotspot_user.swf

@ -1,4 +1,4 @@
<?php // $Id: exercise.lib.php 19760 2009-04-14 15:23:58Z juliomontoya $
<?php // $Id: exercise.lib.php 19813 2009-04-17 00:19:28Z 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 19760 2009-04-14 15:23:58Z juliomontoya $
* @version $Id: exercise.lib.php 19813 2009-04-17 00:19:28Z cvargas1 $
*/
/**
@ -287,7 +287,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 #4271b5; height: 390px; width: 240px;"><b>'.get_lang('HotspotZones').'</b><ol>';
$answer_list = '<div style="padding: 10px; margin-left: 0px; border: 1px solid #4271b5; height: 481px; width: 200px;"><b>'.get_lang('HotspotZones').'</b><ol>';
for($answerId=1;$answerId <= $nbrAnswers;$answerId++)
{
$answer_list .= '<li>'.$objAnswerTmp->selectAnswer($answerId).'</li>';
@ -444,7 +444,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false,$current_it
// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) { // if we've detected an acceptable version
var oeTags = '<object type=\"application/x-shockwave-flash\" data=\"../plugin/hotspot/hotspot_user.swf?modifyAnswers=".$questionId."&amp;canClick:".$canClick."\" width=\"600\" height=\"400\">'
var oeTags = '<object type=\"application/x-shockwave-flash\" data=\"../plugin/hotspot/hotspot_user.swf?modifyAnswers=".$questionId."&amp;canClick:".$canClick."\" width=\"556\" height=\"501\">'
+ '<param name=\"movie\" value=\"../plugin/hotspot/hotspot_user.swf?modifyAnswers=".$questionId."&amp;canClick:".$canClick."\" \/>'
+ '<\/object>';
document.write(oeTags); // embed the Flash Content SWF when all tests are passed

@ -4,7 +4,7 @@
*
* @package dokeos.exercise
* @author Julio Montoya Armas Added switchable fill in blank option added
* @version $Id: exercise_show.php 19809 2009-04-16 20:05:58Z cfasanando $
* @version $Id: exercise_show.php 19813 2009-04-17 00:19:28Z cvargas1 $
*
* @todo remove the debug code and use the general debug library
* @todo use the Database:: functions
@ -866,7 +866,7 @@ function display_hotspot_answer($answerId, $answer, $studentChoice, $answerComme
echo '
<tr>
<td colspan="2">
<object type="application/x-shockwave-flash" data="../plugin/hotspot/hotspot_solution.swf?modifyAnswers='.$questionId.'&exe_id='.$id.'&from_db=1" width="600" height="400">
<object type="application/x-shockwave-flash" data="../plugin/hotspot/hotspot_solution.swf?modifyAnswers='.$questionId.'&exe_id='.$id.'&from_db=0" width="556" height="421">
<param name="movie" value="../plugin/hotspot/hotspot_solution.swf?modifyAnswers='.$questionId.'&exe_id='.$id.'&from_db=1" />
</object>
</td>

Loading…
Cancel
Save