From e163ac4c1d063fdd85cb31fc1656e6d58ed6d60c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Jan 2010 08:09:47 +0000 Subject: [PATCH] Added user select dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15344 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groups/userSelect/class_userSelect.inc | 52 +++++++++++++++ .../admin/groups/userSelect/user-filter.tpl | 37 +++++++++++ .../admin/groups/userSelect/user-filter.xml | 42 +++++++++++++ .../admin/groups/userSelect/user-list.tpl | 39 ++++++++++++ .../admin/groups/userSelect/user-list.xml | 63 +++++++++++++++++++ 5 files changed, 233 insertions(+) create mode 100644 gosa-core/plugins/admin/groups/userSelect/class_userSelect.inc create mode 100644 gosa-core/plugins/admin/groups/userSelect/user-filter.tpl create mode 100644 gosa-core/plugins/admin/groups/userSelect/user-filter.xml create mode 100644 gosa-core/plugins/admin/groups/userSelect/user-list.tpl create mode 100644 gosa-core/plugins/admin/groups/userSelect/user-list.xml diff --git a/gosa-core/plugins/admin/groups/userSelect/class_userSelect.inc b/gosa-core/plugins/admin/groups/userSelect/class_userSelect.inc new file mode 100644 index 000000000..679579654 --- /dev/null +++ b/gosa-core/plugins/admin/groups/userSelect/class_userSelect.inc @@ -0,0 +1,52 @@ +config = $config; + $this->ui = $ui; + + $this->storagePoints = array(get_ou("userRDN")); + +# // 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("user-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); +# } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("user-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + parent::__construct($config, $ui, "users", $headpage); + } +} +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/gosa-core/plugins/admin/groups/userSelect/user-filter.tpl b/gosa-core/plugins/admin/groups/userSelect/user-filter.tpl new file mode 100644 index 000000000..c115cd06c --- /dev/null +++ b/gosa-core/plugins/admin/groups/userSelect/user-filter.tpl @@ -0,0 +1,37 @@ +
+

+ [F]{t}Filter{/t} +

+
+ +
+ +
+ + {$PRIMARY} 
+ {$SAMBA} 
+ {$MAIL} 
+ + {$SCOPE} + + + + + + +
+ + + {$NAME} +
+ + + + + +
+ {$APPLY} +
+
diff --git a/gosa-core/plugins/admin/groups/userSelect/user-filter.xml b/gosa-core/plugins/admin/groups/userSelect/user-filter.xml new file mode 100644 index 000000000..c082efc12 --- /dev/null +++ b/gosa-core/plugins/admin/groups/userSelect/user-filter.xml @@ -0,0 +1,42 @@ + + + + + groups + + true + + + + + LDAPBlacklist + (&(objectClass=gosaAccount)$NAME) + dn + objectClass + cn + sn + givenName + description + + auto + + + + textfield + NAME + 20 + 60 + + + (|(sn=*$*)(givenName=*$*)) + true + + LDAPBlacklist + (&(objectClass=gosaAccount)(|(sn=*$NAME*)(givenName=*$NAME*))) + cn + 0.5 + 3 + + + + diff --git a/gosa-core/plugins/admin/groups/userSelect/user-list.tpl b/gosa-core/plugins/admin/groups/userSelect/user-list.tpl new file mode 100644 index 000000000..f72a06a90 --- /dev/null +++ b/gosa-core/plugins/admin/groups/userSelect/user-list.tpl @@ -0,0 +1,39 @@ + + + + + + + +
+
+

 {$HEADLINE} {$SIZELIMIT}

+
+ +
+
+ + +
{$ROOT} {$BACK} {$HOME} {$RELOAD} {$SEPARATOR} {t}Base{/t} {$BASE}  {$SEPARATOR}  {$ACTIONS}
+
+
+ +
+
+ + + + {$LIST} +
+ {$FILTER} +
+ + +

+ +   + +

+ + + diff --git a/gosa-core/plugins/admin/groups/userSelect/user-list.xml b/gosa-core/plugins/admin/groups/userSelect/user-list.xml new file mode 100644 index 000000000..289041f17 --- /dev/null +++ b/gosa-core/plugins/admin/groups/userSelect/user-list.xml @@ -0,0 +1,63 @@ + + + + + true + false + true + true + + + 1 + + + + gosaAccount + users + user + plugins/users/images/user.png + + + + + + |20px;c||| + + + %{filter:objectType(dn,objectClass)} + + + + %{filter:departmentLink(row,dn,description)} + 1 + + + + %{filter:objectType(dn,objectClass)} + + + + + givenName + string + %{givenName} + true + + + + + sn + string + %{sn} + true + + +
+ + + + + + + +
-- 2.30.2