diff --git a/main/exercice/hotspot.inc.php b/main/exercice/hotspot.inc.php new file mode 100644 index 0000000000..a64387d3c3 --- /dev/null +++ b/main/exercice/hotspot.inc.php @@ -0,0 +1,17 @@ +&select=Select +&square=Rectangle +&circle=Ellipse +&poly=Polygon +&status1=Draw a hotspot. +&status2_poly=Use right-click to close the polygon. +&status2_other=Release the mousebutton to save the hotspot. +&status3=Hotspot saved. +&exercise_status_1=Status: Question not yet terminated +&exercise_status_2=Click to submit your answers to the question +&exercise_status_3=Status: Question terminated +&showUserPoints=Show/Hide userclicks +&showHotspots=Show/Hide hotspots +&labelPolyMenu=Close polygon +&triesleft=Tries left +&exeFinished=All answers defined: rearrange spots or click to submit +&nextAnswer=Now click on: &done=done \ No newline at end of file diff --git a/main/exercice/hotspot_lang_conversion.php b/main/exercice/hotspot_lang_conversion.php new file mode 100644 index 0000000000..8ce72d3299 --- /dev/null +++ b/main/exercice/hotspot_lang_conversion.php @@ -0,0 +1,41 @@ + 1) + { + $explode[0] = trim($explode[0]); + $explode[0] = '&' . substr($explode[0], 1, strlen($explode[0])); + + $explode[1] = trim($explode[1]); + $explode[1] = substr($explode[1], 0, strlen($explode[1]) - 1); + $explode[1] = ereg_replace('"', '', $explode[1]); + + $temp[] = $explode[0] . '=' . $explode[1]; + } +} + +foreach($temp as $value) +{ + echo $value . ' '; +} +?> \ No newline at end of file