232 global $ilMainMenu, $ilTabs, $ilHelp;
234 $ilHelp->setScreenIdComponent(
"mail");
236 $ilMainMenu->setActive(
"mail");
238 $this->tpl->getStandardTemplate();
245 $ilTabs->addTarget(
'fold', $this->ctrl->getLinkTargetByClass(
'ilmailfoldergui'));
246 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'new');
247 $ilTabs->addTarget(
'compose', $this->ctrl->getLinkTargetByClass(
'ilmailformgui'));
248 $this->ctrl->clearParametersByClass(
'ilmailformgui');
249 $ilTabs->addTarget(
'mail_addressbook', $this->ctrl->getLinkTargetByClass(
'ilcontactgui'));
250 $ilTabs->addTarget(
'options', $this->ctrl->getLinkTargetByClass(
'ilmailoptionsgui'));
252 switch($this->forwardClass)
254 case 'ilmailformgui':
255 $ilTabs->setTabActive(
'compose');
259 $ilTabs->setTabActive(
'mail_addressbook');
262 case 'ilmailoptionsgui':
263 $ilTabs->setTabActive(
'options');
266 case 'ilmailfoldergui':
268 $ilTabs->setTabActive(
'fold');
272 if(isset(
$_GET[
'message_sent'])) $ilTabs->setTabActive(
'fold');
276 $tree_state =
'tree';
280 $tree_state =
'flat';
285 $this->ctrl->setParameter($this,
'mail_id', (
int)
$_GET[
'mail_id']);
286 $this->ctrl->setParameter($this,
'type',
'redirect_to_read');
289 $this->ctrl->setParameter($this,
'viewmode', $tree_state);
290 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $tree_state);
292 $this->ctrl->clearParameters($this);
293 $this->tpl->setCurrentBlock(
"tree_icons");
294 $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)