/
header.php
174 lines (168 loc) · 4.43 KB
/
header.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?
//
// index.php
// IT Club
//
// Copyright (c) 2015, Mr. Gecko's Media (James Coleman)
// All rights reserved.
//
// The site header.
//
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Calhoun IT Club</title>
<link rev="made" href="mailto:james@coleman.io" />
<meta name="Copyright" content="Copyright (c) 2015, Mr. Gecko's Media (James Coleman)" />
<meta name="Author" content="James Coleman" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="<?=$_MGM['installPath']?>css/bootstrap.min.css" rel="stylesheet" />
<link href="<?=$_MGM['installPath']?>css/bootstrap-responsive.min.css" rel="stylesheet" />
<script type="text/javascript" src="<?=$_MGM['installPath']?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?=$_MGM['installPath']?>js/bootstrap.min.js"></script>
<style>
body {
margin: 0px;
padding-right: 0px;
padding-left: 0px;
background: #f8f8f8;
}
#wrapper {
padding-left: 350px;
transition: all 0.4s ease 0s;
}
#page-content-wrapper {
width: 100%;
}
#page-content-wrapper p {
margin-left: 10px;
}
#sidebar-wrapper {
margin-left: -350px;
left: 350px;
width: 350px;
background: #e6e6e6;
position: fixed;
height: 100%;
overflow-y: auto;
z-index: 1000;
transition: all 0.4s ease 0s;
}
.sidebar-nav {
position: absolute;
top: 0px;
width: 350px;
list-style: outside none none;
margin: 0px;
padding: 0px;
}
#sidebar-logo {
width: 321px;
height: 165px;
}
.sidebar-link {
padding-top: 5px;
padding-bottom: 5px;
background: none;
width: 100%;
}
.sidebar-link:hover {
background: #dfdfdf;
}
.sidebar-link a {
color: #000;
font-size: 18pt;
margin-left: 20px;
}
.sidebar-link a:link {
text-decoration: none;
}
.sidebar-link a:visited {
text-decoration: none;
}
.sidebar-link a:hover {
text-decoration: underline;
}
.sidebar-link a:active {
text-decoration: underline;
}
.content-header {
height: auto;
background-color: #ededed;
}
.content-header h1 {
font-size: 32px;
color: #000;
display: block;
margin: 0px 20px 20px;
line-height: normal;
border-bottom: medium none;
}
@media only screen and (max-device-width : 800px) {
#wrapper {
padding-left: 0px;
}
#sidebar-wrapper {
margin-left: 0px;
left: 0px;
width: 100%;
background: #e6e6e6;
position: relative;
height: auto;
overflow-y: visible;
z-index: auto;
transition: all 0.4s ease 0s;
}
.sidebar-nav {
position: relative;
top: 0px;
width: 100%;
list-style: outside none none;
margin: 0px;
padding: 0px;
}
#sidebar-logo {
max-width: 100%;
width: auto;
height: auto;
}
.sidebar-link a {
font-size: 14pt;
margin-left: 10px;
}
.content-header h1 {
font-size: 22px;
}
}
</style>
</head>
<body>
<div id="wrapper">
<nav id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="<?=$_MGM['installPath']?>"><img src="<?=$_MGM['installPath']?>logo.png" alt="logo" id="sidebar-logo" /></a>
</li>
<?
$results = databaseQuery("SELECT * FROM `sidebar` ORDER BY `order`");
while ($result = databaseFetchAssoc($results)) {
?><li class="sidebar-link"><a <?=(substr($result['url'], 0, 1)=="/" ? "" : "target=\"_blank\"")?> href="<?=htmlspecialchars($result['url'], ENT_COMPAT | ENT_HTML401, 'UTF-8', true)?>"><?=htmlspecialchars($result['title'], ENT_COMPAT | ENT_HTML401, 'UTF-8', true)?></a></li><?
}
?>
<?if (isset($_MGM['user'])) {?>
<li><h3>Admin Stuff</h3></li>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>members">Members</a></li>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>meetings">Meetings</a></li>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>announcements">Announcements</a></li>
<?if ($_MGM['user']['level']==1) {?>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>users/">User Management</a></li>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>sidebar/">Sidebar Links</a></li>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>settings/">Settings</a></li>
<?}?>
<li class="sidebar-link"><a href="<?=$_MGM['installPath']?>logout">Logout</a></li>
<?}?>
</ul>
</nav>
<div id="page-content-wrapper">