|
|
|
@ -77,9 +77,9 @@ if (isset($_GET['action']) && $_GET['action'] == 'changeview' AND in_array($_GET |
|
|
|
|
$action = isset($_GET['action']) ? $_GET['action'] : null; |
|
|
|
|
|
|
|
|
|
if (api_is_allowed_to_edit(null, true)) { |
|
|
|
|
switch ($action) { |
|
|
|
|
case 'addglosary': |
|
|
|
|
|
|
|
|
|
switch ($action) { |
|
|
|
|
case 'addglossary': |
|
|
|
|
$form = new FormValidator('glossary','post', api_get_self().'?action='.Security::remove_XSS($_GET['action'])); |
|
|
|
|
// settting the form elements |
|
|
|
|
$form->addElement('header', '', get_lang('TermAddNew')); |
|
|
|
@ -164,11 +164,11 @@ if (api_is_allowed_to_edit(null, true)) { |
|
|
|
|
GlossaryManager::display_glossary(); |
|
|
|
|
break; |
|
|
|
|
case 'moveup': |
|
|
|
|
GlossaryManager::move_glossary('up',$_GET['glossary_id']); |
|
|
|
|
//GlossaryManager::move_glossary('up',$_GET['glossary_id']); //actions not available |
|
|
|
|
GlossaryManager::display_glossary(); |
|
|
|
|
break; |
|
|
|
|
case 'movedown': |
|
|
|
|
GlossaryManager::move_glossary('down',$_GET['glossary_id']); |
|
|
|
|
//GlossaryManager::move_glossary('down',$_GET['glossary_id']); //actions not available |
|
|
|
|
GlossaryManager::display_glossary(); |
|
|
|
|
break; |
|
|
|
|
case 'import': |
|
|
|
|