Source for file hotspot_save.inc.php
Documentation is available at hotspot_save.inc.php
DOKEOS - elearning and course management software
For a full list of contributors, see documentation/credits.html
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See "documentation/licence.html" more details.
Rue des Palais 44 Paleizenstraat
B-1030 Brussels - Belgium
* This file generates the ActionScript code used by the HotSpot .swf
* @package dokeos.exercise
* @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $
include('exercise.class.php');
include('question.class.php');
include('answer.class.php');
include('../inc/global.inc.php');
$questionId = $_GET['questionId'];
$answerId = $_GET['answerId'];
if ($_GET['type'] == "square" || $_GET['type'] == "circle")
$hotspot_type = $_GET['type'];
$hotspot_coordinates = $_GET['x']. ";". $_GET['y']. "|". $_GET['width']. "|". $_GET['height'];
if ($_GET['type'] == "poly")
$hotspot_type = $_GET['type'];
$tmp_coord = explode(",",$_GET['co']);
$hotspot_coordinates = "";
foreach ($tmp_coord as $coord)
$hotspot_coordinates .= $coord. $delimiter;
$hotspot_coordinates = substr($hotspot_coordinates,0,- 2);
$sql = "UPDATE `$TBL_ANSWER` SET `hotspot_coordinates` = '$hotspot_coordinates',`hotspot_type` = '$hotspot_type' WHERE `id` =$answerId AND `question_id` =$questionId LIMIT 1 ;";
|