diff --git a/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc b/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc
index de03718668d44ad923186b0dbfee5554e2933ef8..3a33cec20b854ee6195e54f70c2309869055eb4c 100644 (file)
{
/* Current base */
{
/* Current base */
- var $selectedBase = "";
- var $departments = array();
+ private $departments = array();
/* Regex */
/* Regex */
- var $Regex = "*";
- var $UserRegex = "*";
+ public $Regex = "*";
+ public $UserRegex = "*";
/* Subsearch checkbox */
/* Subsearch checkbox */
- var $SubSearch = FALSE;
- var $parent ;
- var $ui ;
+ public $SubSearch = FALSE;
+ protected $parent ;
+ public $ui ;
/*! \brief Initialize this class
/*! \brief Initialize this class
$this->EnableSaveButton (false);
/* Dynamic action col, depending on snapshot icons */
$this->EnableSaveButton (false);
/* Dynamic action col, depending on snapshot icons */
- $action_col_size = 50;
+ $action_col_size = 54;
if($this->parent->snapshotEnabled()){
if($this->parent->snapshotEnabled()){
- $action_col_size += 38;
+ $action_col_size += 32;
+ }
+ if($this->parent->CopyPasteHandler){
+ $action_col_size += 20;
}
/* Toggle all selected / deselected */
}
/* Toggle all selected / deselected */
" "._("Remove")."|"."del_role|\n";
}
" "._("Remove")."|"."del_role|\n";
}
+ /* Add multiple copy & cut icons */
+ if(is_object($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl)){
+ $s.= "..|---|\n";
+ $s.= "..|<img src='images/editcopy.png' alt='' border='0' class='center'>".
+ " "._("Copy")."|"."multiple_copy_sudo|\n";
+# $s.= "..|<img src='images/editcut.png' alt='' border='0' class='center'>".
+# " "._("Cut")."|"."multiple_cut_sudo|\n";
+
+ if($this->parent->CopyPasteHandler->entries_queued()){
+ $img = "<img border='0' class='center' src='images/editpaste.png' alt=''>";
+ $s.="..|".$img." "._("Paste")."|editPaste|\n";
+ }else{
+ $img = "<img border='0' class='center' src='images/cant_editpaste.png' alt=''>";
+ $s.="..|".$img." "._("Paste")."\n";
+ }
+ }
+
+
/* Add snapshot icons */
if(preg_match("/(c.*w|w.*c)/",$acl)){
$s .= "..|---|\n";
/* Add snapshot icons */
if(preg_match("/(c.*w|w.*c)/",$acl)){
$s .= "..|---|\n";
$userimg = "<img class='center' src='images/select_sudo.png' alt='Sudo' title='%s'>";
$ui = get_userinfo();
$userimg = "<img class='center' src='images/select_sudo.png' alt='Sudo' title='%s'>";
$ui = get_userinfo();
- $action_col_size = 50;
+ $action_col_size = 54;
if($this->parent->snapshotEnabled()){
if($this->parent->snapshotEnabled()){
- $action_col_size += 38;
+ $action_col_size += 32;
+ }
+ if($this->parent->CopyPasteHandler){
+ $action_col_size += 20;
}
// Test Every Entry and generate divlist Array
}
// Test Every Entry and generate divlist Array
/* Add edit icon */
$actions = "";
/* Add edit icon */
$actions = "";
+
+ $actions= "";
+ if(($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl)){
+# $actions.= "<input class='center' type='image'
+# src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+ $actions.= "<input class='center' type='image'
+ src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
+ }
+
+
$actions.= "<input class='center' type='image'
src='images/edit.png' alt='".msgPool::editButton()."' name='sudo_edit_%KEY%' title='"._("Edit this entry")."'>";
$actions.= "<input class='center' type='image'
src='images/edit.png' alt='".msgPool::editButton()."' name='sudo_edit_%KEY%' title='"._("Edit this entry")."'>";
$display = "<b>$display</b>";
}
$display = "<b>$display</b>";
}
+ /* Cutted objects should be displayed in light grey */
+ if($this->parent->CopyPasteHandler){
+ foreach($this->parent->CopyPasteHandler->queue as $queue_key => $queue_data){
+ if($queue_data['dn'] == $val['dn']) {
+ $display = "<font color='#999999'>".$display."</font>";
+ break;
+ }
+ }
+ }
+
$field1 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
"attach" => "style='width:20px;'");
$field2 = array("string" => sprintf($userimg,$val['dn']),
$field1 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
"attach" => "style='width:20px;'");
$field2 = array("string" => sprintf($userimg,$val['dn']),