summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de910eb)
raw | patch | inline | side by side (parent: de910eb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:48:05 +0000 (09:48 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:48:05 +0000 (09:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2444 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiScript.inc | patch | blob | history | |
plugins/admin/fai/faiScript.tpl | patch | blob | history |
index 50e5349ad35f29dd70001030d775ff04f7bb01c9..b7e122058979700046a0fcd98573d80916ba0316 100644 (file)
/* Edit selected Sub Object */
if((isset($_POST['EditSubObject']))&&(isset($_POST['SubObject']))){
- $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$_POST['SubObject']]);
- $_SESSION['objectinfo'] = $this->SubObjects[$_POST['SubObject']]['dn'];
+ $script = $_POST['SubObject'][0];
+
+ $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$script]);
+ $_SESSION['objectinfo'] = $this->SubObjects[$script]['dn'];
$this->is_dialog=true;
}
/* Remove Sub object */
if((isset($_POST['DelSubObject']))&&(isset($_POST['SubObject']))){
- if($this->SubObjects[$_POST['SubObject']]['status'] == "edited"){
- $this->SubObjects[$_POST['SubObject']]['status']= "delete";
- }else{
- unset($this->SubObjects[$_POST['SubObject']]);
+
+ foreach($_POST['SubObject'] as $script){
+ if($this->SubObjects[$script]['status'] == "edited"){
+ $this->SubObjects[$script]['status']= "delete";
+ }else{
+ unset($this->SubObjects[$script]);
+ }
}
}
index 59a80471d6ed86da95b09f537d2033438fe2f97d..67d25a1e95d9bf85359a1cb10b929eb8228a256d 100644 (file)
<table width="100%" summary="">
<tr>
<td>
- <select name="SubObject" title="{t}Choose a script to delete or edit{/t}" style="width:100%;" size="20" id="SubObject">
+ <select name="SubObject[]" title="{t}Choose a script to delete or edit{/t}" style="width:100%;" size="20" id="SubObject" multiple>
{html_options values=$SubObjectKeys output=$SubObjects}
</select><br>
<input type="submit" name="AddSubObject" value="{t}Add{/t}" title="{t}Add{/t}">