|
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
|
* @package dokeos.survey |
|
|
|
|
* @author unknown, the initial survey that did not make it in 1.8 because of bad code |
|
|
|
|
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code |
|
|
|
|
* @version $Id: create_new_survey.php 11451 2007-03-06 21:54:30Z pcool $ |
|
|
|
|
* @version $Id: create_new_survey.php 11515 2007-03-11 23:01:29Z pcool $ |
|
|
|
|
* |
|
|
|
|
* @todo only the available platform languages should be used => need an api get_languages and and api_get_available_languages (or a parameter) |
|
|
|
|
*/ |
|
|
|
|
@ -115,7 +115,7 @@ else |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// initiate the object |
|
|
|
|
$form = new FormValidator('forumcategory', 'post', $_SERVER['PHP_SELF'].'?action='.$_GET['action'].'&survey_id='.$_GET['survey_id']); |
|
|
|
|
$form = new FormValidator('survey', 'post', $_SERVER['PHP_SELF'].'?action='.$_GET['action'].'&survey_id='.$_GET['survey_id']); |
|
|
|
|
|
|
|
|
|
// settting the form elements |
|
|
|
|
if ($_GET['action'] == 'edit' AND isset($_GET['survey_id']) AND is_numeric($_GET['survey_id'])) |
|
|
|
|
@ -134,8 +134,8 @@ foreach ($lang_array['name'] as $key=>$value) |
|
|
|
|
$languages[$lang_array['folder'][$key]] = $value; |
|
|
|
|
} |
|
|
|
|
$form->addElement('select', 'survey_language', get_lang('Language'), $languages); |
|
|
|
|
$form->addElement('datepicker', 'start_date', get_lang('StartDate')); |
|
|
|
|
$form->addElement('datepicker', 'end_date', get_lang('EndDate')); |
|
|
|
|
$form->addElement('datepicker', 'start_date', get_lang('StartDate'), array('form_name'=>'survey')); |
|
|
|
|
$form->addElement('datepicker', 'end_date', get_lang('EndDate'), array('form_name'=>'survey')); |
|
|
|
|
$group=''; |
|
|
|
|
$group[] =& HTML_QuickForm::createElement('radio', 'survey_share',null, get_lang('Yes'),$form_share_value); |
|
|
|
|
/** @todo maybe it is better to change this into false instead see line 95 in survey.lib.php */ |
|
|
|
|
|