summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a0182dc)
raw | patch | inline | side by side (parent: a0182dc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Mar 2010 13:22:35 +0000 (13:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Mar 2010 13:22:35 +0000 (13:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15799 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_tabs.inc | patch | blob | history |
index 6be1d9d2f21bd884e986e81542666f4f04041905..a6a80070dc6f7be50cbdb8b42cdfc2b6694a31c5 100644 (file)
function save_object($save_current= FALSE)
{
-
-
-
/* Save last tab */
if ($this->last != ""){
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
$display = "\n <div class='tabs'>";
$display.= "\n <ul>";
-
foreach ($this->by_name as $class => $name){
// Shorten string if its too long for the tab headers
// Take care about notifications
$obj = $this->by_object[$class];
- $notify ="";
+ $tabClass = ($this->current == $class) ? "current" :"";
if ( $this->by_object[$class]->pl_notify && ($obj->is_account || $obj->ignore_account)){
- $notify= "!";
+ $tabClass .= " info";
}
- $tabClass = ($this->current == $class) ? "class='current'" :"";
+ if(!empty($tabClass)) $tabClass="class='{$tabClass}'";
$onClick = "document.mainform.arg.value='{$class}'; document.mainform.submit();";
- $display.= "\n <li {$tabClass} onClick=\"{$onClick}\">$title{$notify}</li>";
+ $display.= "\n <li {$tabClass} onClick=\"{$onClick}\">{$title}</li>";
}
$display.="\n </ul>";
$display.="\n </div>";