summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e66af51)
raw | patch | inline | side by side (parent: e66af51)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:54:48 +0000 (09:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:54:48 +0000 (09:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2446 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiTemplate.inc | patch | blob | history | |
plugins/admin/fai/faiTemplate.tpl | patch | blob | history |
index a4017ea8c7e35ac171b88adc47363466a694a929..cfe0f41e8e5cb1c9f9e732c3029fa0c8236f7f87 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'];
+
+ $temp = $_POST['SubObject'][0];
+
+ $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$temp]);
+ $_SESSION['objectinfo'] = $this->SubObjects[$temp]['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 $temp){
+ if($this->SubObjects[$temp]['status'] == "edited"){
+ $this->SubObjects[$temp]['status']= "delete";
+ }else{
+ unset($this->SubObjects[$temp]);
+ }
}
}
index e14e993d36e6665268528218ed1779f2e13e50ad..e97b520698d117af89436e9f10052adc1bde8b4a 100644 (file)
<table summary="" width="100%">
<tr>
<td>
- <select name="SubObject" title="{t}Choose a template to delete or edit{/t}" style="width:100%;" size="20" id="SubObject">
+ <select name="SubObject[]" multiple title="{t}Choose a template to delete or edit{/t}" style="width:100%;" size="20" id="SubObject">
{html_options values=$SubObjectKeys output=$SubObjects}
</select><br>
<input type="submit" name="AddSubObject" value="{t}Add{/t}" title="{t}Add{/t}">