summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9acd51)
raw | patch | inline | side by side (parent: c9acd51)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:37:08 +0000 (09:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:37:08 +0000 (09:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2442 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiHook.inc | patch | blob | history | |
plugins/admin/fai/faiHook.tpl | patch | blob | history |
index bfea1e7b21f75758de1554684b8dca810eb8c34d..aaf7f74e0c86d5d6ecf05b3615d3c5532bd5ae85 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']]);
+ $hook = $_POST['SubObject'][0];
+
+ $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$hook]);
$this->dialog->parent = &$this;
- $_SESSION['objectinfo'] = $this->SubObjects[$_POST['SubObject']]['dn'];
+ $_SESSION['objectinfo'] = $this->SubObjects[$hook]['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 $hook){
+ if($this->SubObjects[$hook]['status'] == "edited"){
+ $this->SubObjects[$hook]['status']= "delete";
+ }else{
+ unset($this->SubObjects[$hook]);
+ }
}
}
}
}
-
$display.= $smarty->fetch(get_template_path('faiHook.tpl', TRUE));
return($display);
}
index 0e8b9fa36be8e451c394d0e51f0e56e8648aefe3..eb9ea7f6a561b017156467aff0245c7d02cdd03b 100644 (file)
<table width="100%" summary=''>
<tr>
<td>
- <select name="SubObject" title="{t}Choose a hook to delete or edit{/t}" style="width:100%" size="20" id="SubObject">
+ <select name="SubObject[]" title="{t}Choose a hook 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}">