236 {
237 global $ilMainMenu, $ilTabs, $ilHelp;
238
239 $ilHelp->setScreenIdComponent("mail");
240
241 $ilMainMenu->setActive("mail");
242
243
244 $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
245 $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
247
248
250
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'));
257
258 switch($this->forwardClass)
259 {
260 case 'ilmailformgui':
261 $ilTabs->setTabActive('compose');
262 break;
263
264 case 'ilmailaddressbookgui':
265 $ilTabs->setTabActive('mail_addressbook');
266 break;
267
268 case 'ilmailoptionsgui':
269 $ilTabs->setTabActive('options');
270 break;
271
272 case 'ilmailfoldergui':
273 default:
274 $ilTabs->setTabActive('fold');
275 break;
276
277 }
278 if(isset(
$_GET[
'message_sent'])) $ilTabs->setTabActive(
'fold');
279
281 {
282 $tree_state = 'tree';
283 }
284 else
285 {
286 $tree_state = 'flat';
287 }
288
290 {
291 $this->ctrl->setParameter($this,
'mail_id', (
int)
$_GET[
'mail_id']);
292 $this->ctrl->setParameter($this, 'type', 'redirect_to_read');
293 }
294
295 $this->ctrl->setParameter($this, 'viewmode', $tree_state);
296 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $tree_state);
297
298 $this->ctrl->clearParameters($this);
299 $this->tpl->setCurrentBlock("tree_icons");
300 $this->tpl->parseCurrentBlock();
301 }
isMailDetailCommand($cmd)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static infoPanel($a_keep=true)