-
Notifications
You must be signed in to change notification settings - Fork 0
/
sent.php
51 lines (44 loc) · 1.34 KB
/
sent.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
<?php echo"<form method='post' action='userAccount.php'>";
echo"<div id='inbox_header'>";
echo "<input type='submit' value='Delete' id='delete' name='sentDel'>";
include("labelList.php");
echo"<input type='submit' name='moveLabelSen' value='Move!' id='moveLbutton' />";
echo "Sent Items";
echo"</div>";
echo"<table id='inbox_table'>";
$res=scandir("userProfile/$UserId/sent");
array_shift($res);
array_shift($res);
$i=0;
foreach($res as $k=>$v)
{
if($i%2==0)
{
echo "<tr>"."<td align='left'>";
echo "<input type='checkbox' name='msm[$i]' value='$v'> : <a href='userAccount.php?asm=$v'>$v";
echo"</td>";
echo"<td width='20%' style='font-size:20px'>";
echo date("H:i d F Y",filectime("userProfile/$UserId/sent/$v"));
echo"</td>"."</tr>";
$i=$i+1;
}
else
{
echo "<tr class='alt'>".
"<td align='left'>";
echo "<input type='checkbox' name='msm[$i]' value='$v'> : <a href='userAccount.php?asm=$v'>$v";
echo"</td>";
echo"<td width='20%' style='font-size:20px'>";
echo date("H:i d F Y",filectime("userProfile/$UserId/sent/$v"));
echo"</td>"."</tr>";
$i=$i+1;
}
}
echo "</table>";
echo "</form>";
//if there are no mail
if ($i==0)
{
echo "There are no emails in your Sent folder.";
}
?>