Code

Removed old menu parsing
[gosa.git] / include / class_tabs.inc
index a8608b0613411ac5350d9e1a0607b60fe29a26ca..2fc2fdf0f8d17967ee25f816fe791482b73d3437 100644 (file)
@@ -74,11 +74,11 @@ class tabs
        $display= $this->gen_tabs();
 
        /* Show object */
-       $display.= "<table cellpadding=4 cellspacing=0 border=0 style=\"width:100%; background-color:#F0F0F0; border-style:solid; border-color:black; border-top-width:0px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px;\">\n";
+       $display.= "<table summary=\"\" cellpadding=4 cellspacing=0 border=0 style=\"width:100%; background-color:#F0F0F0; border-style:solid; border-color:black; border-top-width:0px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px;\">\n";
        $display.= "<tr><td>\n";
 
        $obj= $this->by_object[$this->current];
-       $display.= $obj->execute ();
+       $display.= $obj->execute();
        $this->by_object[$this->current]= $obj;
 
        /* Footer for tabbed dialog */
@@ -119,7 +119,7 @@ class tabs
   function gen_tabs()
   {
        $display= "<input type=\"hidden\" name=\"arg\" value=\"\">";
-       $display.= "<table cellpadding=0 cellspacing=0 border=0 style=\"width:100%;\"><tr>";
+       $display.= "<table summary=\"\" cellpadding=0 cellspacing=0 border=0 style=\"width:100%;\"><tr>";
        $index= 0;
        $style= array("tab_left", "tab_active", "tab_near_active", "tab_right");
        foreach ($this->by_name as $class => $name){
@@ -140,8 +140,8 @@ class tabs
 
                /* Shorten string if its too long for the tab headers*/
                $title= _($name);
-               if (mb_strlen($title, 'UTF-8') > 13){
-                       $title= mb_substr($title,0, 11, 'UTF-8')."...";
+               if (mb_strlen($title, 'UTF-8') > 14){
+                       $title= mb_substr($title,0, 12, 'UTF-8')."...";
                }
                
                if ($_SESSION['js']==FALSE){