ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
ILIAS
Todo List
Deprecated List
Modules
Namespaces
Data Structures
Files
File List
classes
cron
include
Unicode
inc.calendar_tabs.php
inc.check_pear.php
inc.convertcharset.php
inc.db_session_handler.php
inc.debug.php
inc.get_pear.php
inc.header.php
inc.ilias_version.php
inc.lo_buttons.php
inc.mail.php
inc.mail_buttons.php
inc.personaldesktop_buttons.php
inc.php4compliance.php
inc.php5compliance.php
inc.pwassist_session_handler.php
inc.utf8checker.php
inc.xml5compliance.php
inc.xsl5compliance.php
Modules
Services
setup
sso
webservice
calendar.php
confirmReg.php
error.php
feed.php
goto.php
ilias.php
index.php
login.php
logout.php
payment.php
privfeed.php
pwassist.php
register.php
repository.php
rootindex.php
sessioncheck.php
shib_login.php
shib_logout.php
start.php
studip_referrer.php
webdav.php
Globals
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
inc.personaldesktop_buttons.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
32
global
$ilSetting
;
33
34
$tpl
->addBlockFile(
"TABS"
,
"tabs"
,
"tpl.tabs.html"
);
35
36
$script_name
= basename($_SERVER[
"SCRIPT_NAME"
]);
37
38
$command
=
$_GET
[
"cmd"
] ?
$_GET
[
"cmd"
] :
""
;
39
40
if
(ereg(
"whois"
,
$command
))
41
{
42
$who_is_online =
true
;
43
}
44
45
46
// personal desktop home
47
$inc_type
= (strtolower(
$_GET
[
"baseClass"
]) ==
"ilpersonaldesktopgui"
&&
48
(strtolower(
$_GET
[
"cmdClass"
]) ==
"ilpersonaldesktopgui"
||
49
$_GET
[
"cmdClass"
] ==
""
))
50
?
"tabactive"
51
:
"tabinactive"
;
52
$inhalt1
[] = array(
$inc_type
,
"ilias.php?baseClass=ilPersonalDesktopGUI"
,
$lng
->txt(
"overview"
),
53
ilFrameTargetInfo::_getFrame
(
"MainContent"
),
"usr_pdesktop_menu.php?cmd=highest_level"
,
"left"
);
54
55
// workaround for calendar, normally this include file should not be used anymore
56
$inc_type
=
$script_name
==
"usr_profile.php"
57
?
"tabactive"
58
:
"tabinactive"
;
59
$inhalt1
[] = array($inc_type ,
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile"
,
$lng
->txt(
"personal_profile"
));
60
61
// news
62
global
$ilSetting
;
63
if
($ilSetting->get(
"block_activated_news"
))
64
{
65
$inc_type =
"tabinactive"
;
66
$inhalt1
[] = array($inc_type,
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews"
,
$lng
->txt(
"news"
),
67
ilFrameTargetInfo::_getFrame
(
"MainContent"
),
"usr_pdesktop_menu.php?cmd=highest_level"
,
"left"
);
68
}
69
70
if
(
$_SESSION
[
"AccountId"
] != ANONYMOUS_USER_ID)
71
{
72
// user calendar
73
if
($ilias->getSetting(
"enable_calendar"
))
74
{
75
$inc_type = (
$script_name
==
"dateplaner.php"
)
76
?
"tabactive"
77
:
"tabinactive"
;
78
$inhalt1
[] = array($inc_type,
"dateplaner.php"
,
$lng
->txt(
"calendar"
),
79
ilFrameTargetInfo::_getFrame
(
"MainContent"
),
"usr_pdesktop_menu.php?cmd=highest_level"
,
"left"
);
80
}
81
82
/* // user agreement
83
$inc_type = $script_name == "usr_agreement.php" ? "tabactive" : "tabinactive";
84
//$inhalt1[] = array($inc_type,"usr_agreement.php",$lng->txt("usr_agreement"),"bottom","usr_pdesktop_menu.php?cmd=highest_level","left");
85
*/
86
// private notes
87
if
(!$ilSetting->get(
'disable_notes'
))
88
{
89
$inc_type =
"tabinactive"
;
90
$inhalt1
[] = array($inc_type,
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes"
,
$lng
->txt(
"private_notes"
),
91
ilFrameTargetInfo::_getFrame
(
"MainContent"
),
"usr_pdesktop_menu.php?cmd=highest_level"
,
"left"
);
92
}
93
94
// user bookmarks
95
if
(!$ilSetting->get(
'disable_bookmarks'
))
96
{
97
$inc_type = (
$script_name
==
"usr_bookmarks.php"
)
98
?
"tabactive"
99
:
"tabinactive"
;
100
$inhalt1
[] = array($inc_type,
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks"
,
$lng
->txt(
"bookmarks"
),
101
ilFrameTargetInfo::_getFrame
(
"MainContent"
),
"usr_pdesktop_menu.php?cmd=highest_level"
,
"left"
);
102
}
103
104
include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php"
);
105
if
(
ilObjUserTracking::_enabledLearningProgress
())
106
{
107
// learning progress
108
$inc_type =
"tabinactive"
;
109
$inhalt1
[] = array($inc_type,
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP"
,
$lng
->txt(
"learning_progress"
),
110
ilFrameTargetInfo::_getFrame
(
"MainContent"
)
111
,
"usr_pdesktop_menu.php?cmd=highest_level"
,
"left"
);
112
}
113
}
114
115
for
( $i=0; $i<
sizeof
(
$inhalt1
); $i++)
116
{
117
if
(
$inhalt1
[$i][1] !=
""
)
118
{
$tpl
->setCurrentBlock(
"tab"
);
119
$tpl
->setVariable(
"TAB_TYPE"
,
$inhalt1
[$i][0]);
120
$tpl
->setVariable(
"TAB_LINK"
,
$inhalt1
[$i][1]);
121
$tpl
->setVariable(
"TAB_TEXT"
,
$inhalt1
[$i][2]);
122
$tpl
->setVariable(
"TAB_TARGET"
,
$inhalt1
[$i][3]);
123
$tpl
->parseCurrentBlock();
124
}
125
}
126
127
$tpl
->setCurrentBlock(
"tabs"
);
128
$tpl
->parseCurrentBlock();
129
130
//$tpl->setVariable("TABS", "KK");
131
?>
include
inc.personaldesktop_buttons.php
Generated on Mon Apr 25 2016 19:01:07 for ILIAS by
1.8.1.2 (using
Doxyfile
)