From 6b10ed3d37ad8b59ab6116ebe993bd8524e9b6e6 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 May 2005 11:51:31 +0000 Subject: [PATCH] w3c git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@376 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/mail/class_mailAccount.inc | 45 +++++++++++++++++++++ plugins/personal/mail/generic.tpl | 13 +++--- plugins/personal/mail/mail_locals.tpl | 8 ---- 3 files changed, 51 insertions(+), 15 deletions(-) diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 19517a7be..fd6541c07 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -429,9 +429,16 @@ class mailAccount extends plugin "gosaMailAlternateAddress", "gosaMailForwardingAddress", "gosaVacationMessage", "gosaMailDeliveryMode", "gosaMailMaxSize", "gosaSpamSortLevel", "gosaSpamMailbox") as $val){ + $smarty->assign("$val", $this->$val); $smarty->assign("$val"."ACL", chkacl($this->acl, "$val")); + + } + + + + if (is_numeric($this->gosaMailQuota) && $this->gosaMailQuota != 0){ $smarty->assign("quotausage", $this->quotaUsage * 100 / $this->gosaMailQuota); $smarty->assign("quotadefined", "true"); @@ -499,6 +506,44 @@ class mailAccount extends plugin $smarty->assign("custom_sieveACL", chkacl($this->acl, "custom_sieve")); $smarty->assign("only_localACL", chkacl($this->acl, "only_local")); + if(isset($this->gosaMailAlternateAddress)&&($this->gosaMailAlternateAddress)) + $smarty->assign("SELECT_gosaMailAlternateAddress",true); + else + $smarty->assign("SELECT_gosaMailAlternateAddress",false); + + if(isset($this->spamlevel)&&($this->spamlevel)) + $smarty->assign("SELECT_spamlevel",true); + else + $smarty->assign("SELECT_spamlevel",false); + + if(isset($this->spambox)&&($this->spambox)) + $smarty->assign("SELECT_spambox",true); + else + $smarty->assign("SELECT_spambox",false); + + if(isset($this->vacationtemplates)&&($this->vacationtemplates)) + $smarty->assign("SELECT_vacationtemplates",true); + else + $smarty->assign("SELECT_vacationtemplates",false); + + if(isset($this->gosaMailForwardingAddress)&&($this->gosaMailForwardingAddress)) + $smarty->assign("SELECT_gosaMailForwardingAddress",true); + else + $smarty->assign("SELECT_gosaMailForwardingAddress",false); + + if(isset($this->mailServers)&&($this->mailServers)) + $smarty->assign("SELECT_mailServers",true); + else + $smarty->assign("SELECT_mailServers",false); + + + + + + + + + $display.= $smarty->fetch (get_template_path('generic.tpl', TRUE, dirname(__FILE__))); return ($display); } diff --git a/plugins/personal/mail/generic.tpl b/plugins/personal/mail/generic.tpl index 6f092f911..6fe8a0d6b 100644 --- a/plugins/personal/mail/generic.tpl +++ b/plugins/personal/mail/generic.tpl @@ -11,7 +11,7 @@ {t}Server{/t} - {if $gosaMailAlternateAddress ==""} + {if $SELECT_gosaMailAlternateAddress} {html_options values=$gosaMailAlternateAddress output=$gosaMailAlternateAddress} {else}