-
Notifications
You must be signed in to change notification settings - Fork 4
/
tandp.php
49 lines (43 loc) · 1.38 KB
/
tandp.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php require_once("includes/session.php"); ?>
<?php require_once("includes/connection.php"); ?>
<?php require_once("includes/functions.php"); ?>
<?php include("includes/header.php"); ?>
<?php
?>
<table width="100%" id="structure">
<tr>
<td id="page"><fieldset style="border-style:ridge"><legend align="center">Training and Placements</legend><h2 align="center">Notifications</h2>
<?php
$notifications = mysql_query("select DISTINCT(note) from tandp where dept = '{$_SESSION['dept']}' or dept = 'ALL' order by sno DESC") or die(mysql_error());
if($notifications)
{
$color = "#CCCCCC";
$i = 0;
$n = 1;
while($note = mysql_fetch_array($notifications))
{
if($color == "#CCCCCC") $color = "#66FFCC";
else $color = "#CCCCCC";
echo '<table width="100%" >
<tr style="background-color:'.$color.'">
<td style="font-size:16px">
<b>'.$n.'</b>';
$i += 1;
$n += 1;
if($i <= 3)
echo '<span><img src="images/new.gif"</span>';
echo $note['note'].'
</td>
</tr>
<tr>
<td align="right"></td>
</tr>
</table>';
}
}
?>
</fieldset></td><td bgcolor="#66FFCC" bgcolor="#CCCCCC"
</tr>
</table>
<?php include("includes/footer.php"); ?>