Code

(Groupware plugin) added sortableListing Folders using dummy data.
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Oct 2010 15:15:32 +0000 (15:15 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Oct 2010 15:15:32 +0000 (15:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19888 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_Groupware.inc
gosa-plugins/groupware/personal/groupware/generic.tpl

index f60e1f43cc323842e4c0585d09e06995f7e48888..789dda9abe32243a47f739f2b87d3f43b80c513b 100644 (file)
@@ -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");
index ca32d3b1cefea91daaf0bbabca24302e6b56f8d1..2fefd1b840c102777d207188f0c4382cac35533e 100644 (file)
 {/if}
 {/if}
  {if $mailFolder_isActive}
- <div>Hape, die Folder sind enabled</div>
+ <div>Hape, die Folder sind enabled
+ {$fileBrowser}
+ </div>
  {/if}
 <input type='hidden' name='groupwarePluginPosted' value='1'>