-
Notifications
You must be signed in to change notification settings - Fork 0
/
index1.php
86 lines (62 loc) · 1.81 KB
/
index1.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
<?php
session_start();
if(!isset($_SESSION['username'])){
header("Location: login.php");
}
error_reporting(0);
include("connection.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Project Documentation</title>
<?php include("css.php"); ?>
<?php include("js.php"); ?>
</head>
<body style="background-color:powderblue;">
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-primary mb-3">
<br>
<table>
<tr><td>
<div class="navbar-collapse collapse" id="collapsingNavbar">
<class="navbar-nav">
<br>
<class="nav-item active">
<a class="nav-link" href="home.php" style="color:white;">Home <span class="sr-only"></span></a>
</div>
</td>
<td>
<div class="navbar-collapse collapse" id="collapsingNavbar">
<class="navbar-nav">
<br>
<class="nav-item active">
<class="<?php if($_GET['page']==1){ echo 'active'; } ?>"><a href="?page=1" style="color:white;">Upload</a></li>
</div>
</td>
<td>
<div class="navbar-collapse collapse" id="collapsingNavbar">
<class="navbar-nav">
<br>
<class="nav-item active">
<class="<?php if($_GET['page']==2){ echo 'active'; } ?>"><a href="?page=2" style="color:white;">Profile Settings</a></li>
<br>
</div>
</td>
<td>
<div><br>
<class="navbar-right"><a href="logout.php" style="color:white;">Log Out</a>
</div>
</td>
</tr>
</table>
</div>
</nav>
<?php
switch($_GET['page']){
case 1: include("upload.php");break;
case 2: include("pr_settings.php");break;
}
?>
</body>
</html>