233 global $ilMainMenu, $ilTabs, $ilHelp;
235 $ilHelp->setScreenIdComponent(
"mail");
237 $ilMainMenu->setActive(
"mail");
240 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
241 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
247 $ilTabs->addTarget(
'fold', $this->ctrl->getLinkTargetByClass(
'ilmailfoldergui'));
248 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'new');
249 $ilTabs->addTarget(
'compose', $this->ctrl->getLinkTargetByClass(
'ilmailformgui'));
250 $this->ctrl->clearParametersByClass(
'ilmailformgui');
251 $ilTabs->addTarget(
'mail_addressbook', $this->ctrl->getLinkTargetByClass(
'ilmailaddressbookgui'));
252 $ilTabs->addTarget(
'options', $this->ctrl->getLinkTargetByClass(
'ilmailoptionsgui'));
254 switch($this->forwardClass)
256 case 'ilmailformgui':
257 $ilTabs->setTabActive(
'compose');
260 case 'ilmailaddressbookgui':
261 $ilTabs->setTabActive(
'mail_addressbook');
264 case 'ilmailoptionsgui':
265 $ilTabs->setTabActive(
'options');
268 case 'ilmailfoldergui':
270 $ilTabs->setTabActive(
'fold');
274 if(isset(
$_GET[
'message_sent'])) $ilTabs->setTabActive(
'fold');
278 $tree_state =
'tree';
282 $tree_state =
'flat';
287 $this->ctrl->setParameter($this,
'mail_id', (
int)
$_GET[
'mail_id']);
288 $this->ctrl->setParameter($this,
'type',
'redirect_to_read');
291 $this->ctrl->setParameter($this,
'viewmode', $tree_state);
292 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $tree_state);
294 $this->ctrl->clearParameters($this);
295 $this->tpl->setCurrentBlock(
"tree_icons");
296 $this->tpl->parseCurrentBlock();
isMailDetailCommand($cmd)
static get($a_var)
Get a value.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static infoPanel($a_keep=true)