From 12b7764dc68bca7f4b78f278f1029fad8f21f83f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Feb 2006 14:37:46 +0000 Subject: [PATCH] Some more checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2735 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScript.inc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 671ace223..c742733df 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -205,13 +205,21 @@ class faiScript extends plugin $divlist = new divSelectBox("FAIscripts"); $img_edit = ""; $img_remo = ""; + foreach($this->getList(true) as $key => $name){ + + if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new")){ + $down =_("New object"); + }else{ + $down = ""._("download").""; + } + $divlist->AddEntry(array( array("string"=>$name['name']), - array("string"=>"download"), - array("string"=>str_replace("%s",base64_encode($key),$img_edit.$img_remo),"attach"=>"style='border-right: 0px;width:40px;'"))); + array("string"=>$down), + array("string"=>str_replace("%s",base64_encode($key),$img_edit.$img_remo), + "attach"=>"style='border-right: 0px;width:40px;'"))); } $smarty->assign("Entry_divlist",$divlist->DrawList()); - /* Divlist creation complete */ -- 2.30.2