summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ccf31bf)
raw | patch | inline | side by side (parent: ccf31bf)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 31 Oct 2007 14:26:00 +0000 (14:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 31 Oct 2007 14:26:00 +0000 (14:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7700 594d385d-05f5-0310-b6e9-bd551577e9d8
html/themes/default/style.css | patch | blob | history | |
plugins/admin/systems/class_divListSystem.inc | patch | blob | history | |
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
index 518684e9f2b1eb503d7f25c1a2a03bb50ea888af..47a046263fe8b388c7dc58091cfc520662d2e1ed 100644 (file)
right: 11px;
}
-.kseparator {
+.separator {
background-color: #ff0000;
border-top: 1px solid #c6c6bf;
border-bottom: 1px solid #ffffff;
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index 096c7b1f9f58ff30bcccd99fbf220ed0799ead78..e64d25ba3c9e955bb4bfe364d2a5b63aadc94f41 100644 (file)
" "._("Copy all")."|"."multiple_copy_systems|\n";
$s.= "..|<img src='images/editcut.png' alt='' border='0' class='center'>".
" "._("Cut all")."|"."multiple_cut_systems|\n";
- $s.= "..|"._("Cut all")."|"."multiple_cut_systems||editcut.png|\n";
}
/* Get copy & paste icon */
if(preg_match("/(c.*w|w.*c)/",$all_module_acls) && $this->parent->CopyPasteHandler){
if($this->parent->CopyPasteHandler->entries_queued()){
$img = "<img border='0' class='center' src='images/editpaste.png' alt=''>";
- $s.="..|".$img." "._("Paste")."|\n";
+ $s.="..|".$img." "._("Paste")."|editPaste|\n";
}else{
$img = "<img border='0' class='center' src='images/cant_editpaste.png' alt=''>";
$s.="..|".$img." "._("Paste")."\n";
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index b45f48782b6ee6201efa7fca05d6fdcebb03ab42..f3b34c7fe75b835cedc3daf75ebcf6aa8a81a993 100644 (file)
}elseif(preg_match("/gen_cd_.*/i",$key)){
$s_action="gen_cd";
$s_entry = preg_replace("/gen_cd_/i","",$key);
- }elseif(preg_match("/^remove_multiple_systems/i",$key)){
- $s_action="del_multiple";
- }elseif(preg_match("/newsystem_.*/i",$key)){
- $s_action="newsystem";
- $s_entry = preg_replace("/newsystem_/i","",$key);
- }elseif(preg_match("/^multiple_copy_systems/",$key)){
- $s_action = "copy_multiple";
- }elseif(preg_match("/^multiple_cut_systems/",$key)){
- $s_action = "cut_multiple";
- }elseif(preg_match("/^editPaste.*/i",$key)){
- $s_action="editPaste";
}elseif(preg_match("/^copy_.*/",$key)){
$s_action="copy";
$s_entry = preg_replace("/^copy_/i","",$key);
$s_entry = preg_replace("/^newsystem_/","",$_POST['menu_action']);
}
+ /* handle C&P from layers menu */
+ if(isset($_POST['menu_action']) && preg_match("/^multiple_copy_systems/",$_POST['menu_action'])){
+ $s_action = "copy_multiple";
+ }
+ if(isset($_POST['menu_action']) && preg_match("/^multiple_cut_systems/",$_POST['menu_action'])){
+ $s_action = "cut_multiple";
+ }
+ if(isset($_POST['menu_action']) && preg_match("/^editPaste/",$_POST['menu_action'])){
+ $s_action = "editPaste";
+ }
+
+ /* handle remove from layers menu */
+ if(isset($_POST['menu_action']) && preg_match("/^remvove_multiple/",$_POST['menu_action'])){
+ $s_action = "del_multiple";
+ }
+
+
/* Check for exeeded sizelimit */
if (($message= check_sizelimit()) != ""){
return($message);
$oc = $this->terminals[$id]['objectClass'];
$type = $this->get_system_type($this->terminals[$id]);
- $tab_o = $tabs[$type]['CLASS'];
- $tab_c = $tabs[$type]['TABCLASS'];
- $acl = $tabs[$type]['ACL'];
-
- if($s_action == "copy_multiple"){
- $this->CopyPasteHandler->add_to_queue($dn,"copy",$tab_c,$tab_o,$acl);
- }
- if($s_action == "cut_multiple"){
- $this->CopyPasteHandler->add_to_queue($dn,"cut",$tab_c,$tab_o,$acl);
+ if(isset($tabs[$type])){
+ $tab_o = $tabs[$type]['CLASS'];
+ $tab_c = $tabs[$type]['TABCLASS'];
+ $acl = $tabs[$type]['ACL'];
+
+ if($s_action == "copy_multiple"){
+ $this->CopyPasteHandler->add_to_queue($dn,"copy",$tab_c,$tab_o,$acl);
+ }
+ if($s_action == "cut_multiple"){
+ $this->CopyPasteHandler->add_to_queue($dn,"cut",$tab_c,$tab_o,$acl);
+ }
}
}
}