Source for file exercise_admin.php
Documentation is available at exercise_admin.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
* Exercise administration
* This script allows to manage an exercise. It is included from the script admin.php
* @package dokeos.exercise
* @author Olivier Brouckaert
// name of the language file that needs to be included
$language_file= 'exercice';
include('exercise.class.php');
include('question.class.php');
include('answer.class.php');
include('../inc/global.inc.php');
include('exercise.lib.php');
include_once(api_get_path(LIBRARY_PATH). 'formvalidator/FormValidator.class.php');
if(isset ($_GET['exerciseId']))
$objExercise -> read (intval($_GET['exerciseId']));
$form -> addElement ('hidden','edit','true');
$form -> addElement ('hidden','edit','false');
$objExercise -> createForm ($form);
$objExercise -> processCreation($form);
if($form -> getSubmitValue('edit') == 'true')
header('Location:exercice.php?message=ExerciseEdited');
header('Location:admin.php?message=ExerciseStored&exerciseId='. $objExercise->id);
$nameTools= get_lang('ExerciseManagement');
$interbreadcrumb[] = array ("url"=> "exercice.php", "name"=> get_lang('Exercices'));
|