From 66289791f46da9f6c7e0ab95bdfff31b73898e3c Mon Sep 17 00:00:00 2001 From: lkehresman Date: Tue, 5 Dec 2000 16:12:32 +0000 Subject: [PATCH] added patch from tcabot for a pure HTML method of selecting all messages in your current folder. Works wonderfully as far as I can tell. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@860 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + functions/mailbox_display.php | 43 +++++++++++++++++++++++++++-------- src/compose.php | 11 +++++++++ src/folders_create.php | 1 + 4 files changed, 46 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5823fc58..5d9dddbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Version 1.0pre1 -- DEVELOPMENT ------------------------------ +- Fixed default charset that is sent with outbound messages (now user's preferred charset) - Sort method saving now transparent to user, and saves between sessions - Now replacing all \n with \r\n before sending the message. - Added sorting option for NO sorting.. 10000 times faster! diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 5503e7b1..baa59f69 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -11,6 +11,7 @@ $mailbox_display_php = true; function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $startMessage, $where, $what) { + global $checkall; global $color, $msgs, $msort; global $sent_folder; global $message_highlight_list; @@ -50,6 +51,11 @@ if ($where && $what) { $search_stuff = "&where=".urlencode($where)."&what=".urlencode($what); } + + if ($checkall == 1) + $checked = " checked"; + else + $checked = ""; for ($i=1; $i <= count($index_order); $i++) { switch ($index_order[$i]) { @@ -333,7 +339,7 @@ mail_message_listing_beginning($imapConnection, "move_messages.php?msg=$msg&mailbox=$urlMailbox&startMessage=$startMessage", - $mailbox, $sort, $Message, $More); + $mailbox, $sort, $Message, $More, $startMessage); $groupNum = $startMessage % ($show_num - 1); $real_startMessage = $startMessage; @@ -388,10 +394,17 @@ echo "\n"; - if ($More) - { - echo "$More\n"; - } + echo ""; + echo "
"; + echo "$More\n"; + if (!$startMessage) $startMessage=1; + if ( $checkall == "1") + echo "\n" . _("Unselect All") . "\n"; + else + echo "\n" . _("Select All") . "\n"; + + echo "
"; + echo ""; echo ""; /** End of message-list table */ do_hook("mailbox_index_after"); @@ -406,9 +419,10 @@ * $More is a second line that is left aligned */ function mail_message_listing_beginning($imapConnection, $moveURL, - $mailbox = '', $sort = -1, $Message = '', $More = '') + $mailbox = '', $sort = -1, $Message = '', $More = '', $startmessage = 1) { global $color, $index_order, $auto_expunge, $move_to_trash; + global $checkall; $urlMailbox = urlencode($mailbox); /** This is the beginning of the message list table. It wraps around all messages */ @@ -419,10 +433,17 @@ echo "$Message\n"; } - if ($More) - { - echo "$More\n"; - } + echo ""; + echo "
"; + echo "$More\n"; + if (!$startMessage) $startMessage=1; + if ( $checkall == "1") + echo "\n" . _("Unselect All") . "\n"; + else + echo "\n" . _("Select All") . "\n"; + + echo "
"; + echo ""; /** The delete and move options */ echo ""; @@ -431,6 +452,8 @@ echo "\n"; echo " \n"; echo "
\n"; + + echo " ". _("Move selected to:") .""; echo "