diff --git a/main/gradebook/lib/fe/gradebooktable.class.php b/main/gradebook/lib/fe/gradebooktable.class.php index e3990f63e9..3a557acd71 100644 --- a/main/gradebook/lib/fe/gradebooktable.class.php +++ b/main/gradebook/lib/fe/gradebooktable.class.php @@ -1,4 +1,25 @@ set_header($column++, '', false); $this->set_header($column++, get_lang('Type')); $this->set_header($column++, get_lang('Name')); - $this->set_header($column++, get_lang('Description')); + $this->set_header($column++, get_lang('Description')); $this->set_header($column++, get_lang('Weight')); - $this->set_header($column++, get_lang('Date')); + $this->set_header($column++, get_lang('Date'),true, 'width="80"'); + //admins get an edit column if (api_is_allowed_to_create_course()) { - $this->set_header($column++, get_lang('Modify'), false); + + $this->set_header($column++, get_lang('Modify'), false, 'width="80"'); //actions on multiple selected documents $this->set_form_actions(array ( 'delete' => get_lang('DeleteSelected'), diff --git a/main/gradebook/lib/gradebook_functions.inc.php b/main/gradebook/lib/gradebook_functions.inc.php index ee8979cdc7..88cc237c7e 100644 --- a/main/gradebook/lib/gradebook_functions.inc.php +++ b/main/gradebook/lib/gradebook_functions.inc.php @@ -1,5 +1,25 @@ , Hogeschool Ghent @@ -30,8 +50,8 @@ function get_course_name_from_code($code) { $tbl_main_categories= Database :: get_main_table(TABLE_MAIN_COURSE); $sql= 'SELECT title,code FROM ' . $tbl_main_categories . 'WHERE code = "' . $code . '"'; - $result= mysql_query($sql); - if ($col= mysql_fetch_array($result)) + $result= api_sql_query($sql,__FILE__,__LINE__); + if ($col= Database::fetch_array($result)) { return $col['title']; } @@ -83,7 +103,7 @@ function build_edit_icons_cat($cat, $selectcat) $modify_icons .= ' '; } else { - $modify_icons .= ' '; + $modify_icons .= ' '; } $modify_icons .= ' '; return $modify_icons;