238 {
239 global $ilMainMenu, $ilTabs, $ilHelp;
240
241 $ilHelp->setScreenIdComponent("mail");
242
243 $ilMainMenu->setActive("mail");
244
245
246 $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
247 $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
249
250
252
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'));
259
260 switch($this->forwardClass)
261 {
262 case 'ilmailformgui':
263 $ilTabs->setTabActive('compose');
264 break;
265
266 case 'ilcontactgui':
267 $ilTabs->setTabActive('mail_addressbook');
268 break;
269
270 case 'ilmailoptionsgui':
271 $ilTabs->setTabActive('options');
272 break;
273
274 case 'ilmailfoldergui':
275 default:
276 $ilTabs->setTabActive('fold');
277 break;
278
279 }
280 if(isset(
$_GET[
'message_sent'])) $ilTabs->setTabActive(
'fold');
281
283 {
284 $tree_state = 'tree';
285 }
286 else
287 {
288 $tree_state = 'flat';
289 }
290
292 {
293 $this->ctrl->setParameter($this,
'mail_id', (
int)
$_GET[
'mail_id']);
294 $this->ctrl->setParameter($this, 'type', 'redirect_to_read');
295 }
296
297 $this->ctrl->setParameter($this, 'viewmode', $tree_state);
298 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $tree_state);
299
300 $this->ctrl->clearParameters($this);
301 $this->tpl->setCurrentBlock("tree_icons");
302 $this->tpl->parseCurrentBlock();
303 }
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)