diff --git a/main/inc/lib/display.lib.php b/main/inc/lib/display.lib.php index 0603aa5d37..6ab624eaf6 100644 --- a/main/inc/lib/display.lib.php +++ b/main/inc/lib/display.lib.php @@ -273,7 +273,7 @@ class Display { * @param string The style that the table will show. You can set 'table' or 'grid' string * @author bart.mollet@hogent.be */ - public static function display_sortable_table ($header, $content, $sorting_options = array (), $paging_options = array (), $query_vars = null, $form_actions=array(),$style='table') { + public static function display_sortable_table ($header, $content, $sorting_options = array (), $paging_options = array (), $query_vars = null, $form_actions=array(), $style='table') { global $origin; $column = isset ($sorting_options['column']) ? $sorting_options['column'] : 0; $default_items_per_page = isset ($paging_options['per_page']) ? $paging_options['per_page'] : 20; diff --git a/main/inc/lib/sortabletable.class.php b/main/inc/lib/sortabletable.class.php index e25aef437a..46575e8032 100644 --- a/main/inc/lib/sortabletable.class.php +++ b/main/inc/lib/sortabletable.class.php @@ -321,9 +321,10 @@ class SortableTable extends HTML_Table { global $charset; $empty_table = false; $html = ''; + if ($this->get_total_number_of_items() == 0) { $cols = $this->getColCount(); - $this->setCellAttributes(1, 0, 'style="font-style: italic;text-align:center;" colspan='.$cols); + //$this->setCellAttributes(1, 0, 'style="font-style: italic;text-align:center;" colspan='.$cols); if (api_is_xml_http_request()===true) { $message_empty=api_utf8_encode(get_lang('TheListIsEmpty')); } else { @@ -336,12 +337,30 @@ class SortableTable extends HTML_Table { if (!$empty_table) { $form = $this->get_page_select_form(); $nav = $this->get_navigation_html(); + + // @todo This style css must be moved to default.css only for dev + echo ''; + + //this also must be moved $html = '