From: hickert Date: Thu, 6 Apr 2006 10:56:48 +0000 (+0000) Subject: Updated group / apps image positioning X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1391e4a0e62abcb8095539a987d47c666fbb2ec4;p=gosa.git Updated group / apps image positioning git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3007 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 087a0ef86..f726bcddb 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -635,24 +635,34 @@ class appgroup extends plugin foreach($this->gosaMemberApplication[$this->curCatDir] as $cat => $entry){ - if(preg_match("/__SEPARATOR__/",$entry['App'])){ $div2 ->AddEntry(array(array("string"=>$separator), array("string"=>preg_replace("/\%s/",htmlentities($entry['App']),$upudown),"attach"=>"align='right' style='border-right:0px;'"))); }else{ - $broken = ""; + $image = ""; + /* Check if application was available within selected release + * or application list if release management is not active + */ if(!in_array($entry['App'],$this->AllAppsForRelease)){ + + /* release managent is active + */ if(!$this->enableReleaseManagement){ - $broken = " "; + $image = " "; }else{ - $broken = " "; + $image = " "; } + + }else{ + $image = "\"\" "; } - $div2 ->AddEntry(array(array("string"=>sprintf($app,$entry['App'])), - array("string"=>$broken,"attach"=>"style='width:28px;'"), - array("string"=>preg_replace("/\%s/",htmlentities($entry['App']),$sep.$edit.$upudown),"attach"=>"align='right' style='width:100px;border-right:0px;'"))); + $div2 ->AddEntry(array(array("string"=>sprintf($image."%s",$entry['App'])), + array("string"=>preg_replace("/\%s/",htmlentities($entry['App']),$sep.$edit.$upudown), + "attach"=>"align='right' style='width:100px;border-right:0px;'"))); } } }