-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsentmessage.php
More file actions
82 lines (71 loc) · 2.39 KB
/
Copy pathsentmessage.php
File metadata and controls
82 lines (71 loc) · 2.39 KB
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
<?php
session_start();
include("header.php");
include("dbconnection.php");
$dttim = date("Y-m-d h:i:s");
if(isset($_GET[msgid]))
{
mysql_query("DELETE FROM message where msgid='$_GET[msgid]'");
$msgres = "Message deleted successfully...";
}
if(isset($_SESSION["emid"]))
{
$result = mysql_query("SELECT * FROM message where senderid='$_SESSION[login]'");
}
else
{
$result = mysql_query("SELECT * FROM message where senderid='$_SESSION[loginid]'");
}
?>
<div id="templatemo_content">
<div id="templatemo_content_left">
<div class="header_02">Inbox</div>
<p class="bi_para"><a href="message.php">Send Message</a> | <a href="sentmessage.php">Sent messages</a><?php echo $msgres; ?></p>
<form id="form1" name="form1" method="post" action="">
<table width="600" border="1">
<?php
echo " <tr>";
echo " <th scope='col' width='45' >Delete</th>";
echo " <th scope='col'>RECEIVER</th>";
echo " <th scope='col'>SUBJECT</th>";
echo " <th scope='col'>TIME</th>";
echo " </tr>";
while($row = mysql_fetch_array($result))
{
echo " <tr>";
echo " <th scope='col'><a href='inbox.php?msgid=$row[msgid]'>Delete</a></th>";
echo " <th scope='col'>$row[receiverid]</th>";
echo " <th scope='col'><a href='viewmessage.php?msgid=$row[msgid]'>$row[msgtitle]</a></th>";
echo " <th scope='col'>$row[datetime]</th>";
echo " </tr>";
}
?>
</table>
<br>
</form>
<p> </p>
<div class="rc_btn_02"></div>
<div class="margin_bottom_40"></div>
<div class="cleaner"></div>
</div> <!-- end of content left -->
<div id="templatemo_content_right">
<div class="content_right_section">
<?php
if($_SESSION["login"] == "admin")
{
include("adminsidebar.php");
}
else
{
include("empsidebar.php");
}
?>
<div class="margin_bottom_20"></div>
<a href="http://jigsaw.w3.org/css-validator/check/referer"></a>
</div>
</div> <!-- end of content right -->
<div class="cleaner"></div>
</div>
<?php
include("footer.php");
?>