-
Notifications
You must be signed in to change notification settings - Fork 0
/
notifications.php
43 lines (42 loc) · 1.77 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
<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
include("config/connect.php");
include("includes/fetch_users_info.php");
include ("includes/time_function.php");
if(!isset($_SESSION['Username'])){
header("location: index");
}
?>
<html dir="<?php echo lang('html_dir'); ?>">
<head>
<title>Notifications</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php include "includes/head_imports_main.php";?>
</head>
<body onload="fetchNotifications()">
<?php include "includes/navbar_main.php"; ?>
<div class="main_container" align="center">
<div style="display: inline-flex" align="center">
<div style="text-align: <?php echo lang('textAlign'); ?>">
<div class="fetchNotifications">
<div id="notificationsP_data" data-load="0"></div>
<p style='width: 100%;border:none;display: none' id="notificationsP_loading" align='center'><img src='<?php echo $dircheckPath; ?>imgs/loading_video.gif' style='width:20px;box-shadow: none;height: 20px;'></p>
<p id="notificationsP_noMore" style='display:none;color:#9a9a9a;font-size:14px;text-align:center;'><?php echo lang('no_notifications'); ?></p>
<input type="hidden" id="notificationsP_load" value="0">
<p id="notifi_loadmoreBtn" style="text-align: center;display: none;"><button style="width: 50%" class="blue_flat_btn"><?php echo lang('loadmore'); ?></button></p>
</div>
</div>
</div>
</div>
<?php include("includes/footer.php");?>
<?php include "includes/endJScodes.php"; ?>
<script type="text/javascript">
getNotifications('notificationsP');
$('#notifi_loadmoreBtn').click(function(){
getNotifications2('notificationsP');
});
</script>
</body>
</html>