Code

Updated group / apps image positioning
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Apr 2006 10:56:48 +0000 (10:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Apr 2006 10:56:48 +0000 (10:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3007 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index 087a0ef86a2826aae3a64feb275672e1620c08e1..f726bcddb4a61f113b926a30087120d8829174a0 100644 (file)
@@ -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 = "<img src='images/false.png' title='"._("This application is no longer available.")."'>&nbsp;";
+              $image = "<img class='center' src='images/select_invalid_application.png' 
+                          title='"._("This application is no longer available.")."'>&nbsp;";
             }else{
-              $broken = "<img src='images/false.png' title='".sprintf(_("This application is not available in any release named %s."),$this->Release)."'>&nbsp;";
+              $image = "<img class='center' src='images/select_invalid_application.png' 
+                          title='".sprintf(_("This application is not available in any release named %s."),$this->Release)."'>&nbsp;";
             }
+      
+          }else{
+            $image = "<img class='center' src='images/select_application.png' alt=\"\">&nbsp;"; 
           }
           
-          $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;'")));
         }
       }
     }