-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnotifications.php
48 lines (45 loc) · 1.3 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
<?php //STATION PROFILE
session_start();
//include files
require_once("app-includes/app-include.php");
require_once("app-includes/_notifications.php");
$login=0;
if(isset($_SESSION['userId'])){
$login=1;
$userId = $_SESSION['userId'];
//$fullName = fullName($conn, $userId);
}
?>
<!doctype html>
<html lang="en">
<head>
<title>John Doe</title>
<?php include('meta-tags.html'); ?>
<link rel="stylesheet" href="/sih/css/main.css"/>
<style>
#smNotifications{background:#eee;}
.index-section{background:#ddd;}
.ans-div{border:1px solid #777;}
</style>
</head>
<body>
<?php siteHeader();
if($login==0) die('Login to view your notifications! <a href="login.php"><button>Click Here</button></a>');
?>
<section class="index-section">
<div class="pm-box">
<ul class="pm-menu">
<a href="notifications.php"><li class="pm-item pm-icon"><i class="material-icons">refresh</i></li></a>
<li class="pm-item pm-name"><p>NOTIFICATIONS</p></li>
<a href="#siteHead"><li class="pm-item pm-icon"><i class="material-icons">keyboard_arrow_up</i></li></a>
<div style="clear:both"></div>
</ul>
</div>
<hr class="sh-low-hr"/>
<section class="ib-section" style="text-align:left;">
<?php newNotifications($conn, $userId); ?>
<?php readNotifications($conn, $userId); ?>
</section>
</section>
</body>
</html>