From: hickert Date: Tue, 9 Dec 2008 07:52:10 +0000 (+0000) Subject: Updated multiple edit for mailAccounts. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d3829570f2feff9b3d23841fa7e0df8c1ebc5ef7;p=gosa.git Updated multiple edit for mailAccounts. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13194 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index 2a549a1f5..b0d992cdd 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -383,6 +383,8 @@ class mailAccount extends plugin $smarty->assign("allowSieveManagement", $this->mailMethod->allowSieveManagement()); $smarty->assign("own_script", $this->sieveManagementUsed); + print_a($this->multi_boxes); + /* _Multiple users vars_ */ foreach($this->attributes as $attr){ $u_attr = "use_".$attr; @@ -501,7 +503,7 @@ class mailAccount extends plugin */ if (isset($_POST["import_vacation"]) && isset($this->vacationTemplates[$_POST["vacation_template"]])){ if($this->multiple_support_active){ - $contents = file_get_contents($_POST["vacation_template"]); + $contents = ltrim(preg_replace("/^DESC:.*$/m","",file_get_contents($_POST["vacation_template"]))); }else{ $contents = $this->prepare_vacation_template(file_get_contents($_POST["vacation_template"])); } @@ -1163,6 +1165,15 @@ class mailAccount extends plugin } $ret['flag_add'] = $flag_add; $ret['flag_remove'] = $flag_remove; + + echo "1"; + if($this->mailMethod->vacationRangeEnabled()){ + echo "2"; + if(in_array("V",$flag_add)){ + $ret['gosaVacationStart'] = $this->gosaVacationStart = $_POST['gosaVacationStart']; + $ret['gosaVacationStop'] = $this->gosaVacationStop = $_POST['gosaVacationStop']; + } + } return($ret); } @@ -1247,8 +1258,8 @@ class mailAccount extends plugin } } - - /*! \brief + + /*! \brief */ function get_multi_init_values() { @@ -1257,7 +1268,7 @@ class mailAccount extends plugin return($attrs); } - + /*! \brief Display multiple edit dialog */ function multiple_execute() diff --git a/gosa-plugins/mail/personal/mail/generic.tpl b/gosa-plugins/mail/personal/mail/generic.tpl index af073b590..bb67e4cb5 100644 --- a/gosa-plugins/mail/personal/mail/generic.tpl +++ b/gosa-plugins/mail/personal/mail/generic.tpl @@ -4,6 +4,7 @@

 {t}Generic{/t}

+{if !$multiple_support} +{/if}
{$must} @@ -32,6 +33,7 @@ {/render}
  @@ -45,7 +47,7 @@
-{render acl=$gosaMailQuotaACL} +{render acl=$gosaMailQuotaACL checkbox=$multiple_support checked=$use_gosaMailQuota} MB {/render} @@ -58,6 +60,7 @@   +{if !$multiple_support}

{render acl=$gosaMailAlternateAddressACL}