This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnav.php
122 lines (108 loc) · 5.85 KB
/
nav.php
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<? if(!defined("CONFIG")) exit() ?>
<? if(defined("USER_MUST_LOGIN") && !isset($login)) return; ?>
<!-- Navbar -->
<nav>
<div class="w3-top w3-opacity w3-hover-opacity-off">
<ul class="w3-navbar w3-black w3-card-2 w3-left-align w3-topnav">
<li class="w3-hide-medium w3-hide-large w3-opennav w3-left">
<a class="w3-padding-large" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
</li>
<li class="w3-hide-small w3-right"><a href="javascript:void(0)" class="w3-padding-large w3-hover-red"><i class="fa fa-search"></i></a></li>
<li><a href="?page=main" class="w3-hover-none w3-hover-red w3-padding-large">HOME</a></li>
<li class="w3-hide-small w3-dropdown-hover">
<a href="javascript:void(0)" class="w3-hover-red w3-padding-large" title="Results">Results <i class="fa fa-caret-down"></i></a>
<div class="w3-dropdown-content w3-white w3-card-4">
<a href="?page=results" class="w3-hover-red">Results</a>
</div>
</li>
<li class="w3-hide-small w3-dropdown-hover">
<a href="javascript:void(0)" class="w3-hover-red w3-padding-large" title="Data">Data <i class="fa fa-caret-down"></i></a>
<div class="w3-dropdown-content w3-white w3-card-4">
<a href="?page=show_circuits" class="w3-hover-red">Circuit calendar</a>
<a href="?page=show_drivers" class="w3-hover-red">Drivers</a>
<a href="?page=show_teams" class="w3-hover-red">Teams</a>
<a href="?page=show_rules" class="w3-hover-red">Rules</a>
<a href="?page=show_videos" class="w3-hover-red">Videos</a>
</div>
</li>
<li class="w3-hide-small w3-dropdown-hover">
<a href="javascript:void(0)" class="w3-hover-red w3-padding-large" title="Join">Join <i class="fa fa-caret-down"></i></a>
<div class="w3-dropdown-content w3-white w3-card-4">
<a href="?page=driver_add_user" class="w3-hover-red">New Driver</a>
<a href="your_forum_url" target="_blank" class="w3-hover-red">Forum</a></li>
<? if(defined("USE_MYSQL") && defined("USE_LOGIN")) { ?>
<? if(!isset($login)) { ?>
<li class="w3-hide-small"><a href="?page=login" class="w3-padding-large">Login Admin</a></li>
<!--welcome message-->
<div class="w3-right-align">Welcome to the Podium Racing E Manager for <a href="<?= $config['org_link'] ?>"><?= $config['org'] ?></a>.<br>
<div class="small">
Version <?= VERSION ?><br>
</div></div>
<!--end welcome message-->
<? } else { ?>
<li class="w3-hide-small w3-dropdown-hover">
<a href="javascript:void(0)" class="w3-hover-red w3-padding-large" title="Login Admin">Login Admin <i class="fa fa-caret-down"></i></a>
<div class="w3-dropdown-content w3-white w3-card-4">
<a href="?page=divisions" class="w3-hover-red">Divisions</a>
<a href="?page=points" class="w3-hover-red">Rulesets</a>
<a href="?page=seasons" class="w3-hover-red">Seasons</a>
<a href="?page=races" class="w3-hover-red">Races</a>
<a href="?page=drivers" class="w3-hover-red">Drivers</a>
<a href="?page=teams" class="w3-hover-red">Teams</a>
<a href="?page=edit_rules_mods" class="w3-hover-red">Edit rules and mods</a>
<a href="?page=send_video_url" class="w3-hover-red">Send video url</a>
<a href="?page=main_news" class="w3-hover-red">News mainpage</a>
<a href="?page=blocks" class="w3-hover-red">Blocks_setup</a>
<a href="?page=upload" class="w3-hover-red">Upload_file</a>
<a href="?page=users" class="w3-hover-red">Admins</a>
<a href="?page=logout" class="w3-hover-red">Logout</a></li>
<!--welcome message-->
<div class="w3-right-align">Welcome to the Podium Racing E Manager for <a href="<?= $config['org_link'] ?>"><?= $config['org'] ?></a>Logged in as <?=$username?>.<br>
<div class="small">
Version <?= VERSION ?><br>
</div></div>
<!--end welcome message-->
</div>
</li>
</ul>
</div>
<? } ?>
<? } ?>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-hide w3-hide-large w3-hide-medium w3-top" style="margin-top:46px">
<ul class="w3-navbar w3-left-align w3-black">
<li><a class="w3-padding-large" href="?page=main">HOME</a></li>
<li><a class="w3-padding-large" href="?page=results">Results</a></li>
<li><a class="w3-padding-large" href="?page=show_circuits">Circuit calendar</a></li>
<li><a class="w3-padding-large" href="?page=show_drivers">Drivers</a></li>
<li><a class="w3-padding-large" href="?page=show_teams">Teams</a></li>
<li><a class="w3-padding-large" href="?page=show_rules">Rules</a></li>
<li><a class="w3-padding-large" href="?page=show_videos">Videos</a></li>
<li><a class="w3-padding-large" href="?page=driver_add_user">New_Driver</a>
<li><a class="w3-padding-large" href="your_forum_url" target="_blank">Forum</a>
<? if(defined("USE_MYSQL") && defined("USE_LOGIN")) { ?>
<? if(!isset($login)) { ?>
<li><a class="w3-padding-large" href="?page=login">Login_Admin</a></li>
<!--welcome message-->
<div class="w3-right-align">Welcome to the Podium Racing E Manager for <a href="<?= $config['org_link'] ?>"><?= $config['org'] ?></a>.<br>
<div class="small">
Version <?= VERSION ?><br>
</div></div>
<!--end welcome message-->
<? } else { ?>
<li><a class="w3-padding-large" href="?page=drivers">Edit drivers</a></li>
<li><a class="w3-padding-large" href="?page=teams">Edit teams</a></li>
<li><a class="w3-padding-large" href="?page=main_news">News mainpage</a></li>
<li><a class="w3-padding-large" href="?page=users">Admins</a></li>
<li><a class="w3-padding-large" href="?page=logout">Logout</a></li>
<!--welcome message-->
<div class="w3-right-align">Welcome to the Podium Racing E Manager for <a href="<?= $config['org_link'] ?>"><?= $config['org'] ?></a>Logged in as <?=$username?>.<br>
<div class="small">
Version <?= VERSION ?><br>
</div></div>
<!--end welcome message-->
</ul>
</div>
<? } ?>
<? } ?>
</nav>