summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f38d66)
raw | patch | inline | side by side (parent: 1f38d66)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Dec 2008 10:53:26 +0000 (10:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Dec 2008 10:53:26 +0000 (10:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13140 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_divListFai.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc
index 8f3a594cea892773e5787d998a9054d34d444b5b..742a20285e4533caea2d1a764dba11334afe7806 100644 (file)
$name = "";
$name = "";
$icon_list = "";
+ $opsi_only = TRUE;
foreach($objects as $type => $type_data){
if(isset($value[$type])){
$name = $value[$type]['cn'];
$icon_list .= "<input type='image' src='".$type_data['IMG']."' title='".$type_data['NAME']."'
alt='".$type_data['KZL']."' class='center' name='edit_".$key."_".$type."'>\n";
$cnts[$type] ++;
+ if(!in_array($type,array("opsi_local","opsi_netboot"))){
+ $opsi_only = FALSE;
+ }
}else{
$icon_list .= "<img src='images/empty.png' alt=' ' class='center'>\n";
}
}
+ /* Create checkbox
+ */
+ $checkbox = " ";
+ if(!$opsi_only){
+ $checkbox = "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>";
+ }
+
/* Create actions string
*/
$actions = "";
-
$actions.= "<input type='image' name='group_edit_".$key."' class='center'
src='images/lists/edit.png'>";
- $actions.= "<input type='image' name='group_remove_".$key."' class='center'
- src='images/lists/trash.png'>";
-
+ if(!$opsi_only){
+ $actions.= "<input type='image' name='group_remove_".$key."' class='center'
+ src='images/lists/trash.png'>";
+ }else{
+ $actions.= "<img class='center' src='images/empty.png' alt=' '>";
+ }
/* Create list
*/
$field1 = array(
- "string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
+ "string" => $checkbox ,
"attach" => "style='width:20px;'");
$field2 = array(
"string" => $name,