diff --git a/main/exercice/exercise_result.php b/main/exercice/exercise_result.php index 80a8665a19..aea18ebcf2 100644 --- a/main/exercice/exercise_result.php +++ b/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 15893 2008-08-04 05:37:18Z yannoo $ +* @version $Id: exercise_result.php 15957 2008-08-08 08:23:59Z elixir_inter $ * * @todo split more code up in functions, move functions to library? */ @@ -153,7 +153,118 @@ $exerciseDescription=stripslashes($exerciseDescription); $nameTools=get_lang('Exercice'); $interbreadcrumb[]=array("url" => "exercice.php","name" => get_lang('Exercices')); - +$htmlHeadXtra[] = " + + + + + "; if ($origin != 'learnpath') { diff --git a/main/exercice/hotspot_actionscript_admin.as.php b/main/exercice/hotspot_actionscript_admin.as.php index ceadf6ec7f..cbf53e779e 100644 --- a/main/exercice/hotspot_actionscript_admin.as.php +++ b/main/exercice/hotspot_actionscript_admin.as.php @@ -84,7 +84,6 @@ for($i=1;$i <= $nbrAnswers;$i++) { $output .= "&hotspot_".$i."_type=poly"; } - // Delineation if ($answers['hotspot_type'][$i] == 'delineation') { diff --git a/main/plugin/hotspot/hotspot.js b/main/plugin/hotspot/hotspot.js index 1beee51c34..e60bdaf099 100644 --- a/main/plugin/hotspot/hotspot.js +++ b/main/plugin/hotspot/hotspot.js @@ -35,14 +35,27 @@ function saveHotspot(question_id, hotspot_id, answer, hotspot_x, hotspot_y) newHotspot.type = "hidden"; newHotspot.name = "hotspot["+question_id+"]["+hotspot_id+"]"; newHotspot.value = hotspot_x + ";" + hotspot_y; - document.frm_exercise.appendChild(newHotspot); newHotspot = document.createElement("input"); newHotspot.type = "hidden"; newHotspot.name = "choice["+question_id+"]["+hotspot_id+"]"; newHotspot.value = answer; + document.frm_exercise.appendChild(newHotspot); +} + +function saveDelineationUserAnswer(question_id, hotspot_id, answer, coordinates) +{ + newHotspot = document.createElement("input"); + newHotspot.type = "hidden"; + newHotspot.name = "hotspot["+question_id+"]["+hotspot_id+"]"; + newHotspot.value = coordinates; + document.frm_exercise.appendChild(newHotspot); + newHotspot = document.createElement("input"); + newHotspot.type = "hidden"; + newHotspot.name = "choice["+question_id+"]["+hotspot_id+"]"; + newHotspot.value = answer; document.frm_exercise.appendChild(newHotspot); } @@ -62,4 +75,8 @@ function saveDelineationHotspot(question_id, hotspot_id, coordinates) { document.frm_exercise["hotspot_coordinates["+hotspot_id+"]"].value = coordinates; document.frm_exercise["hotspot_type["+hotspot_id+"]"].value = "delineation"; +} +function jsdebug(debug_string) +{ + alert(debug_string); } \ No newline at end of file diff --git a/main/plugin/hotspot/hotspot_admin.fla b/main/plugin/hotspot/hotspot_admin.fla index fb59099838..1f7ebdc3ff 100644 Binary files a/main/plugin/hotspot/hotspot_admin.fla and b/main/plugin/hotspot/hotspot_admin.fla differ diff --git a/main/plugin/hotspot/hotspot_solution.fla b/main/plugin/hotspot/hotspot_solution.fla index 0f3571e91a..256ccdf7f2 100644 Binary files a/main/plugin/hotspot/hotspot_solution.fla and b/main/plugin/hotspot/hotspot_solution.fla differ diff --git a/main/plugin/hotspot/hotspot_solution.swf b/main/plugin/hotspot/hotspot_solution.swf index 9f691d0050..303ea88703 100644 Binary files a/main/plugin/hotspot/hotspot_solution.swf and b/main/plugin/hotspot/hotspot_solution.swf differ diff --git a/main/plugin/hotspot/hotspot_user.fla b/main/plugin/hotspot/hotspot_user.fla index 9515c95a11..58870d8e74 100644 Binary files a/main/plugin/hotspot/hotspot_user.fla and b/main/plugin/hotspot/hotspot_user.fla differ diff --git a/main/plugin/hotspot/hotspot_user.swf b/main/plugin/hotspot/hotspot_user.swf index 230252d6be..f40426b590 100644 Binary files a/main/plugin/hotspot/hotspot_user.swf and b/main/plugin/hotspot/hotspot_user.swf differ