X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=27ff6da271c38bdb479a87f118dfaca3176b62a8;hb=aa4c3749e589871cd930b3cd2e94ccaeb5a71bc5;hp=437cfb821ff7def98c2be8fae27880b68c12e96f;hpb=a09387f473293a14a597f6ee0afc9714700fb040;p=squirrelmail.git
diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php
index 437cfb82..27ff6da2 100644
--- a/functions/mailbox_display.php
+++ b/functions/mailbox_display.php
@@ -7,19 +7,19 @@
**
**/
- function printMessageInfo($imapConnection, $i, $from, $subject, $dateString, $answered, $seen) {
+ function printMessageInfo($imapConnection, $t, $i, $from, $subject, $dateString, $answered, $seen) {
$senderName = getSenderName($from);
if (strlen(Chop($subject)) == 0)
$subject = "(no subject)";
echo "
\n";
if ($seen == false) {
- echo " $i \n";
+ echo " \n";
echo " $senderName \n";
echo " $dateString \n";
echo " $subject \n";
} else {
- echo " $i \n";
+ echo " \n";
echo " $senderName \n";
echo " $dateString \n";
echo " $subject \n";
@@ -114,12 +114,20 @@
}
else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
echo "Previous \n";
+ echo "Next \n";
}
else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
+ echo "Previous \n";
echo "Next \n";
}
echo " \n";
+ /** The "DELETE" button */
+ echo "";
+ echo " ";
+
echo "";
echo "";
echo "";
@@ -134,12 +142,20 @@
echo " ";
// loop through and display the info for each message.
+ $t = 0; // $t is used for the checkbox number
for ($i = $startMessage - 1;$i <= $endMessage - 1; $i++) {
- printMessageInfo($imapConnection, $msgs[$i]["ID"], $msgs[$i]["FROM"], $msgs[$i]["SUBJECT"], $msgs[$i]["DATE_STRING"], $msgs[$i]["FLAG_ANSWERED"], $msgs[$i]["FLAG_SEEN"]);
+ printMessageInfo($imapConnection, $t, $msgs[$i]["ID"], $msgs[$i]["FROM"], $msgs[$i]["SUBJECT"], $msgs[$i]["DATE_STRING"], $msgs[$i]["FLAG_ANSWERED"], $msgs[$i]["FLAG_SEEN"]);
+ $t++;
}
- echo "
\n";
-
+ echo "\n";
echo " \n";
+
+ /** The "DELETE" button */
+ echo "";
+ echo " ";
+
echo "";
if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) {
echo "Previous \n";
@@ -147,8 +163,10 @@
}
else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
echo "Previous \n";
+ echo "Next \n";
}
else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
+ echo "Previous \n";
echo "Next \n";
}
echo " "; /** End of message-list table */