Source for file hotspot.class.php
Documentation is available at hotspot.class.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
* File containing the HotSpot class.
* @package dokeos.exercise
* @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $
* This class allows to instantiate an object of type HotSpot (MULTIPLE CHOICE, UNIQUE ANSWER),
* extending the class question
* @package dokeos.exercise
static $typePicture = 'hotspot.gif';
static $explanationLangVar = 'Hotspot';
if(!isset ($_GET['editQuestion']))
$form->addElement('file','imageUpload',get_lang('UploadJpgPicture'));
$form->addRule('imageUpload', get_lang('OnlyJPG'), 'mimetype',array('image/jpeg','image/pjpeg','image/gif','image/png'));
$form->addRule('imageUpload', get_lang('NoImage'), 'uploadedfile');
$file_info = $form -> getSubmitValue('imageUpload');
if(!empty($file_info['tmp_name']))
$this->uploadPicture($file_info['tmp_name'], $file_info['name']);
list ($width,$height) = getimagesize($file_info['tmp_name']);
|