Code

added alt tag to php outpu in files:
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 May 2005 09:27:37 +0000 (09:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 May 2005 09:27:37 +0000 (09:27 +0000)
M    include/smarty/debug.tpl
M    include/class_plugin.inc
M    include/class_pluglist.inc

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@432 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc
include/class_pluglist.inc
include/smarty/debug.tpl

index 5fd4220f0fd30a9cf9febfd88b86d44981174fec..8137dbb68962dd0be76cb75143d9b8b97da2507c 100644 (file)
@@ -176,7 +176,7 @@ class plugin
   {
     /* Do we represent a valid account? */
     if (!$this->is_account){
-      echo "<img src=\"images/stop.png\" align=center>&nbsp;<b>".
+      echo "<img alt=\"\" src=\"images/stop.png\" align=center>&nbsp;<b>".
         _("This 'dn' has no account extensions.")."</b>";
       return;
     }
@@ -355,7 +355,7 @@ class plugin
     } else {
       $state= "";
     }
-    $display= "<table width=100%><tr>\n<td colspan=2><p><b>$text</b></p>\n";
+    $display= "<table width=\"100%\"><tr>\n<td colspan=2><p><b>$text</b></p>\n";
     $display.= "<input type=submit value=\"$button_text\" name=\"modify_state\" ".
       chkacl($this->acl, "all")." ".$state.
       "><p class=\"seperator\">&nbsp;</p></td></tr></table>";
index 33189acceb174802df37b4abc12551e6d6194ca1..0f8f6ba04d6c0cea20147d2f5e1e4ba430110128 100644 (file)
@@ -116,7 +116,7 @@ class pluglist {
                                                _($plHeadline)."</a></p>\n";
 
                                /* Generate icon entry with description */
-                               $this->menuparts[_($headline)][]= '<table class="menuitem" onClick=\'location.href="'.$href.'"\'><tr><td style="background-color:#F0F0F0;"><a href="'.$href.'"><img border=0 src="'.$image.'"></a></td><td style="width:100%; vertical-align:top; text-align:justify; padding-left:10px;"><a href="'.$href.'"><b>'._($plHeadline).'</b></a><br><a href="'.$href.'">'._($plDescription).'</a></td></tr></table>';
+                               $this->menuparts[_($headline)][]= '<table class="menuitem" onClick=\'location.href="'.$href.'"\'><tr><td style="background-color:#F0F0F0;"><a href="'.$href.'"><img alt=\"\" border=0 src="'.$image.'"></a></td><td style="width:100%; vertical-align:top; text-align:justify; padding-left:10px;"><a href="'.$href.'"><b>'._($plHeadline).'</b></a><br><a href="'.$href.'">'._($plDescription).'</a></td></tr></table>';
 
                                }
                        }
@@ -142,7 +142,7 @@ class pluglist {
        }
 
        /* Fill current array */
-       $result= "<table width=100%>";
+       $result= "<table width=\"100%\">";
        $count= 0;
        foreach ($this->menuparts[$this->current] as $entry){
                if ($count == 2){
@@ -205,31 +205,11 @@ class pluglist {
                                        }
                     $entries= $entries."<td class=\"iconmenu\" style=\"width:20%;\" onClick='location.href=\"main.php?plug=$index&amp;reset=1\"'".
                         "><a class=\"iconmenu\" href=\"main.php?plug=$index&amp;reset=1\">".
-                        "<img $isize border=0 align=middle src=\"$image".
+                        "<img alt=\"\" $isize border=0 align=middle src=\"$image".
                         "\" alt=\"*\">&nbsp;".
                         _($plHeadline)."</a></td>\n";
                     $col++ ;
 
-
-                               /*
-                                       / * next row? * /
-                                       $image= get_template_path('images/'.$info['ICON']);
-                                       if ($col % 5){
-                                               $entries= $entries."<td class=\"iconmenu\" style=\"width:20%;\" onClick='location.href=\"main.php?plug=$index&amp;reset=1\"'".
-                                                       "><a class=\"iconmenu\" href=\"main.php?plug=$index&amp;reset=1\">".
-                                                       "<img $isize border=0 align=middle src=\"$image".
-                                                       "\" alt=\"*\">&nbsp;".
-                                                       _($plHeadline)."</a></td>\n";
-                                               $col++;
-                                       } else {
-                                               $entries= $entries."<td class=\"iconmenu\" style=\"width:20%;\" onClick='location.href=\"main.php?plug=$index&amp;reset=1\"'".
-                                                       "><a class=\"iconmenu\" href=\"main.php?plug=$index&amp;reset=1\">".
-                                                       "<img $isize border=0 align=middle src=\"$image".
-                                                       "\" alt=\"*\">&nbsp;".
-                                                       _($plHeadline)."</a></td>\n</tr>\n<tr>\n";
-                                               $col= 1;
-                                       }
-                               */
                                }
                        }
 
index 7f1c9d42587ceb21a097334af84aa6292f352f67..98c811d3c7c7a5b58e28cffbe851ef6c9811f1de 100644 (file)
@@ -5,7 +5,7 @@
 {assign_debug_info}
 
 {if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"}
-       <table border=0 width=100%>
+       <table border=0 width="100%">
        <tr bgcolor=#cccccc><th colspan=2>Smarty Debug Console</th></tr>
        <tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>
        {section name=templates loop=$_debug_tpls}
@@ -37,7 +37,7 @@
        {rdelim}
        _smarty_console = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes");
        _smarty_console.document.write("<HTML><HEAD><TITLE>Smarty Debug Console_"+self.name+"</TITLE></HEAD><BODY bgcolor=#ffffff>");
-       _smarty_console.document.write("<table border=0 width=100%>");
+       _smarty_console.document.write("<table border=0 width='100%'>");
        _smarty_console.document.write("<tr bgcolor=#cccccc><th colspan=2>Smarty Debug Console</th></tr>");
        _smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>");
        {section name=templates loop=$_debug_tpls}