-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
80 lines (63 loc) · 2.55 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
<?php
//header.php
include('../demotetris/database/database_connection.php');
session_start();
// call login.php if not logined
if(!isset($_SESSION["user_id"]))
{
header('location:login.php');
}
?>
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/themes.css">
<link rel="stylesheet" href="css/header.css">
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>-->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/dataTables.bootstrap4.min.css">
<script src="js/jquery.min.js"> </script>
<!--<script src="js/popper.min.js"></script>-->
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/dataTables.bootstrap4.js"></script>
</head>
<body class="dark-theme || light-theme">
<!--nav bar-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.php"><strong>Tetris</strong></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="profile.php">Profile <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="leaderboard.php">LeaderBoard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="help.php">Help</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">Logout</a>
</li>
<!-- Rounded switch -->
<li class="nav-item">
<label class="switch">
<input type="checkbox" id="togBtn" checked="true">
<div class="slider round">
<span class="on">DARK MODE</span>
<span class="off">LIGHT MODE</span>
</div>
</label>
</li>
</ul>
</div>
</nav>