Code

Updated snapshot stuff, check acls here too.
[gosa.git] / gosa-plugins / sudo / admin / sudo / class_target_list_users.inc
index 34cc1e810d745e3b649841446a0dfc92fbd7e452..0b25d7c6adf90171d559f478135f7a8c25fff9cd 100644 (file)
 
 class target_list_users extends MultiSelectWindow
 {
-  var $config;
-  var $list         =array();
-  var $Targets_used =array();
+  public $config;
+  private $list         =array();
+  private $Targets_used =array();
 
   /* Current base */
-  var $selectedBase       = "";
-  var $departments        = array();
+  private $departments        = array();
 
   /* Regex */
-  var $Regex              = "*";
+  protected $Regex              = "*";
 
   /* CheckBoxes, to change default values modify $this->AddCheckBox */
-  var $user       ;
-  var $group      ;
+  protected $user       ;
+  protected $group      ;
 
   /* Subsearch checkbox */
-  var $SubSearch          ;
-  var $parent             ;
-  var $ui                 ;
+  protected $SubSearch          ;
+  protected $parent             ;
+  protected $ui                 ;
 
   function target_list_users(&$config,$Targets_used)
   {
@@ -49,8 +48,8 @@ class target_list_users extends MultiSelectWindow
     $this->Targets_used  = $Targets_used;
 
     $this->SetInformation(  _("Select the target objects"));
-    $this->SetTitle(        _("Available targets"));
-    $this->SetSummary(      _("Available targets"));
+    $this->SetTitle(        _("Available members"));
+    $this->SetSummary(      _("Available members"));
     $this->SetHeadpageMode(FALSE);
 
     /* set Page header */
@@ -139,8 +138,8 @@ class target_list_users extends MultiSelectWindow
 
     /* Add department selector */
     $listhead .= _("Base")."&nbsp;<select name='CurrentMainBase' onChange='mainform.submit()' class='center'>$options</select>".
-      " <input class='center' type='image' src='images/list_submit.png' align='middle'
-      title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'>&nbsp;";
+      " <input class='center' type='image' src='images/lists/submit.png' align='middle'
+      title='"._("Apply")."' name='submit_department' alt='"._("Submit")."'>&nbsp;";
     $listhead .="</div>";
 
     $this->SetListHeader($listhead);
@@ -180,7 +179,7 @@ class target_list_users extends MultiSelectWindow
       }
 
       $img1 = "<img src='images/select_user.png'  alt='"._("User")."'  ".$title.">";
-      $img2 = "<img src='images/select_groups.png' alt='"._("Group")."' ".$title.">";
+      $img2 = "<img src='plugins/groups/images/groups.png' alt='"._("Group")."' ".$title.">";
 
       if(in_array("posixGroup",$val['objectClass'])){
         $img = $img2;
@@ -242,8 +241,6 @@ class target_list_users extends MultiSelectWindow
               array("cn","uid","objectClass","description"), GL_SIZELIMIT | GL_SUBSEARCH));
       }
     }else{
-      $res= get_list($filter, array("users"), get_people_ou().$base, 
-          array("cn","uid","objectClass","description"), GL_SIZELIMIT );
       $res = array();
       if($this->user){
         $filter   = "(&(objectClass=person)(objectClass=gosaAccount))";