|
|
|
@ -258,10 +258,6 @@ $form->addRule(array('start_date', 'end_date'), get_lang('StartDateShouldBeBefor |
|
|
|
|
// Setting the default values |
|
|
|
|
$form->setDefaults($defaults); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Displaying the header |
|
|
|
|
Display::display_header($tool_name); |
|
|
|
|
|
|
|
|
|
// The validation or display |
|
|
|
|
if ($form->validate()) { |
|
|
|
|
// Exporting the values |
|
|
|
@ -282,6 +278,9 @@ if ($form->validate()) { |
|
|
|
|
// Display the error |
|
|
|
|
Display::display_error_message(get_lang($return['message']), false); |
|
|
|
|
|
|
|
|
|
// Displaying the header |
|
|
|
|
Display::display_header($tool_name); |
|
|
|
|
|
|
|
|
|
// Display the form |
|
|
|
|
$form->display(); |
|
|
|
|
} else { |
|
|
|
@ -307,6 +306,7 @@ if ($form->validate()) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($config['survey']['debug']) { |
|
|
|
|
// Displaying a feedback message |
|
|
|
|
Display::display_confirmation_message($return['message'], false); |
|
|
|
@ -316,6 +316,9 @@ if ($form->validate()) { |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// Displaying the header |
|
|
|
|
Display::display_header($tool_name); |
|
|
|
|
|
|
|
|
|
$form->display(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|