';
- echo ''; /** End of message-list table */
+ echo '';
+ echo "
" .
+ "
" .
+ "
$paginator_str
".
+ "
$msg_cnt_str
".
+ "
".
+ "
";
+ /** End of message-list table */
do_hook('mailbox_index_after');
+ echo "\n";
}
- /* Displays the standard message list header.
- * To finish the table, you need to do a "";
+ /**
+ * Displays the standard message list header. To finish the table,
+ * you need to do a "";
+ *
* $moveURL is the URL to submit the delete/move form to
* $mailbox is the current mailbox
* $sort is the current sorting method (-1 for no sorting available [searches])
* $Message is a message that is centered on top of the list
* $More is a second line that is left aligned
*/
- function mail_message_listing_beginning($imapConnection, $moveURL,
- $mailbox = '', $sort = -1, $Message = '', $More = '', $startMessage = 1)
- {
+ function mail_message_listing_beginning
+ ($imapConnection, $moveURL, $mailbox = '', $sort = -1,
+ $msg_cnt_str = '', $paginator = '', $start_msg = 1) {
global $color, $index_order, $auto_expunge, $move_to_trash;
- global $checkall, $sent_folder;
+ global $checkall, $sent_folder, $draft_folder;
$urlMailbox = urlencode($mailbox);
- /** This is the beginning of the message list table. It wraps around all messages */
- echo '
';
-
- if ($Message)
- {
- echo "
$Message
\n";
- }
- echo "
";
- echo '
';
- echo "$More
\n";
- ShowSelectAllLink($startMessage, $sort);
+ /****************************************************
+ * This is the beginning of the message list table. *
+ * It wraps around all messages *
+ ****************************************************/
+ echo "
\n";
break;
-
- case 6: # size
+
+ case 6: /* size */
echo '
' . _("Size")."
\n";
break;
}
}
echo "
\n";
}
-
+
+ /*******************************************************************/
+ /* This function shows the sort button. Isn't this a good comment? */
+ /*******************************************************************/
function ShowSortButton($sort, $mailbox, $Up, $Down) {
+ /* Figure out which image we want to use. */
if ($sort != $Up && $sort != $Down) {
$img = 'sort_none.gif';
$which = $Up;
} elseif ($sort == $Up) {
$img = 'up_pointer.gif';
- $which = $Down;
+ $which = $Down;
} else {
$img = 'down_pointer.gif';
- $which = 6;
+ $which = 6;
}
- echo ' ';
+
+ /* Now that we have everything figured out, show the actual button. */
+ echo ' ';
}
-
- function ShowSelectAllLink($startMessage, $sort)
- {
+
+ function get_selectall_link($start_msg, $sort) {
global $checkall, $PHP_SELF, $what, $where, $mailbox;
-
- // If you can figure out some working javascript,
- // feel free to put it in here!
- // Allegedly this stuff works for someone somewhere
- // Don't forget to uncomment the at the end!
-
- // This code is from Kevin Cawthorne
- // It was adapted by Tyler to use a document.write for drawing the
- // input checkbox and to use the