From: hickert Date: Thu, 19 Jul 2007 11:57:32 +0000 (+0000) Subject: Added possibility to do notifications. Not used currently. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d36d9042723830da87e340f4c49964be8f1c9aa5;p=gosa.git Added possibility to do notifications. Not used currently. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6919 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/themes/default/style.css b/html/themes/default/style.css index cbd670f3b..cf91f5601 100644 --- a/html/themes/default/style.css +++ b/html/themes/default/style.css @@ -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; diff --git a/include/class_plugin.inc b/include/class_plugin.inc index e613f4db9..537743670 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -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); } diff --git a/include/class_tabs.inc b/include/class_tabs.inc index a6025cb20..e3bc989f1 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -163,11 +163,18 @@ class tabs /* nobr causes w3c warnings so we use   to keep the tab name in one line */ $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