237 global $ilMainMenu, $ilTabs, $ilHelp;
239 $ilHelp->setScreenIdComponent(
"mail");
241 $ilMainMenu->setActive(
"mail");
244 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
245 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
251 $ilTabs->addTarget(
'fold', $this->ctrl->getLinkTargetByClass(
'ilmailfoldergui'));
252 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'new');
253 $ilTabs->addTarget(
'compose', $this->ctrl->getLinkTargetByClass(
'ilmailformgui'));
254 $this->ctrl->clearParametersByClass(
'ilmailformgui');
255 $ilTabs->addTarget(
'mail_addressbook', $this->ctrl->getLinkTargetByClass(
'ilmailaddressbookgui'));
256 $ilTabs->addTarget(
'options', $this->ctrl->getLinkTargetByClass(
'ilmailoptionsgui'));
258 switch($this->forwardClass)
260 case 'ilmailformgui':
261 $ilTabs->setTabActive(
'compose');
264 case 'ilmailaddressbookgui':
265 $ilTabs->setTabActive(
'mail_addressbook');
268 case 'ilmailoptionsgui':
269 $ilTabs->setTabActive(
'options');
272 case 'ilmailfoldergui':
274 $ilTabs->setTabActive(
'fold');
278 if(isset(
$_GET[
'message_sent'])) $ilTabs->setTabActive(
'fold');
282 $tree_state =
'tree';
286 $tree_state =
'flat';
291 $this->ctrl->setParameter($this,
'mail_id', (
int)
$_GET[
'mail_id']);
292 $this->ctrl->setParameter($this,
'type',
'redirect_to_read');
295 $this->ctrl->setParameter($this,
'viewmode', $tree_state);
296 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $tree_state);
298 $this->ctrl->clearParameters($this);
299 $this->tpl->setCurrentBlock(
"tree_icons");
300 $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)