Code

First page W3c Conform (first step done)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 06:38:52 +0000 (06:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 06:38:52 +0000 (06:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@354 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php
include/class_pluglist.inc

index 7005a1646ab0ebe185ac0cbbc944bada12f706ce..cdce202383b86132ef30f0cf83969dc3a710cdf4 100644 (file)
@@ -257,6 +257,7 @@ if (isset ($_SESSION['post_cnt'])){
 /* Load plugin */
 if (is_file("$plugin_dir/main.inc")){
   require_once ("$plugin_dir/main.inc");
+  print $plugin_dir;
 } else {
   print_red(sprintf(_("Can't find any plugin definitions for plugin '%s'!"), $plug));
   echo $_SESSION['errors'];
index f6963d10f17954876b5d245f13eeda5cf9b6d862..33189acceb174802df37b4abc12551e6d6194ca1 100644 (file)
@@ -196,8 +196,23 @@ class pluglist {
                                $index= $this->get_index($info['PATH']);
 
                                if ($this->check_access($info['ACL'])){
+                               
+                               /* Hm this looks doubled */
+                               $image= get_template_path('images/'.$info['ICON']);
+                    if ($col > 5){
+                                               $entries= $entries."</tr><tr>";
+                                               $col = 1;
+                                       }
+                    $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++ ;
+
 
-                                       /* next row? */
+                               /*
+                                       / * 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\"'".
@@ -214,6 +229,7 @@ class pluglist {
                                                        _($plHeadline)."</a></td>\n</tr>\n<tr>\n";
                                                $col= 1;
                                        }
+                               */
                                }
                        }