From 80d8913c7c0f5c85f69171e59d47f30ff03e06bf Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 14 Jan 2010 12:24:23 -0500 Subject: [PATCH] Closing a div sentence see CT#493 --- main/survey/create_new_survey.php | 66 ++++++++----------------------- 1 file changed, 16 insertions(+), 50 deletions(-) diff --git a/main/survey/create_new_survey.php b/main/survey/create_new_survey.php index f90b0b19e1..4e4bb9597a 100755 --- a/main/survey/create_new_survey.php +++ b/main/survey/create_new_survey.php @@ -1,24 +1,5 @@ addElement('hidden','survey_type',0); $form -> addElement('html','
'); +} + if(isset($_GET['survey_id']) && $_GET['action']=='edit') { - $class="save"; + $class='save'; $text=get_lang('ModifySurvey'); } else { - $class="add"; + $class='add'; $text=get_lang('CreateSurvey'); } $form->addElement('style_submit_button', 'submit_survey', $text, 'class="'.$class.'"'); // setting the rules -if ($_GET['action'] == 'add') -{ +if ($_GET['action'] == 'add') { $form->addRule('survey_code', '
'.get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('survey_code', '', 'maxlength',20); }