From: hickert Date: Mon, 22 Mar 2010 13:38:32 +0000 (+0000) Subject: Converted images X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4a24651922a70180f166dd5a608ddf2af872b5ce;p=gosa.git Converted images git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16996 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc b/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc index e986f504e..ac99ee5d8 100644 --- a/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc +++ b/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc @@ -62,7 +62,7 @@ class faiSummaryTab extends plugin{ /* Get classes & release name There are 2 different tabs which use the summary tab faiProfile / Workstations */ - + /* Check if given parent object is fai profile tabs */ if(isset($this->parent->by_name['faiProfile'])){ @@ -75,6 +75,7 @@ class faiSummaryTab extends plugin{ /* Check if parent tab is work tab */ }elseif(isset($this->parent->by_name['workstartup'])){ + if($this->parent->by_object['workstartup']->FAIdebianMirror == "inherited"){ $this->Classes = $this->parent->by_object['workstartup']->InheritedFAIclass; $this->Release = $this->parent->by_object['workstartup']->InheritedFAIrelease; @@ -100,6 +101,9 @@ class faiSummaryTab extends plugin{ } } + // All FAI stuff is located on the ldap base, isn't it? + $this->base = $this->config->current['BASE']; + $tmp = array_flip($this->getBranches()); $this->Classes[] = "LAST"; @@ -114,6 +118,7 @@ class faiSummaryTab extends plugin{ $this->Releases = $tmp; $this->usedClasses = array(); + /* Check the configuration */ if(count($this->Classes) && (!empty($this->Release))){ foreach($this->Classes as $class){ @@ -156,9 +161,9 @@ class faiSummaryTab extends plugin{ $value = preg_replace("/_.*$/","",$value); unset($this->Result[$value]['Open']); } - if(preg_match("/^reloadList/",$name)){ - $this->InitCalled = false; - } + } + if(isset($_POST['reloadList'])){ + $this->InitCalled = false; } } @@ -220,29 +225,26 @@ class faiSummaryTab extends plugin{ function createSummary($data) { /* Don't generate any output, if there is no result */ - $str =" "; if(!count($this->Result)){ - $str.="
"; - $str.= (_("This object has no FAI classes assigned.")); - $str.= "
"; - return($str); + return("

"._("This object has no FAI classes assigned.")."

"); } + $str =" "; /* walk through all classes */ foreach($data as $key => $entry){ - $image = "".$this->objs[$key]["; + $image = image($this->objs[$key]['Image']); if(!isset($entry['Open'])){ $str .= ""; }else{ $str .= ""; diff --git a/gosa-plugins/fai/admin/fai/faiSummary.tpl b/gosa-plugins/fai/admin/fai/faiSummary.tpl index edc548d59..5c4f99773 100644 --- a/gosa-plugins/fai/admin/fai/faiSummary.tpl +++ b/gosa-plugins/fai/admin/fai/faiSummary.tpl @@ -1,29 +1,24 @@ -
- - "._("Open")." "; + ". + image('images/lists/expand.png'); $str .= $image." "; $str .= " ".$this->objs[$key]['Name']."
- - "._("Close")." "; + ". + image('images/lists/sort-down.png'); $str .= $image." "; $str .= "".$this->objs[$key]['Name']."
- - - - +
{t}FAI object tree{/t}
+ + - {if $readable} - - + {else} - + {/if}
{t}FAI object tree{/t}
- + {image path="images/lists/reload.png" action="reloadList"} - {t}Reload class and release configuration from parent object.{/t}
- {$objectList} + {$objectList}
- {t}You are not allowed to view the fai summary.{/t} - +

{t}You are not allowed to view the fai summary.{/t}

+