From 1f2a9f1002febad6ef9e3adeb54cf366c7315d74 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 19 Jul 2007 11:41:25 +0000 Subject: [PATCH] Added possibility to do notifications. Not used currently. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6918 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/themes/default/style.css | 11 +++++++---- include/class_plugin.inc | 3 +++ include/class_tabs.inc | 10 ++++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/html/themes/default/style.css b/html/themes/default/style.css index 6a6fba1bf..3145a7c14 100644 --- a/html/themes/default/style.css +++ b/html/themes/default/style.css @@ -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; diff --git a/include/class_plugin.inc b/include/class_plugin.inc index da3441eaa..f9a5b3a78 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -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 diff --git a/include/class_tabs.inc b/include/class_tabs.inc index ee245f01b..4e8ee7249 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -159,11 +159,17 @@ class tabs $title= preg_replace("/ /", " ", $title); + /* Take care about notifications */ + if ($this->by_object[$class]->pl_notify){ + $notify= "id=\"notify\""; + } else { + $notify= ""; + } if ($_SESSION['js']==FALSE){ - $display.= "
$title$title