-
Notifications
You must be signed in to change notification settings - Fork 1
/
notifications.php
128 lines (117 loc) · 3.68 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
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- /META TAGS -->
<!-- CSS -->
<style type="text/css">@import url("css/base.css");</style>
<style type="text/css">@import url("css/grid.css");</style>
<style type="text/css">@import url("css/extensions.css");</style>
<link href='css/themes/blue.css' rel='stylesheet' type='text/css' />
<!-- /CSS -->
<title>News</title>
<!-- JS -->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.uniform.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.js"></script>
<script type="text/javascript" src="js/jquery.tipsy.js"></script>
<script type="text/javascript" src="js/jquery.facebox.js"></script>
<script type="text/javascript" src="js/jquery.visualize.js"></script>
<!--[if IE]>
<script type="text/javascript" src="js/excanvas.js"></script>
<![endif]-->
<script type="text/javascript" src="js/functions.js"></script>
<!-- /JS -->
</head>
<body class="layout980">
<div id="page-wrapper" class="width">
<!-- HEADER -->
<?php include('header.php');?>
<!-- HEADER END -->
<!-- NAV -->
<?php include('navbar.php');?>
<!-- NAV END -->
<div id="page">
<!-- OPEN GRID CONTAINER -->
<div class="container_12">
<br class="cl" />
<!-- TABLES -->
<div class="grid_12">
<div class="box-header">
Notifications </div>
<!-- TABLES - TAB 1 -->
<div id="table-tab1" class="box table tab-content">
<table cellspacing="0">
<thead>
<tr>
<td>Sno</td>
<td>Notification</td>
<td>BY</td>
<td>TO</td>
<td>DATE</td>
<td>TIME</td>
</tr>
</thead>
<tbody>
<?PHP
include("db.php");
$today_date=date("j m Y");
$q=mysqli_query($con,"SELECT * FROM chemical.notices order by id DESC LIMIT 10");
while($row=mysqli_fetch_array($q,MYSQLI_BOTH))
{
$id=$row['id'];
//$sno=$row['sno'];
$title=$row['title'];
$by=$row['from'];
$to=$row['sendto'];
$date=$row['date'];
$time=$row['time'];
$new="--";
if($date==$today_date)
{
$new="new";
}
?>
<tr>
<td class="first"><?php echo $id;?></td>
<td><a href="notice_view.php?id=<?php echo $id;?>" class="spacer modal-fade" rel="modal"><?php echo $title;?><?php if($new=='new') { ?> <span class="notfi">new</span><?php }?></a></td>
<td><?php echo $by;?> </td>
<td><?php echo $to;?></td>
<td><?php echo $date;?> </td>
<td><?php echo $time;?> </td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="table-options">
<ul class="pagination fr">
<li class="previous-off">« Previous</li>
<li class="active">1</li>
<li class="next" style="color:white;">Next »</li>
</ul>
<form action="#">
<br><br>
</form>
</div>
</div>
</div>
</div>
</div>
<div id="messages" style="display: none">
</div>
<?php
?>
<br class="cl" />
<!-- FOOTER -->
<div id="footer" class="tr"> Copyright © <b>Chemical Insight</b> </div>
<!-- FOOTER END -->
</div>
</body>
</html>
<?php
include("footer.php");
?>