summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adefb7d)
raw | patch | inline | side by side (parent: adefb7d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Dec 2007 10:34:51 +0000 (10:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Dec 2007 10:34:51 +0000 (10:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8056 594d385d-05f5-0310-b6e9-bd551577e9d8
index 17cdaa73e1423edfb9a440fb6a8c571a4ad5be2f..9e944fe641cf3a9cd35e37072513853cd38333d0 100644 (file)
Data structure :
- |->o_tab <-- dummy object that will be displayed displayed
+ |->o_tab <-- dummy object, collects HTML posts, displays ui
|->a_handles <-- tab object for each given dn
|->tab object for dn 1
|->tab object for dn 2
...
|->tab object for dn n
+
*/
index dd43046a6446cccfc0dcdc8496f9dc6a6e11dd35..db615d67b0beefa36a89acb26678bc3b188da206 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
$this->initially_was_account= $this->is_account;
}
+
+ /*! \brief execute plugin
+
+ Generates the html output for this node
+ */
+ function execute_multiple()
+ {
+ /* This one is empty currently. Fabian - please fill in the docu code */
+ $_SESSION['current_class_for_help'] = get_class($this);
+
+ /* Reset Lock message POST/GET check array, to prevent perg_match errors*/
+ $_SESSION['LOCK_VARS_TO_USE'] = $_SESSION['LOCK_VARS_USED'] =array();
+
+ return("Multiple edit is currently not implemented for this plugin.");
+ }
+
+
+
/*! \brief execute plugin
Generates the html output for this node
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index a702aed71c09a292bbbd9ed687bf2f0a63b13eba..9d4a3cedbe9675a65be5490cd59c6663a74ec73d 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
var $by_object= array();
var $SubDialog = false;
+ var $multiple_support = FALSE;
+
function tabs(&$config, $data, $dn, $acl_category= "")
{
/* Save dn */
$display.= "<table summary=\"\" cellpadding=4 cellspacing=0 border=0 style=\"width:100%; background-color:#F8F8F8; border-style:solid; border-color:#AAA; border-top-width:0px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px;\">\n";
$display.= "<tr><td>\n";
- $display.= $this->by_object[$this->current]->execute();
+ /* If multiple edit is enabled for this tab,
+ we have tho display different templates */
+ if(!$this->multiple_support){
+ $display.= $this->by_object[$this->current]->execute();
+ }else{
+ $display.= $this->by_object[$this->current]->execute_multiple();
+ }
/* Footer for tabbed dialog */
$display.= "</td></tr></table>";
if(!$this->multiple_support_available()){
return(FALSE);
}else{
+ $this->multiple_support = TRUE;
foreach($this->by_object as $name => $obj){
if($obj->multiple_support){
$this->by_object[$name]->multiple_support_active = TRUE;
index 8e35f8b1a0064e61de6ebe9cbcd1d3703bf921df..157b5b8d3dac8fab42c3803efb3c041a606938d4 100644 (file)
"postalCode");
var $multiple_support = TRUE;
- var $multiple_support_active = FALSE;
- var $selected_edit_values = array();
var $multiple_user_handles = array();
/* constructor, if 'dn' is set, the node loads the given
/* Call parent execute */
plugin::execute();
- if($this->multiple_support_active){
- return($this->execute_multiple());
- }
/* Log view */
if($this->is_account && !$this->view_logged){
$this->view_logged = TRUE;
$this->set_acl_base($this->base);
}
+ /* This checks will only be done, if we are not editing multiple objects
+ */
if(!$this->multiple_support_active){
/* UID already used? */