Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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
00056
00057
00058 if (strlen($err_msg) > 0)
00059 $ilias->raiseError($lng->txt($err_msg),$ilias->error_obj->MESSAGE);
00060 break;
00061
00062 case "showSelectedItemsDetails":
00063 $ilUser->writePref("pd_selected_items_details", "y");
00064 break;
00065
00066 case "hideSelectedItemsDetails":
00067 $ilUser->writePref("pd_selected_items_details", "n");
00068 break;
00069
00070 }
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 $tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
00083 $tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
00084 $tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
00085
00086 $tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.usr_personaldesktop.html");
00087
00088
00089
00090 $tpl->setVariable("TXT_LOCATOR",$lng->txt("locator"));
00091 $tpl->setCurrentBlock("locator_item");
00092 $tpl->setVariable("ITEM", $lng->txt("personal_desktop"));
00093 $tpl->setVariable("LINK_ITEM", "usr_personaldesktop.php");
00094 $tpl->parseCurrentBlock();
00095
00096
00097 sendInfo();
00098
00099 infoPanel();
00100
00101
00102
00103
00104 $tpl->setCurrentBlock("adm_content");
00105 $tpl->setVariable("HEADER", $lng->txt("personal_desktop"));
00106 include "./include/inc.personaldesktop_buttons.php";
00107
00108 $tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126 $deskgui =& new ilPersonalDesktopGUI();
00127
00128 $deskgui->displaySelectedItems();
00129 $deskgui->displaySystemMessages();
00130 $deskgui->displayMails();
00131 $deskgui->displayUsersOnline();
00132 $deskgui->displayBookmarks();
00133
00134
00135
00136 $tpl->show();
00137 ?>