[svn r15352] decrease size of hotspots (flash part ... html part will become tomorrow)

skala
Eric Marguin 17 years ago
parent f85347328e
commit b269fb99f6
  1. 4
      main/exercice/exercise.lib.php
  2. 4
      main/exercice/exercise_result.php
  3. 2
      main/exercice/exercise_show.php
  4. 4
      main/exercice/hotspot.class.php
  5. BIN
      main/plugin/hotspot/hotspot_admin.fla
  6. BIN
      main/plugin/hotspot/hotspot_admin.swf
  7. BIN
      main/plugin/hotspot/hotspot_solution.swf
  8. BIN
      main/plugin/hotspot/hotspot_user.fla
  9. BIN
      main/plugin/hotspot/hotspot_user.swf

@ -23,7 +23,7 @@
* shows a question and its answers
* @package dokeos.exercise
* @author Olivier Brouckaert <oli.brouckaert@skynet.be>
* @version $Id: exercise.lib.php 13301 2007-09-27 03:47:39Z yannoo $
* @version $Id: exercise.lib.php 15352 2008-05-21 20:42:25Z elixir_inter $
*/
@ -424,7 +424,7 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false)
// 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=\"730\" height=\"620\">'
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

@ -25,7 +25,7 @@
* @package dokeos.exercise
* @author Olivier Brouckaert, main author
* @author Roan Embrechts, some refactoring
* @version $Id: exercise_result.php 15312 2008-05-19 01:15:03Z yannoo $
* @version $Id: exercise_result.php 15352 2008-05-21 20:42:25Z elixir_inter $
*
* @todo split more code up in functions, move functions to library?
*/
@ -738,7 +738,7 @@ $exerciseTitle=api_parse_tex($exerciseTitle);
<tr>
<td colspan="2">
<i><?php echo get_lang('Hotspot'); ?></i><br /><br />
<object type="application/x-shockwave-flash" data="../plugin/hotspot/hotspot_solution.swf?modifyAnswers=<?php echo $questionId ?>&exe_id=&from_db=0" width="730" height="750">
<object type="application/x-shockwave-flash" data="../plugin/hotspot/hotspot_solution.swf?modifyAnswers=<?php echo $questionId ?>&exe_id=&from_db=0" width="556" height="481">
<param name="movie" value="../plugin/hotspot/hotspot_solution.swf?modifyAnswers=<?php echo $questionId ?>&exe_id=&from_db=0" />
</object>
</td>

@ -737,7 +737,7 @@ $result =api_sql_query($query, __FILE__, __LINE__);
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="730" height="570">
<object type="application/x-shockwave-flash" data="../plugin/hotspot/hotspot_solution.swf?modifyAnswers='.$questionId.'&exe_id='.$id.'&from_db=1" width="556" height="481">
<param name="movie" value="../plugin/hotspot/hotspot_solution.swf?modifyAnswers='.$questionId.'&exe_id='.$id.'&from_db=1" />
</object>
</td>

@ -71,9 +71,9 @@ class HotSpot extends Question {
$this->uploadPicture($file_info['tmp_name'], $file_info['name']);
list($width,$height) = getimagesize($file_info['tmp_name']);
if($width>=$height)
$this->resizePicture('width',720);
$this->resizePicture('width',544);
else
$this->resizePicture('height',540);
$this->resizePicture('height',408);
$this->save();
}
}

Loading…
Cancel
Save