diff --git a/main/glossary/index.php b/main/glossary/index.php old mode 100644 new mode 100755 index 24e9f75c08..a2e70cffce --- a/main/glossary/index.php +++ b/main/glossary/index.php @@ -12,7 +12,7 @@ $language_file = array('glossary'); // including the global dokeos file require_once '../inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php'; -require_once(api_get_path(LIBRARY_PATH).'glossary.lib.php'); +require_once api_get_path(LIBRARY_PATH).'glossary.lib.php'; // the section (tabs) $this_section=SECTION_COURSES; @@ -21,7 +21,7 @@ $this_section=SECTION_COURSES; api_protect_course_script(true); // including additional libraries -require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); +require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; // additional javascript $htmlHeadXtra[] = GlossaryManager::javascript_glossary(); @@ -137,7 +137,5 @@ if (api_is_allowed_to_edit(null,true)) { } else { GlossaryManager::display_glossary(); } - - // footer Display::display_footer(); \ No newline at end of file diff --git a/main/inc/lib/glossary.lib.php b/main/inc/lib/glossary.lib.php index df2b650e2a..a85609e3a8 100755 --- a/main/inc/lib/glossary.lib.php +++ b/main/inc/lib/glossary.lib.php @@ -277,8 +277,7 @@ class GlossaryManager { echo ''.Display::return_icon('view_table.gif',get_lang('TableView')).get_lang('TableView').''; } echo ''; - if (!$_SESSION['glossary_view'] OR $_SESSION['glossary_view'] == 'table') - { + if (!$_SESSION['glossary_view'] OR $_SESSION['glossary_view'] == 'table') { $table = new SortableTable('glossary', array('GlossaryManager','get_number_glossary_terms'), array('GlossaryManager','get_glossary_data'),0); $table->set_header(0, get_lang('DisplayOrder'), true); $table->set_header(1, get_lang('TermName'), true); @@ -286,13 +285,12 @@ class GlossaryManager { $table->set_header(3, get_lang('CreationDate'), false); $table->set_header(4, get_lang('UpdateDate'), false); if (api_is_allowed_to_edit(null,true)) { - $table->set_header(5, get_lang('Actions'), false); + $table->set_header(5, get_lang('Actions'), false, 'width=80px'); $table->set_column_filter(5, array('GlossaryManager','actions_filter')); } $table->display(); } - if ($_SESSION['glossary_view'] == 'list') - { + if ($_SESSION['glossary_view'] == 'list') { GlossaryManager::display_glossary_list(); } } @@ -305,8 +303,7 @@ class GlossaryManager { */ function display_glossary_list() { $glossary_data = GlossaryManager::get_glossary_data(0,1000,0,ASC); - foreach($glossary_data as $key=>$glossary_item) - { + foreach($glossary_data as $key=>$glossary_item) { echo '
'.$glossary_item[1].'
'; echo '
'.$glossary_item[2].'
'; if (api_is_allowed_to_edit(null,true)) {