-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnotifications.php
123 lines (104 loc) · 3.35 KB
/
notifications.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
<?php
session_start();
if (empty($_SESSION['login_user'])){
header("location: index.php");
exit();
}
?>
<!doctype html>
<html lang="en">
<head>
<title>Notifications</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<link rel="stylesheet" href="css/media.css">
<script src="js/modernizr.js"></script> <!-- Modernizr -->
</head>
<body onload="check()">
<script type="text/javascript">
function check(){
$("span#msgcount").load("msg-counter.php");
}
function suggestions(){
var input = $(".search").val();
var url = "users.php?keyword="+input;
$("datalist#searches").load(url);
}
function searched(){
var name = $(".search").val();
window.open("profile.php?user="+name,'_self');
}
</script>
<header class="cd-main-header">
<a href="profile.php" class="cd-logo"><img src="images/logo.png" alt="Logo"></a>
<div class="cd-search is-hidden">
<input list="searches" class="search" placeholder="Search..." onkeyup="suggestions()" onchange="searched()">
<datalist id="searches">
</datalist>
</div> <!-- cd-search -->
<a href="#" class="cd-nav-trigger">Menu<span></span></a>
<nav class="cd-nav">
<ul class="cd-top-nav">
<li><a href="#">Privacy Policy</a></li>
<li class="has-children account">
<a href="#">
<img src="<?php echo $_SESSION['dp_url'];?>">
Account
</a>
<ul>
<li><a href="settings.php">Edit Account</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</nav>
</header> <!-- .cd-main-header -->
<main class="cd-main-content">
<nav class="cd-side-nav">
<ul>
<li class="nav-dp"><a class="dp"><img src="<?php echo $_SESSION['dp_url'];?>"></a></li>
<li class="nav-name"><h1>@<?php echo $_SESSION['user_name'];?></h1></li>
<li class="cd-label">Main</li>
<li class="profile">
<a href="profile.php?user=<?php echo $_SESSION['login_user'];?>">Profile</a>
</li>
<li class="notifications active">
<a href="notifications.php">Notifications<span class="count">10</span></a>
</li>
<li class="messages">
<a href="inbox.php">Messages<span class="count" id="msgcount"></span></a>
</li>
<li class="documents">
<a href="documents.php">Documents</a>
</li>
</ul>
<ul>
<li class="cd-label">Secondary</li>
<li class="jobs">
<a href="jobs.php">Jobs</a>
</li>
<li class="settings">
<a href="settings.php">Settings</a>
</li>
</ul>
<ul>
<li class="cd-label">Action</li>
<li class="action-btn"><a href="#">Report Bug</a></li>
</ul><br/><br/>
<ul>
<center>
<iframe width="100px" height="60px" scrolling="no" src="clock.html"></iframe>
</center>
</ul>
</nav>
<div class="content-wrapper">
</div> <!-- .content-wrapper -->
</main> <!-- .cd-main-content -->
<script src="js/jquery.js"></script>
<script src="js/jquery.menu-aim.js"></script>
<script src="js/profile.js"></script> <!-- Resource jQuery -->
</body>
</html>