From da291e628b1cf7f635178ac81a0718361f438d3b Mon Sep 17 00:00:00 2001 From: ebullient Date: Fri, 30 Jan 2004 07:03:52 +0000 Subject: [PATCH] move thread view (I remembered some things from the last time we compacted things forever ago..) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6464 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 38 ++++++++++++++--------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 4eeefd8a..d2ca9175 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -704,7 +704,7 @@ function mail_message_listing_beginning ($imapConnection, $start_msg = 1) { global $color, $auto_expunge, $base_uri, $allow_server_sort, $server_sort_order, - $PHP_SELF; + $PHP_SELF, $allow_thread_sort, $thread_sort_messages; $php_self = $PHP_SELF; /* fix for incorrect $PHP_SELF */ @@ -777,6 +777,20 @@ function mail_message_listing_beginning ($imapConnection, [' . $thread_name + . ']'; + } getMbxList($imapConnection); echo getButton('SUBMIT', 'moveButton',_("Move")) . "\n"; ?> @@ -876,28 +890,6 @@ function printHeader($mailbox, $sort, $color, $showsort=true, $start_msg) { if ($showsort) { ShowSortButton($sort, $mailbox, 4, 5); } - /* draws thread sorting links */ - global $allow_thread_sort, $thread_sort_messages, $PHP_SELF; - if ($allow_thread_sort == TRUE) { - if ($thread_sort_messages == 1 ) { - $set_thread = 2; - $thread_name = _("Unthread View"); - } elseif ($thread_sort_messages == 0) { - $set_thread = 1; - $thread_name = _("Thread View"); - } - if (preg_match('/^(.+)\?.+$/',$PHP_SELF,$regs)) { - $source_url = $regs[1]; - } else { - $source_url = $PHP_SELF; - } - - echo '  [' . $thread_name - . ']'; - } - echo "\n"; break; case 6: /* size */ -- 2.25.1