-
Notifications
You must be signed in to change notification settings - Fork 0
/
eguard.php
76 lines (63 loc) · 2.22 KB
/
eguard.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
<?php
include_once "header.php";
include_once "connection.php";
if(!mysqli_connect_errno())
{
$email = mysqli_query($con, "SELECT * FROM email Where reciever LIKE '%guard%' ORDER BY date_e DESC");
mysqli_close($con);
}
?>
<h2>The padding Property</h2>
<p>This property adds space between the border and the content in a table.</p>
<div id="main-content" class="clearfix">
<div class="left">
<br />
<p>
<h3 style="color: red">Search BY</h3>
<form name="email" method="post" action="searchdateeaaab.php">
<strong>Date</strong>
<input type="text" name= "date_e" placeholder="Date" style="width:90px; padding:5px;" />
<strong></strong>
<input type="text" name= "month_e" placeholder="Month" style="width:90px; padding:5px;" />
<strong></strong>
<input type="text" name= "year_e" placeholder="Year" style="width:100px; padding:5px;" />
<input type="submit" name="submit" value="Go" style="width:40px; padding:3px; border-radius: 40px;" />
</form>
<table style="background-color: white;">
<thread >
<th style = "color: blue; background-color: orange; ">Serial No#</th>
<th style = "color: blue; background-color: orange; ">From</th>
<th style = "color: blue; background-color: orange; ">Subject</th>
<th style = "color: blue; background-color: orange; ">Email</th>
<th style = "color: blue; background-color: orange; ">Date</th>
<th style = "color: blue; background-color: orange; "></th>
</thread>
<tbody style="color: red">
<?php
$sl_no=1;
foreach($email as $emailsss)
{ ?>
<tr>
<td style = "color: orange; background-color: blue; "><?php echo $sl_no;?></td>
<td><?php echo $emailsss['fromemail'];?></td>
<td><?php echo $emailsss['subject'];?></td>
<td><?php echo $emailsss['ebody'];?></td>
<td><?php echo $emailsss['date_e'].'-'.$emailsss['month_e'].'-'.$emailsss['year_e'];?></td>
<td>
<a style="vertical-align: middle;" href="deleteemail.php?eid=<?php echo $emailsss['eid']; ?>"><img src="resources\image\delete.png" alt="Delete" style="height: 20px; width: 20px;" /></a>
</td>
</tr>
<?php
$sl_no++;
} ;?>
</tbody>
</table>
</p>
</p>
</div>
</div>
</body>
</html>
<?php
include_once "under.php";
?>