239 global $ilMainMenu, $ilTabs, $ilHelp;
241 $ilHelp->setScreenIdComponent(
"mail");
243 $ilMainMenu->setActive(
"mail");
246 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
247 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
253 $ilTabs->addTarget(
'fold', $this->ctrl->getLinkTargetByClass(
'ilmailfoldergui'));
254 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'new');
255 $ilTabs->addTarget(
'compose', $this->ctrl->getLinkTargetByClass(
'ilmailformgui'));
256 $this->ctrl->clearParametersByClass(
'ilmailformgui');
257 $ilTabs->addTarget(
'mail_addressbook', $this->ctrl->getLinkTargetByClass(
'ilcontactgui'));
258 $ilTabs->addTarget(
'options', $this->ctrl->getLinkTargetByClass(
'ilmailoptionsgui'));
260 switch($this->forwardClass)
262 case 'ilmailformgui':
263 $ilTabs->setTabActive(
'compose');
267 $ilTabs->setTabActive(
'mail_addressbook');
270 case 'ilmailoptionsgui':
271 $ilTabs->setTabActive(
'options');
274 case 'ilmailfoldergui':
276 $ilTabs->setTabActive(
'fold');
280 if(isset(
$_GET[
'message_sent'])) $ilTabs->setTabActive(
'fold');
284 $tree_state =
'tree';
288 $tree_state =
'flat';
293 $this->ctrl->setParameter($this,
'mail_id', (
int)
$_GET[
'mail_id']);
294 $this->ctrl->setParameter($this,
'type',
'redirect_to_read');
297 $this->ctrl->setParameter($this,
'viewmode', $tree_state);
298 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $tree_state);
300 $this->ctrl->clearParameters($this);
301 $this->tpl->setCurrentBlock(
"tree_icons");
302 $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)