From: hickert Date: Mon, 15 Mar 2010 15:08:09 +0000 (+0000) Subject: Updated blocklist filter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9d4fde4213928f0d2ca1ff380617aeab62f213c;p=gosa.git Updated blocklist filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16537 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.tpl b/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.tpl deleted file mode 100644 index d651048e1..000000000 --- a/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.tpl +++ /dev/null @@ -1,33 +0,0 @@ -
-

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

-
- -
- -
- - {$SCOPE} - - - - - - -
- - - {$NAME} -
- - - - - -
- {$APPLY} -
-
diff --git a/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.xml b/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.xml index df79cf0cc..5d5db2459 100644 --- a/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.xml +++ b/gosa-plugins/gofax/gofax/blocklists/blocklist-filter.xml @@ -3,38 +3,57 @@ gofaxlist - true + auto + default + dn + objectClass + cn + description + goFaxRBlocklist + goFaxSBlocklist + default + LDAP - (&(|(objectClass=goFaxSBlock)(objectClass=goFaxRBlock))$NAME) - dn - objectClass - cn - description + (&(|(objectClass=goFaxSBlock)(objectClass=goFaxRBlock))(cn=$)) - auto + + cn + 0.5 + 3 + - - textfield - NAME - 20 - 60 - - - (cn=*$*) - false + + onlyReceive + + + LDAP + (&(objectClass=goFaxRBlock)(cn=$)) + + cn + 0.5 + 3 + + + + + onlySend + + LDAP - (&(|(objectClass=goFaxSBlock)(objectClass=goFaxRBlock))(cn=*$NAME*)) + (&(objectClass=goFaxSBlock)(cn=$)) + + cn 0.5 3 - + diff --git a/gosa-plugins/gofax/gofax/blocklists/blocklist-list.tpl b/gosa-plugins/gofax/gofax/blocklists/blocklist-list.tpl index c9d511416..8e4e43f4b 100644 --- a/gosa-plugins/gofax/gofax/blocklists/blocklist-list.tpl +++ b/gosa-plugins/gofax/gofax/blocklists/blocklist-list.tpl @@ -1,28 +1,28 @@ - - - - - -
-
-

 {$HEADLINE} {$SIZELIMIT}

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

{$HEADLINE} {$SIZELIMIT}

+
+ + + + + + + + + + +
{$ROOT}{$BACK}{$HOME}{$RELOAD}{t}Base{/t} {$BASE}{$ACTIONS}{$FILTER}
+
+
+ + {$LIST} +
+ +
+ diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc index 73d846a16..48f03df31 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc @@ -40,13 +40,13 @@ class blocklist extends management $this->storagePoints = array(get_ou("faxBlocklistRDN")); -# // Build filter -# if (session::global_is_set(get_class($this)."_filter")){ -# $filter= session::global_get(get_class($this)."_filter"); -# } else { + // 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("blocklist-filter.xml", true)); $filter->setObjectStorage($this->storagePoints); -# } + } $this->setFilter($filter); // Build headpage