Code

Added possibility to do notifications. Not used currently.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jul 2007 11:41:25 +0000 (11:41 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Jul 2007 11:41:25 +0000 (11:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6918 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 6a6fba1bf42c6cf08ca1e283a5d3277554c687b8..3145a7c14988b7aad0470826ef08a15a21977f85 100644 (file)
@@ -472,6 +472,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;
        height:20px;
@@ -536,7 +543,6 @@ a.tab_active, input.tab_active {
        margin:0px;
        height:22px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#f0f0f0;
        text-decoration:none;
        color:#00348B;
        font-size:13px;
@@ -548,7 +554,6 @@ a.tab_right, input.tab_right {
        border:0px;
        margin:0px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#c0c0c0;
        text-decoration:none;
        color:#00348b;
        font-size:13px;
@@ -560,7 +565,6 @@ a.tab_left, input.tab_left {
        border:0px;
        margin:0px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#c0c0c0;
        text-decoration:none;
        color:#00348b;
        font-size:13px;
@@ -572,7 +576,6 @@ a.tab_near_active, input.tab_near_active {
        border:0px;
        margin:0px;
        font-family:arial,helvetica,sans-serif;
-       background-color:#c0c0c0;
        text-decoration:none;
        color:#00348b;
        font-size:13px;
index da3441eaab7d4417e18116ebe1116060b373c19d..f9a5b3a7878a94980514534ced443d0f9b2dd0a0 100644 (file)
@@ -107,6 +107,9 @@ class plugin
   var $new= TRUE;
   var $saved_attributes= array();
 
+  /* 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
index ee245f01b22ac1f7e9a0adf729dc3f0335a65e49..4e8ee724911d61d879288965290b2f398e8bdc01 100644 (file)
@@ -159,11 +159,17 @@ class tabs
 
                $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 class=\"$style[$index]\" $notify><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>";
        }