summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db2b552)
raw | patch | inline | side by side (parent: db2b552)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Oct 2010 09:42:49 +0000 (09:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Oct 2010 09:42:49 +0000 (09:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19934 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-filter.xml | [new file with mode: 0644] | patch | blob |
gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.tpl | [new file with mode: 0644] | patch | blob |
gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.xml | [new file with mode: 0644] | patch | blob |
gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/groupware/personal/groupware/generic.tpl | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-filter.xml b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-filter.xml
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<filterdef>
+
+ <definition>
+ <category>Groupware</category>
+ <initial>true</initial>
+ <default>default</default>
+ <scope>sub</scope>
+ <attribute>-</attribute>
+ </definition>
+
+ <search>
+ <tag>default</tag>
+ <label>Default filter</label>
+ <query>
+ <backend>LDAP</backend>
+ <filter>$</filter>
+ </query>
+ <autocomplete>
+ <attribute>cn</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
+ </search>
+
+</filterdef>
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.tpl b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.tpl
--- /dev/null
@@ -0,0 +1,24 @@
+<div id="mainlist">
+
+ <div class="mainlist-header">
+ <p>{$HEADLINE} {$SIZELIMIT}</p>
+ <div class="mainlist-nav">
+ <table summary="{$HEADLINE}">
+ <tr>
+ <td>{$ROOT}</td>
+ <td>{$BACK}</td>
+ <td>{$HOME}</td>
+ <td>{$RELOAD}</td>
+ <td class="left-border">{$ACTIONS}</td>
+ <td class="left-border">{$FILTER}</td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ {$LIST}
+</div>
+
+<div class="clear"></div>
+
+<input type="hidden" name="ignore">
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.xml b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.xml
--- /dev/null
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<list>
+ <definition>
+ <departmentBrowser>true</departmentBrowser>
+ <departmentRootVisible>true</departmentRootVisible>
+ <baseMode>true</baseMode>
+ <multiSelect>true</multiSelect>
+ <template>../plugins/personal/groupware/FolderWidget/FolderWidget-list.tpl</template>
+ <module>users</module>
+ <label>List of mail folders</label>
+ <defaultSortColumn>1</defaultSortColumn>
+
+ <objectType>
+ <label>Folder</label>
+ <objectClass>FAKE_OC_Folder</objectClass>
+ <category>users</category>
+ <class>none</class>
+ <image>plugins/sudo/images/select_sudo.png</image>
+ </objectType>
+
+ </definition>
+
+ <table>
+ <layout>|20px;c|120px||170px;r|</layout>
+
+ <column>
+ <value>%{filter:objectType(dn,objectClass)}</value>
+ </column>
+
+ <column>
+ <label>Name</label>
+ <sortAttribute>cn</sortAttribute>
+ <sortType>string</sortType>
+ <value>%{filter:link(row,dn,"%s",cn)}</value>
+ <export>true</export>
+ </column>
+
+ <column>
+ <label>Description</label>
+ <sortAttribute>description</sortAttribute>
+ <sortType>string</sortType>
+ <value>%{filter:link(row,dn,"%s",description)}</value>
+ <export>true</export>
+ </column>
+
+ <column>
+ <label>Actions</label>
+ <value>%{filter:actions(dn,row,objectClass)}</value>
+ </column>
+
+ </table>
+
+ <actionmenu>
+
+ <action>
+ <type>sub</type>
+ <image>images/lists/element.png[new]</image>
+ <label>Create</label>
+
+ <action>
+ <name>new</name>
+ <type>entry</type>
+ <image>plugins/sudo/images/select_sudo.png[new]</image>
+ <label>Role</label>
+ </action>
+
+ <action>
+ <name>new_default</name>
+ <type>entry</type>
+ <image>plugins/sudo/images/select_sudo.png</image>
+ <label>Default</label>
+ </action>
+
+ </action>
+
+ <action>
+ <type>separator</type>
+ </action>
+
+ <action>
+ <name>remove</name>
+ <type>entry</type>
+ <image>images/lists/trash.png</image>
+ <label>Remove</label>
+ </action>
+
+ <action>
+ <type>exporter</type>
+ </action>
+
+ <action>
+ <type>separator</type>
+ </action>
+
+ <action>
+ <type>copypaste</type>
+ </action>
+
+ <action>
+ <type>snapshot</type>
+ </action>
+
+ </actionmenu>
+
+ <actiontriggers snapshot="true" copypaste="true">
+
+ <action>
+ <name>cp</name>
+ <type>copypaste</type>
+ </action>
+
+ <action>
+ <name>edit</name>
+ <type>entry</type>
+ <image>images/lists/edit.png</image>
+ <label>Edit Sudo role</label>
+ </action>
+
+ <action>
+ <name>snapshot</name>
+ <type>snapshot</type>
+ </action>
+
+ <action>
+ <name>remove</name>
+ <type>entry</type>
+ <image>images/lists/trash.png</image>
+ <acl>sudo/sudo[d]</acl>
+ <label>Remove Sudo role</label>
+ </action>
+
+ </actiontriggers>
+
+</list>
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+
+
+
+class FolderWidget extends plugin
+{
+ public $config;
+ private $FolderWidgetListing = NULL;
+
+ function __construct(&$config)
+ {
+ $this->FolderWidgetListing = new FolderWidgetListing($this->config, get_userinfo());
+ }
+
+
+ function execute()
+ {
+ return($this->FolderWidgetListing->execute());
+ }
+}
+
+?>
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+class FolderWidgetListing extends management
+{
+ function __construct($config,$ui)
+ {
+ $this->config = $config;
+ $this->ui = $ui;
+
+ $this->storagePoints = array("");
+
+ // Build filter
+ if (session::global_is_set(get_class($this)."_filter")){
+ $filter= session::global_get(get_class($this)."_filter");
+ } else {
+ $filter = new filter(get_template_path("FolderWidget-filter.xml", true, dirname(__FILE__)));
+ $filter->setObjectStorage($this->storagePoints);
+ }
+ $this->setFilter($filter);
+
+ // Build headpage
+ $headpage = new listing(get_template_path("FolderWidget-list.xml", true, dirname(__FILE__)));
+ $headpage->setFilter($filter);
+
+ parent::__construct($config, $ui, "Folder", $headpage);
+ }
+
+
+}
+
+
+?>
diff --git a/gosa-plugins/groupware/personal/groupware/generic.tpl b/gosa-plugins/groupware/personal/groupware/generic.tpl
index 41482d574aa672ab0a18724e309e84b840a7b692..eed7df840ad241b3002704d8d76e1e00ec00eb72 100644 (file)
{else}
{if $mailFolder_isActive}
+
{$fileBrowser}
{t}Add folder{/t}: