-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopensent.php
130 lines (92 loc) · 2.72 KB
/
opensent.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
129
130
<?php
include "header.php";
include "connect.php";
$id=$_GET["id"];
$result=mysql_query("select *from semaildetail where id=$id")or die ("not Work");
while($row=mysql_fetch_array($result))
{
echo "
<head>
<style>
.foo a{
color:white;
}
body{
background:url('images/2.jpg');
}
#main1{
background:url('images/2.jpg');
width:auto;
}
#main1 a{
border:2px solid black;
margin-right:5px;
padding-right:60px;
padding-bottom:10px;
border-radius: 2px;
text-decoration:none;
position:relative;
}
#main1 a:hover{
transition:all 2s;
box-shadow: 0px 0px 0px 2px black;
zoom:10px;
}
center{
text-align:center;
}
center{
text-align:center;
}
</style>
</head>";
echo "<body style='overflow-x:hidden;'><div id=main1>";
$_SESSION['id']=$row['id'];
?>
<div id="mail3"><img src="<?PHP echo $row['pname']; ?>"></img> <div class="na"><h1><?PHP echo $row['email_to']."</h1>";
echo "<h12>".$row['email_datetime']."</h12>";
?>
</div></div>
<table border="2px"align="center" >
<tbody background="green">
<tr><td align="center">subject</td><td align="left" height="50px"><?PHP
echo $row['email_subject'];?></td></tr>
</tr>
<tr><td align="center" > message</td> <td height="80px" width="800px" align="left" > <?PHP echo $row['email_message'];?>
</td></tr>
</td></tr>
<tr><td align="center">attachment</td><td align="left" height="50px" width="800px">
<?Php if($row['name']==NULL) { } else {?> <?PHP echo $row['name'];?><a href="<?PHP echo $row['name'];?>">open</a><?PHP } ?>
</td></tr>
<?PHP }
$id=$_GET["id"];
$result=mysql_query("select *from semaildetail where id=$id")or die ("not Work");
while($row=mysql_fetch_array($result))
{
$_SESSION['id']=$row['id'];
?> <tr align="right" height="80px" width="800px"><td></td><td><?PHP
echo "<a href='deletesent.php?id=$row[id]'>delete</a>";
?></td></tr><?PHP
}
?>
<tbody>
</table>
</div>
<footer class="foo">
</br>
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT email FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['email'];
}
?>
  ||   <a href="logout.php"><h8>LOGOUT</h8></a></br>
</br></br>
<p color="blue">Copyright © 2015 www.mailbox.com</p>
</footer>
</body>
</html>
<?php
include "close.php";
?>