|
|
|
@ -236,7 +236,7 @@ if ($action == 'thematic_list') { |
|
|
|
|
} else { |
|
|
|
|
echo '<div><em>'.get_lang('ThereIsNoAThematicSection').'</em></div>'; |
|
|
|
|
} |
|
|
|
|
} else if ($action == 'thematic_add' || $action == 'thematic_edit') { |
|
|
|
|
} elseif ($action == 'thematic_add' || $action == 'thematic_edit') { |
|
|
|
|
|
|
|
|
|
// Display form |
|
|
|
|
$form = new FormValidator('thematic_add','POST','index.php?action=thematic_add&'.api_get_cidreq()); |
|
|
|
@ -275,9 +275,10 @@ if ($action == 'thematic_list') { |
|
|
|
|
if (isset($error)) { |
|
|
|
|
Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'),false); |
|
|
|
|
} |
|
|
|
|
if ($show_form) |
|
|
|
|
if ($show_form) { |
|
|
|
|
$form->display(); |
|
|
|
|
} else if ($action == 'thematic_import_select') { |
|
|
|
|
} |
|
|
|
|
} elseif ($action == 'thematic_import_select') { |
|
|
|
|
// Create form to upload csv file. |
|
|
|
|
$form = new FormValidator('thematic_import','POST','index.php?action=thematic_import&'.api_get_cidreq().$url_token); |
|
|
|
|
$form->addElement('header', get_lang('ImportThematic')); |
|
|
|
|