-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsent.php
More file actions
93 lines (72 loc) · 1.82 KB
/
sent.php
File metadata and controls
93 lines (72 loc) · 1.82 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
83
84
85
86
87
88
89
90
91
92
93
<?php include 'header.php' ?>
<div class="col-lg-12">
<?php
if(isset($_GET['sent']))
{
echo '<h1 class="text-center" style="color:#8a2be2"><strong>SENT</strong></h1>';
}
?>
<br><br>
</div>
<div class="col-lg-4 ">
<div class="col-lg-12 ">
<a href="?compose=1" class="btn btn-block btn-lg btn-primary x" >Compose</a>
<br><br>
</div>
<div class="col-lg-12 ">
<a href="?inbox=1" class="btn btn-block btn-lg btn-success x" >Inbox</a>
<br><br>
</div>
<div class="col-lg-12">
<a href="?sent=1" class="btn btn-block btn-lg btn-warning x" >Sent</a>
<br>
</div>
</div>
<?php
?>
<div class="col-lg-7 ">
<?php
if(isset($_GET['chat']))
{
echo '<img src="images/chatimg.jpg" class="img-responsive img-rounded " style=
"height:400px;">';
}
$user=$_SESSION['email'];
$qu="SELECT * FROM mail where from_email='$user'";
$fire=mysqli_query($con,$qu);
?>
<table class="table table-hovers x">
<thead>
<tr>
<th>mid</th>
<th>From</th>
<th>To</th>
<th>Date and Time</th>
</tr>
</thead>
<?php
$text_color=array('text-primary','text-danger','text-success','text-warning','z');
$i=0;
foreach ($fire as $row)
{
$i++;
if($i==4)
{
$i=1;
}
?>
<tr class="<?php echo $text_color[$i-1];?>">
<td><?php echo $row['mid'];?></td>
<td><?php echo $row['from_email'];?></td>
<td><?php echo $row['to_email'];?></td>
<td><?php echo $row['time'];?></td><td><input class="btn btn-sm btn-success" name="view" value="View"></td>
<tr>
<?php
}
?>
<tbody>
</tbody>
</table>
</div>
</div>
</div>