From a80447774576362cee548e225f32aea4695da980 Mon Sep 17 00:00:00 2001 From: hzerres Date: Fri, 1 Oct 2010 15:15:32 +0000 Subject: [PATCH] (Groupware plugin) added sortableListing Folders using dummy data. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19888 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/groupware/class_Groupware.inc | 23 +++++++++++++++---- .../groupware/personal/groupware/generic.tpl | 5 +++- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index f60e1f43c..789dda9ab 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -46,8 +46,11 @@ class Groupware extends plugin var $mailAddressSelectDialog = NULL; var $filterManager = NULL; var $filterRules = array(); - var $vacationTemplates = array(); + var $vacationTemplates = array(); + var $fileBrowser = NULL; + + //the dropdown var $mailLocations = array(); @@ -71,7 +74,7 @@ class Groupware extends plugin var $mailBoxAutomaticRemovalValue = 100; var $localDeliveryOnly = FALSE; var $dropOwnMails = FALSE; - + var $mailFolder = FALSE; var $groupwareDao = null; /*! \brief @@ -206,7 +209,16 @@ class Groupware extends plugin } $this->accountInitialized = TRUE; } - + // Initialize file browser list + $this->fileBrowser= new sortableListing(); + $this->fileBrowser->setDeleteable(FALSE); + $this->fileBrowser->setEditable(TRUE); + $this->fileBrowser->setColspecs(array('*')); + $this->fileBrowser->setWidth("100%"); + $this->fileBrowser->setHeight("150px"); + $this->fileBrowser->setAcl("rwcdm"); + $this->fileBrowser->setListData(array("eins", "zwei"),array("eins" =>array( "data"=> array("Uno") ) , "zwei" =>array( "data"=> array("Due") )) ); + $this->fileBrowser->update(); // Set vacation start/stop if not set alreasy $this->vacationStart = time(); @@ -441,7 +453,10 @@ class Groupware extends plugin $smarty->assign($feature."_isActive", $state); } - + + $smarty->assign("fileBrowser", $this->fileBrowser->render()); + + $smarty->assign("mailLocations", $this->mailLocations); if (count($this->vacationTemplates)){ $smarty->assign("displayTemplateSelector", "true"); diff --git a/gosa-plugins/groupware/personal/groupware/generic.tpl b/gosa-plugins/groupware/personal/groupware/generic.tpl index ca32d3b1c..2fefd1b84 100644 --- a/gosa-plugins/groupware/personal/groupware/generic.tpl +++ b/gosa-plugins/groupware/personal/groupware/generic.tpl @@ -320,6 +320,9 @@ {/if} {/if} {if $mailFolder_isActive} -
Hape, die Folder sind enabled
+
Hape, die Folder sind enabled + {$fileBrowser} + +
{/if} -- 2.30.2