ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
inc.calendar_tabs.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
33
$tpl
->addBlockFile(
"TABS"
,
"tabs"
,
"tpl.tabs.html"
);
34
35
$script_name
= basename($_SERVER[
"SCRIPT_NAME"
]);
36
37
38
// new appointment
39
$inc_type
=
$script_name
==
"cal_edit_entry.php"
?
"tabactive"
:
"tabinactive"
;
40
$inhalt1
[] = array(
$inc_type
,
"cal_edit_entry.php?ts="
.$chosents,
$lng
->txt(
"new_appointment"
),
41
ilFrameTargetInfo::_getFrame
(
"MainContent"
));
42
43
// day
44
$inc_type
=
$script_name
==
"cal_date.php"
?
"tabactive"
:
"tabinactive"
;
45
$inhalt1
[] = array($inc_type,
"cal_date.php?ts="
.$chosents,
$lng
->txt(
"day"
),
46
ilFrameTargetInfo::_getFrame
(
"MainContent"
));
47
// week
48
$inc_type =
$script_name
==
"cal_week_overview.php"
?
"tabactive"
:
"tabinactive"
;
49
$inhalt1
[] = array($inc_type,
"cal_week_overview.php?ts=.$chosents"
,
$lng
->txt(
"week"
),
50
ilFrameTargetInfo::_getFrame
(
"MainContent"
));
51
52
// month
53
$inc_type =
$script_name
==
"cal_month_overview.php"
?
"tabactive"
:
"tabinactive"
;
54
$inhalt1
[] = array($inc_type,
"cal_month_overview.php?ts=.$chosents"
,
$lng
->txt(
"month"
),
55
ilFrameTargetInfo::_getFrame
(
"MainContent"
));
56
57
// appointment list
58
$inc_type =
$script_name
==
"cal_appointment_list.php"
?
"tabactive"
:
"tabinactive"
;
59
$inhalt1
[] = array($inc_type,
"cal_appointment_list.php?ts=.$todays"
,
$lng
->txt(
"appointment_list"
),
60
ilFrameTargetInfo::_getFrame
(
"MainContent"
));
61
62
for
( $i=0; $i<
sizeof
(
$inhalt1
); $i++)
63
{
64
if
(
$inhalt1
[$i][1] !=
""
)
65
{
$tpl
->setCurrentBlock(
"tab"
);
66
$tpl
->setVariable(
"TAB_TYPE"
,
$inhalt1
[$i][0]);
67
$tpl
->setVariable(
"TAB_LINK"
,
$inhalt1
[$i][1]);
68
$tpl
->setVariable(
"TAB_TEXT"
,
$inhalt1
[$i][2]);
69
$tpl
->setVariable(
"TAB_TARGET"
,
$inhalt1
[$i][3]);
70
$tpl
->parseCurrentBlock();
71
}
72
}
73
74
75
?>
include
inc.calendar_tabs.php
Generated on Mon Apr 25 2016 19:01:07 for ILIAS by
1.8.1.2 (using
Doxyfile
)