diff --git a/main/survey/create_new_survey.php b/main/survey/create_new_survey.php index fa972b2471..94c0b18a7f 100644 --- a/main/survey/create_new_survey.php +++ b/main/survey/create_new_survey.php @@ -25,7 +25,7 @@ * @author unknown, the initial survey that did not make it in 1.8 because of bad code * @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code * @author Julio Montoya Armas , Dokeos: Personality Test modification and rewriting large parts of the code -* @version $Id: create_new_survey.php 15984 2008-08-13 17:24:24Z juliomontoya $ +* @version $Id: create_new_survey.php 16047 2008-08-21 22:52:00Z juliomontoya $ * * @todo only the available platform languages should be used => need an api get_languages and and api_get_available_languages (or a parameter) */ @@ -157,13 +157,26 @@ $fck_attribute['Height'] = '200'; $form->addElement('checkbox', 'anonymous', get_lang('Anonymous')); $form->addElement('html_editor', 'survey_introduction', get_lang('SurveyIntroduction')); $form->addElement('html_editor', 'survey_thanks', get_lang('SurveyThanks')); - -$surveytypes[0] = get_lang('Normal'); + + +/* +// Aditional Parameters +$form -> addElement('html','');*/ + +// Personality/Conditional Test Options +$surveytypes[0] = get_lang('Normal'); $surveytypes[1] = get_lang('Conditional'); - + if ($_GET['action'] == 'add') { - $form->addElement('select', 'survey_type', get_lang('SelectType'), $surveytypes); + $form->addElement('select', 'survey_type', get_lang('SelectType'), $surveytypes, array('onchange' => 'if(document.getElementById(\'options\').style.display == \'none\'){document.getElementById(\'options\').style.display = \'block\';}else{document.getElementById(\'options\').style.display = \'none\';}')); + $form -> addElement('html',''); + $form->addElement('submit', 'submit_survey', get_lang('Ok'));