• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

usr_personaldesktop.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003     +-----------------------------------------------------------------------------+
00004     | ILIAS open source                                                           |
00005     +-----------------------------------------------------------------------------+
00006     | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007     |                                                                             |
00008     | This program is free software; you can redistribute it and/or               |
00009     | modify it under the terms of the GNU General Public License                 |
00010     | as published by the Free Software Foundation; either version 2              |
00011     | of the License, or (at your option) any later version.                      |
00012     |                                                                             |
00013     | This program is distributed in the hope that it will be useful,             |
00014     | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015     | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016     | GNU General Public License for more details.                                |
00017     |                                                                             |
00018     | You should have received a copy of the GNU General Public License           |
00019     | along with this program; if not, write to the Free Software                 |
00020     | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021     +-----------------------------------------------------------------------------+
00022 */
00023 
00024 
00036 require_once "./include/inc.header.php";
00037 require_once "classes/class.ilObjUser.php";
00038 require_once "classes/class.ilMail.php";
00039 require_once "classes/class.ilPersonalDesktopGUI.php";
00040 
00041 
00042 // catch hack attempts
00043 if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
00044 {
00045     $ilias->raiseError($lng->txt("msg_not_available_for_anon"),$ilias->error_obj->MESSAGE);
00046 }
00047 
00048 switch($_GET["cmd"])
00049 {
00050     case "dropItem":
00051         $ilias->account->dropDesktopItem($_GET["id"], $_GET["type"]);
00052         break;
00053 
00054     case "removeMember":
00055         //$groupObj = $ilias->obj_factory->getInstanceByRefId($_GET["id"]);
00056         //$groupObj = new ilGroupGUI($a_data, $_GET["id"], false);
00057         //$err_msg = $groupObj->removeMember($ilias->account->getId());
00058         if (strlen($err_msg) > 0)
00059             $ilias->raiseError($lng->txt($err_msg),$ilias->error_obj->MESSAGE);
00060         break;
00061 
00062 }
00063 /*if ($_GET["action"] == "removeMember")
00064 {
00065     $groupObj = new ilGroupGUI($a_data, $_GET["id"], false);
00066     //$err_msg = $groupObj->removeMember("usr_personaldesktop.php" , "loaction: usr_personaldesktop.php");//$ilias->account->getId());
00067     if(strlen($err_msg) > 0)
00068         $ilias->raiseError($lng->txt($err_msg),$ilias->error_obj->MESSAGE);
00069     exit();
00070     break;
00071 }*/
00072 
00073 //add template for content
00074 $tpl->addBlockFile("CONTENT", "content", "tpl.usr_personaldesktop.html");
00075 $tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
00076 $tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
00077 //$tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
00078 
00079 // set locator
00080 $tpl->setVariable("TXT_LOCATOR",$lng->txt("locator"));
00081 $tpl->setCurrentBlock("locator_item");
00082 $tpl->setVariable("ITEM", $lng->txt("personal_desktop"));
00083 $tpl->setVariable("LINK_ITEM", "usr_personaldesktop.php");
00084 $tpl->parseCurrentBlock();
00085 
00086 // catch feedback message
00087 sendInfo();
00088 // display infopanel if something happened
00089 infoPanel();
00090 
00091 // display tabs
00092 include "./include/inc.personaldesktop_buttons.php";
00093 
00094 $tpl->setCurrentBlock("content");
00095 $tpl->setVariable("TXT_PAGEHEADLINE", $lng->txt("personal_desktop"));
00096 $tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
00097 
00098 // courses
00099 /*
00100 $courses = $ilias->account->getCourses();
00101 
00102 // forums
00103 $frm_obj = ilUtil::getObjectsByOperations('frm','read');
00104 $frmNum = count($frm_obj);
00105 $lastLogin = $ilias->account->getLastLogin();
00106 */
00107 
00108 //********************************************
00109 //* OUTPUT
00110 //********************************************
00111 
00112 //begin mailblock if there are new mails
00113 
00114 $deskgui =& new ilPersonalDesktopGUI();
00115 
00116 $deskgui->displaySelectedItems();
00117 $deskgui->displaySystemMessages();
00118 $deskgui->displayMails();
00119 $deskgui->displayUsersOnline();
00120 $deskgui->displayBookmarks();
00121 //$deskgui->displayTests();             // see display selected items
00122 
00123 // output
00124 $tpl->show();
00125 ?>

Generated on Fri Dec 13 2013 09:06:40 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1