This repository was archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigation.inc.php
More file actions
89 lines (80 loc) · 4.44 KB
/
navigation.inc.php
File metadata and controls
89 lines (80 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/* Copyright (C) 2016 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
* refugee-it.de is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* refugee-it.de is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with refugee-it.de. If not, see <http://www.gnu.org/licenses/>.
*/
function GetNavigation($basedir = ".")
{
require_once(dirname(__FILE__)."/libraries/languagelib.inc.php");
require_once(getLanguageFile("navigation", dirname(__FILE__)));
$direction = getCurrentLanguageDirection();
if ($direction === LanguageDefinition::DirectionRTL)
{
$direction = "_rtl";
}
else
{
$direction = "";
}
$navigation = "<div id=\"navigation".$direction."\">\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/index.php\">".LANG_NAVIGATION_START."</a></div>\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/info.php\">".LANG_NAVIGATION_INFO."</a></div>\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local.php\">".LANG_NAVIGATION_LOCAL."</a></div>\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/downloads.php\">".LANG_NAVIGATION_DOWNLOADS."</a></div>\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/requests.php\">".LANG_NAVIGATION_REQUESTS."</a></div>\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/impressum.php\">".LANG_NAVIGATION_IMPRESSUM."</a></div>\n".
"</div>\n";
if (isset($_SESSION['page']) === true)
{
switch ($_SESSION['page'])
{
case "local":
$navigation .= "<div id=\"subnavigation1".$direction."\">\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local/74321_bietigheimbissingen/index.php\">Bietigheim-Bissingen</a></div>\n".
"</div>\n";
break;
case "local_74321_bietigheimbissingen":
$navigation .= "<div id=\"subnavigation1".$direction."\">\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local/74321_bietigheimbissingen/index.php\">Bietigheim-Bissingen</a></div>\n".
"</div>\n";
if (isset($_SESSION['subpage']) != true)
{
$navigation .= "<div id=\"subnavigation1".$direction."\">\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local/74321_bietigheimbissingen/computers/tickets_export.php\">".LANG_NAVIGATION_LOCAL_COMPUTERS."</a></div>\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local/74321_bietigheimbissingen/services.php\">".LANG_NAVIGATION_LOCAL_SERVICES."</a></div>\n".
"</div>\n";
}
else
{
switch ($_SESSION['subpage'])
{
case "computers":
$navigation .= "<div id=\"subnavigation1".$direction."\">\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local/74321_bietigheimbissingen/computers/tickets_list.php\">".LANG_NAVIGATION_LOCAL_COMPUTERS."</a></div>\n".
"</div>\n";
break;
case "services":
$navigation .= "<div id=\"subnavigation1".$direction."\">\n".
" <div class=\"topic".$direction."\"><a class=\"topiclink\" href=\"".$basedir."/local/74321_bietigheimbissingen/services.php\">".LANG_NAVIGATION_LOCAL_SERVICES."</a></div>\n".
"</div>\n";
break;
}
}
break;
}
}
return $navigation;
}
?>