summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f46cf5)
raw | patch | inline | side by side (parent: 1f46cf5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 13:38:32 +0000 (13:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 13:38:32 +0000 (13:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16996 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc | patch | blob | history | |
gosa-plugins/fai/admin/fai/faiSummary.tpl | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc b/gosa-plugins/fai/admin/fai/class_faiSummaryTab.inc
index e986f504ea2061f3a4e1140a0f565e81d93db036..ac99ee5d86ccad726d20c32640cf7795b02fc203 100644 (file)
/* 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'])){
/* 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;
}
}
+ // 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";
$this->Releases = $tmp;
$this->usedClasses = array();
+
/* Check the configuration */
if(count($this->Classes) && (!empty($this->Release))){
foreach($this->Classes as $class){
$value = preg_replace("/_.*$/","",$value);
unset($this->Result[$value]['Open']);
}
- if(preg_match("/^reloadList/",$name)){
- $this->InitCalled = false;
- }
+ }
+ if(isset($_POST['reloadList'])){
+ $this->InitCalled = false;
}
}
function createSummary($data)
{
/* Don't generate any output, if there is no result */
- $str ="<table cellspacing=0 cellpadding=2 style='width:100%;background:#F5F5F5;'> ";
if(!count($this->Result)){
- $str.="<tr><td>";
- $str.= (_("This object has no FAI classes assigned."));
- $str.= "</tr></td></table>";
- return($str);
+ return("<h3>"._("This object has no FAI classes assigned.")."</h3>");
}
+ $str ="<table style='width:100%;' summary='"._("FAI summary")."'> ";
/* walk through all classes */
foreach($data as $key => $entry){
- $image = "<img src='".$this->objs[$key]['Image']."' class='center' alt='".$this->objs[$key]['Name']."' border=0>";
+ $image = image($this->objs[$key]['Image']);
if(!isset($entry['Open'])){
$str .= "<tr>
<td colspan=2>
- <a href='?plug=".$_GET['plug']."&expand&id=".$key."'>
- <img border=0 class='center' src='images/lists/expand.png' alt='"._("Open")."'> ";
+ <a href='?plug=".$_GET['plug']."&expand&id=".$key."'>".
+ image('images/lists/expand.png');
$str .= $image." ";
$str .= " <b>".$this->objs[$key]['Name']."</b></a></td></tr>";
}else{
$str .= "<tr><td colspan=2>
- <a href='?plug=".$_GET['plug']."&compress&id=".$key."'>
- <img border=0 class='center' src='images/lists/sort-down.png' alt='"._("Close")."'> ";
+ <a href='?plug=".$_GET['plug']."&compress&id=".$key."'>".
+ image('images/lists/sort-down.png');
$str .= $image." ";
$str .= "<b>".$this->objs[$key]['Name']."</b></a></td></tr>";
index edc548d59f8b4986132391419e28870c4b0a0423..5c4f99773300b17f4a689df671ca088cd76c51bc 100644 (file)
-<table style='width:100%; ' summary="">
-
-
- <tr style="background-color: #E8E8E8; height:26px;font-weight:bold;">
- <td style="padding:5px;">{t}FAI object tree{/t}</td>
+<table style='width:100%; ' summary="{t}Summary of used FAI classes{/t}">
+ <tr>
+ <td>{t}FAI object tree{/t}</td>
</tr>
-
{if $readable}
<tr>
- <td style='padding-left:5px;padding-top:5px;padding-bottom:12px;'>
-
+ <td>
{image path="images/lists/reload.png" action="reloadList"}
-
{t}Reload class and release configuration from parent object.{/t}
</td>
</tr>
- <tr style="background-color: #E8E8E8; ">
+ <tr>
<td>
- {$objectList}
+ {$objectList}
</td>
</tr>
{else}
<tr>
- <td style='padding:6px;'>
- {t}You are not allowed to view the fai summary.{/t}
- </td>
+ <td>
+ <h3>{t}You are not allowed to view the fai summary.{/t}</h3>
+ </td>
</tr>
{/if}
</table>