updateTitle($exerciseTitle); $objExercise->updateDescription($exerciseDescription); $objExercise->updateSound($_FILES['exerciseSound'],$deleteSound); $objExercise->updateType($exerciseType); $objExercise->setRandom($randomQuestions); $objExercise->save(); if($deleteSound) { $exerciseSound=''; } else { $exerciseSound=$objExercise->selectSound(); } // reads the exercise ID (only usefull for a new exercise) $exerciseId=$objExercise->selectId(); unset($modifyExercise); } } else { $exerciseTitle=$objExercise->selectTitle(); $exerciseDescription=$objExercise->selectDescription(); $exerciseSound=$objExercise->selectSound(); $exerciseType=$objExercise->selectType(); $randomQuestions=$objExercise->isRandom(); } // shows the form to modify the exercise if($modifyExercise) { ?>
:
: BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; $oFCKeditor->Height = '250'; $oFCKeditor->Width = '100%'; $oFCKeditor->Value = $exerciseDescription; $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; $oFCKeditor->Config['IMUploadPath'] = "/upload/test/"; $oFCKeditor->ToolbarSet = "NewTest"; $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE); $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_course"]["language"]."'"; $result_sql=api_sql_query($sql); $isocode_language=mysql_result($result_sql,0,0); $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; $oFCKeditor->Create() ; ?>
: >
= 2) echo 'checked="checked"'; ?>>
: > ,
 

<?php echo get_lang('Sound'); ?>

<?php echo get_lang('Modify'); ?>