-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
79 lines (64 loc) · 2.56 KB
/
index.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
<?php
session_start();
if(!isset($_SESSION['userid'])) {
// $_SESSION['url'] = $_SERVER['PHP_SELF'];
header("Location: ./login/login.html");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons|Material+Icons+Outlined' rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>Note</title>
</head>
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top py-0">
<!-- Brand -->
<a class="navbar-brand" href="#">Keep Note</a>
<!-- Links -->
<ul class="navbar-nav ml-auto">
<!-- Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
<?php echo $_SESSION['fullname']; ?>
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="php/logout.php">Logout</a>
</div>
</li>
</ul>
</nav>
<div id="note" class="container-fluid">
<br>
<!-- containter for new note box -->
<div id="new_note" class="card container-fluid shadow p-0"></div>
<!-- container for existing notes -->
<div id="existing_notes" class="container-fluid" data-toggle="" data-target="">
<?php
require_once 'php/read.php';
?>
</div>
<!-- container for note update modal box -->
<div class="modal fade" data-show="true" id="update_modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content" id="update_note_box"></div>
</div>
</div>
</div>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>