summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b858b36)
raw | patch | inline | side by side (parent: b858b36)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Oct 2007 09:34:33 +0000 (09:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Oct 2007 09:34:33 +0000 (09:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7486 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationStartup.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 70b0e808893d5a6fbd6f2dedaeb81ed52463f02d..b54499a40b6b24206c303bd7ac6c325e7ae7f95a 100644 (file)
}
break;
}
+ if(preg_match("/gotoLdapRemove_/",$name)){
+ $id = preg_replace("/^gotoLdapRemove_([0-9]*)_(x|y)$/","\\1",$name);
+ $value = $this->gotoLdapServers[$id];
+ $this->gotoLdapServers = array_remove_entries(array($value),$this->gotoLdapServers);
+ break;
+ }
}
}
/* Add Entries
*/
foreach($this->gotoLdapServers as $key => $server){
+ if(!in_array($server,$this->gotoLdapServerList)){
+ $server = $server." <font style='color:red'>(missing)</font>";
+ }
+
$SelectBoxLdapServer->AddEntry(
array(array("string" => $server),
- array("string" => "<input type='image' src='images/sort_up.png' name='sort_ldap_up_".$key."'> ".
- "<input type='image' src='images/sort_down.png' name='sort_ldap_down_".$key."'>",
+ array("string" =>
+ "<input class='center' type='image' src='images/sort_up.png' name='sort_ldap_up_".$key."'> ".
+ "<input class='center' type='image' src='images/sort_down.png' name='sort_ldap_down_".$key."'> ".
+ "<input class='center' type='image' src='images/edittrash.png' name='gotoLdapRemove_".$key."'>",
"attach" => "style='border-right:0px;'")));
}
}else{
$smarty->assign("gotoLdapServerACL_inherit", $this->getacl("gotoLdapServer"));
}
+
+ $list = array();
+ foreach($this->gotoLdapServerList as $key => $entry){
+ if(!in_array($entry,$this->gotoLdapServers)){
+ $list[$key] = $entry;
+ }
+ }
$smarty->assign("gotoLdapServers", $SelectBoxLdapServer->DrawList());
- $smarty->assign("gotoLdapServerList", $this->gotoLdapServerList);
+ $smarty->assign("gotoLdapServerList", $list);
$smarty->assign("gotoLdap_inherit", $this->gotoLdap_inherit);
$smarty->assign("JS", $_SESSION['js']);