24 require_once
"Services/Mail/classes/class.ilMailbox.php";
25 require_once
"Services/Mail/classes/class.ilFormatMail.php";
52 $this->ctrl->saveParameter($this,
"mobj_id");
55 $this->mbox =
new ilMailBox($ilUser->getId());
60 $forward_class = $this->ctrl->getNextClass($this);
61 switch($forward_class)
64 if (!(
$cmd = $this->ctrl->getCmd()))
78 # ilUtil::sendInfo($this->lng->txt("mail_options_saved"),true);
79 # $this->ctrl->redirectByClass("ilmailfoldergui");
87 global $ilUser, $ilias;
89 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.mail_options.html",
"Services/Mail");
90 $this->tpl->setVariable(
"HEADER", $this->lng->txt(
"mail"));
94 $this->tpl->setCurrentBlock(
"options");
97 $this->tpl->setCurrentBlock(
"option_inc_line");
99 $inc = array($this->lng->txt(
"mail_incoming_local"),$this->lng->txt(
"mail_incoming_smtp"),$this->lng->txt(
"mail_incoming_both"));
100 foreach($inc as $key => $option)
102 $this->tpl->setVariable(
"OPTION_INC_VALUE",$key);
103 $this->tpl->setVariable(
"OPTION_INC_NAME",$option);
104 $this->tpl->setVariable(
"OPTION_INC_SELECTED",$this->umail->mail_options->getIncomingType() == $key ?
"selected=\"selected\"" :
"");
105 $this->tpl->parseCurrentBlock();
109 $this->tpl->setCurrentBlock(
"option_line");
110 $linebreak = $this->umail->mail_options->getLinebreak();
112 for($i = 50; $i <= 80;$i++)
114 $this->tpl->setVariable(
"OPTION_VALUE",$i);
115 $this->tpl->setVariable(
"OPTION_NAME",$i);
116 if( $i == $linebreak)
118 $this->tpl->setVariable(
"OPTION_SELECTED",
"selected");
120 $this->tpl->parseCurrentBlock();
125 $this->tpl->setVariable(
'INC_DISABLED',
'disabled="disabled"');
128 $this->tpl->setVariable(
"GLOBAL_OPTIONS",$this->lng->txt(
"mail_global_options"));
129 $this->tpl->setVariable(
"TXT_INCOMING", $this->lng->txt(
"mail_incoming"));
130 $this->tpl->setVariable(
"TXT_LINEBREAK", $this->lng->txt(
"linebreak"));
131 $this->tpl->setVariable(
"TXT_SIGNATURE", $this->lng->txt(
"signature"));
132 $this->tpl->setVariable(
"CONTENT",$this->umail->mail_options->getSignature());
134 if ($ilias->getSetting(
"mail_notification"))
136 $this->tpl->setVariable(
"TXT_CRONJOB_NOTIFICATION", $this->lng->txt(
"cron_mail_notification"));
137 $this->tpl->setVariable(
"TXT_CRONJOB_NOTIFICATION_INFO", $this->lng->txt(
"mail_cronjob_notification_info"));
138 if ($this->umail->mail_options->getCronjobNotification())
140 $this->tpl->setVariable(
"CRONJOB_NOTIFICATION_SELECTED",
" checked=\"checked\"");
144 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
146 $this->ctrl->setParameter($this,
"cmd",
"post");
147 $this->tpl->setVariable(
"ACTION", $this->ctrl->getFormAction($this,
'saveOptions'));
148 $this->ctrl->clearParameters($this);
150 $this->tpl->parseCurrentBlock();