Code

Added possibility to do notifications. Not used currently.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jul 2007 11:57:32 +0000 (11:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jul 2007 11:57:32 +0000 (11:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6919 594d385d-05f5-0310-b6e9-bd551577e9d8

html/themes/default/style.css
include/class_plugin.inc
include/class_tabs.inc

index cbd670f3b9bfba9b8e86b0a9b3073296307afccf..cf91f5601de58d9a1e37407741b2faec74721d24 100644 (file)
@@ -463,6 +463,13 @@ div.tab_active {
        padding-right:8px;
 }
 
+div#notify {
+       background-image: url("../../images/lamp.png");
+       background-repeat:no-repeat;
+       background-position:1px 1px;
+       padding-left:18px;
+}
+
 div.tab_left {
        text-align:center;
        background-color:#D0D0D0;
@@ -526,7 +533,6 @@ a.tab_active, input.tab_active {
        margin:0px;
        height:22px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#f8f8f8;
        text-decoration:none;
        color:#00008F;
        font-size:13px;
@@ -538,7 +544,6 @@ a.tab_right, input.tab_right {
        border:0px;
        margin:0px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#D0D0D0;
        text-decoration:none;
        color:#00008F;
        font-size:13px;
@@ -550,7 +555,6 @@ a.tab_left, input.tab_left {
        border:0px;
        margin:0px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#D0D0D0;
        text-decoration:none;
        color:#00008F;
        font-size:13px;
index e613f4db9753c1a1498842c3e22943ac32f766fe..5377436705ff16c15264bd2ddf74fb6b4901c3d2 100644 (file)
@@ -115,6 +115,9 @@ class plugin
   var $plHeadline= "";
   var $plDescription= "";
 
+  /* This can be set to render the tabulators in another stylesheet */
+  var $pl_notify= FALSE;
+
   /*! \brief plugin constructor
 
     If 'dn' is set, the node loads the given 'dn' from LDAP
@@ -1170,7 +1173,7 @@ class plugin
 
         /* Check if the snapshot_base is defined */
         if(!isset($tmp['SNAPSHOT_BASE'])){
-          print_red(sprintf(_("The snapshot functionality is enabled, but the required variable '%s' is not configured in your gosa.conf."),$missing));
+          print_red(sprintf(_("The snapshot functionality is enabled, but the required variable '%s' is not configured in your gosa.conf."),"SNAPSHOT_BASE"));
           return(FALSE);
         }
 
index a6025cb20ad562b0115a9754e970e509f1660ccb..e3bc989f175db25104e6e4e7eb9b83a3d0c4553f 100644 (file)
@@ -163,11 +163,18 @@ class tabs
                /* nobr causes w3c warnings so we use &nbsp; to keep the tab name in one line */
                $title= preg_replace("/ /","&nbsp;",$title);
 
+    /* Take care about notifications */
+    if ($this->by_object[$class]->pl_notify){
+      $notify= "id=\"notify\"";
+    } else {
+      $notify= "";
+    }
+
                if ($_SESSION['js']==FALSE){    
-                       $display.= "<div class=\"$style[$index]\"><input type=\"submit\" name=\"$class\"".
+                       $display.= "<div ".$notify." class=\"$style[$index]\"><input type=\"submit\" name=\"$class\"".
                                   " class=\"$style[$index]\" value=\"$title\"";
                } else {                         
-                       $display.= "<div class=\"$style[$index]\"><a class=\"$style[$index]\" onclick=\"return true;\" href=\"javascript:document.mainform.arg.value='$class';document.mainform.submit();\">$title</a";
+                       $display.= "<div ".$notify." class=\"$style[$index]\"><a class=\"$style[$index]\" onclick=\"return true;\" href=\"javascript:document.mainform.arg.value='$class';document.mainform.submit();\">$title</a";
                }
                $display.= "></div></td>";
        }