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
00033 $tpl->addBlockFile("TABS", "tabs", "tpl.tabs.html");
00034
00035 $script_name = basename($_SERVER["SCRIPT_NAME"]);
00036
00037 $command = $_GET["cmd"] ? $_GET["cmd"] : "";
00038
00039 if (ereg("whois",$command) or $script_name == "profile.php")
00040 {
00041 $who_is_online = true;
00042 }
00043
00044
00045
00046 $inc_type = (strtolower($_GET["baseClass"]) == "ilpersonaldesktopgui" &&
00047 (strtolower($_GET["cmdClass"]) == "ilpersonaldesktopgui" ||
00048 $_GET["cmdClass"] == ""))
00049 ? "tabactive"
00050 : "tabinactive";
00051 $inhalt1[] = array($inc_type, "ilias.php?baseClass=ilPersonalDesktopGUI", $lng->txt("overview"),
00052 ilFrameTargetInfo::_getFrame("MainContent"),"usr_pdesktop_menu.php?cmd=highest_level","left");
00053
00054
00055 $inc_type = $script_name == "usr_profile.php"
00056 ? "tabactive"
00057 : "tabinactive";
00058 $inhalt1[] = array($inc_type , "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",$lng->txt("personal_profile"));
00059
00060 if ($_SESSION["AccountId"] != ANONYMOUS_USER_ID)
00061 {
00062
00063 if ($ilias->getSetting("enable_calendar"))
00064 {
00065 $inc_type = ($script_name == "dateplaner.php")
00066 ? "tabactive"
00067 : "tabinactive";
00068 $inhalt1[] = array($inc_type,"dateplaner.php",$lng->txt("calendar"),
00069 ilFrameTargetInfo::_getFrame("MainContent"),"usr_pdesktop_menu.php?cmd=highest_level","left");
00070 }
00071
00072
00073
00074
00075
00076
00077 $inc_type = "tabinactive";
00078 $inhalt1[] = array($inc_type,"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes",$lng->txt("private_notes"),
00079 ilFrameTargetInfo::_getFrame("MainContent"),"usr_pdesktop_menu.php?cmd=highest_level","left");
00080
00081
00082 $inc_type = ($script_name == "usr_bookmarks.php")
00083 ? "tabactive"
00084 : "tabinactive";
00085 $inhalt1[] = array($inc_type,"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",$lng->txt("bookmarks"),
00086 ilFrameTargetInfo::_getFrame("MainContent"),"usr_pdesktop_menu.php?cmd=highest_level","left");
00087
00088
00089 include_once("Services/Tracking/classes/class.ilObjUserTracking.php");
00090 if (ilObjUserTracking::_enabledLearningProgress())
00091 {
00092
00093 $inc_type = "tabinactive";
00094 $inhalt1[] = array($inc_type,"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",$lng->txt("learning_progress"),
00095 ilFrameTargetInfo::_getFrame("MainContent")
00096 ,"usr_pdesktop_menu.php?cmd=highest_level","left");
00097 }
00098 }
00099
00100
00101 include_once "./payment/classes/class.ilPaymentVendors.php";
00102 include_once "./payment/classes/class.ilPaymentTrustees.php";
00103 include_once "./payment/classes/class.ilPaymentShoppingCart.php";
00104 include_once "./payment/classes/class.ilPaymentBookings.php";
00105
00106 global $ilias;
00107
00108 if(ilPaymentShoppingCart::_hasEntries($ilias->account->getId()) or
00109 ilPaymentBookings::_getCountBookingsByCustomer($ilias->account->getId()))
00110
00111 {
00112 $lng->loadLanguageModule('payment');
00113 $inhalt1[] = array('tabinactive',"./payment/payment.php",$lng->txt('paya_shopping_cart'),
00114 ilFrameTargetInfo::_getFrame("MainContent"));
00115 }
00116 if(ilPaymentVendors::_isVendor($ilias->account->getId()) or
00117 ilPaymentTrustees::_hasAccess($ilias->account->getId()))
00118 {
00119 $lng->loadLanguageModule('payment');
00120 $inhalt1[] = array('tabinactive',"./payment/payment_admin.php",$lng->txt('paya_header'),
00121 ilFrameTargetInfo::_getFrame("MainContent"));
00122 }
00123
00124
00125
00126 include_once "./tracking/classes/class.ilUserTracking.php";
00127
00128 for ( $i=0; $i<sizeof($inhalt1); $i++)
00129 {
00130 if ($inhalt1[$i][1] != "")
00131 { $tpl->setCurrentBlock("tab");
00132 $tpl->setVariable("TAB_TYPE",$inhalt1[$i][0]);
00133 $tpl->setVariable("TAB_LINK",$inhalt1[$i][1]);
00134 $tpl->setVariable("TAB_TEXT",$inhalt1[$i][2]);
00135 $tpl->setVariable("TAB_TARGET",$inhalt1[$i][3]);
00136 $tpl->parseCurrentBlock();
00137 }
00138 }
00139
00140 $tpl->setCurrentBlock("tabs");
00141 $tpl->parseCurrentBlock();
00142
00143
00144 ?>