-
Notifications
You must be signed in to change notification settings - Fork 0
/
inbox.php
59 lines (46 loc) · 1.35 KB
/
inbox.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
<?php
echo"<form method='post' action='userAccount.php' >";
echo"<div id='inbox_header'>";
echo"<input type='submit' value='Delete' id='delete' name=inbDel>";
include("labelList.php");
echo"<input type='submit' name='moveLabelInb' value='Move!' id='moveLbutton' />";
echo "Inbox";
echo"</div>";
echo"<table id='inbox_table'>";
$res=scandir("userProfile/$UserId/inbox");
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='mim[$i]'
value='$v'> : <a href='userAccount.php?aim=$v'>$v</a>";
echo"</td>";
echo"<td width='20%' style='font-size:20px'>";
echo date("H:i d F Y",filectime("userProfile/$UserId/inbox/$v"));
echo"</td>"."</tr>";
$i=$i+1;
}
else
{
echo "<tr class='alt'>"."<td align='left'>";
echo"<input type='checkbox' name='mim[$i]'
value='$v'> : <a href='userAccount.php?aim=$v'>$v</a>";
echo"</td>";
echo"<td width='20%' style='font-size:20px'>";
echo date("H:i d F Y",filectime("userProfile/$UserId/inbox/$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 Inbox folder.";
}
?>