\n"
- . "\n"
- . " \n"
- . " \n"
- . ' ' . _("Move Selected To:") . "\n"
- . " | \n"
- . " \n"
- . ' ' . _("Transform Selected Messages")
- . ": \n"
- . " | \n"
- . " \n"
- . " \n"
- . " \n"
- . ' '
- . ' '
- . ' \n" . "\n";
-
- echo " | \n"
- . " ";
- if (!$auto_expunge) {
- echo ' ' . _("mailbox") . ' ';
- }
- echo ''
- . ''
- . ' '
- . " | \n"
- . " \n";
-
- /* draws thread sorting links */
- 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';
+ $urlMailbox = urlencode($mailbox);
+
+ if (preg_match('/^(.+)\?.+$/',$php_self,$regs)) {
+ $source_url = $regs[1];
+ } else {
+ $source_url = $php_self;
}
- echo ' ' . _("$thread_name")
- . ' | ';
- }
- echo " \n";
- do_hook('mailbox_form_before');
- echo ' |
'
- . ""
- . '"
- . "";
- /* if using server sort we highjack the
- * the $sort var and use $server_sort_order
- * instead. but here we reset sort for a bit
- * since its easy
- */
- if ($allow_server_sort == TRUE) {
- $sort = $server_sort_order;
- }
- /* Print the headers. */
- for ($i=1; $i <= count($index_order); $i++) {
- switch ($index_order[$i]) {
- case 1: /* checkbox */
- case 5: /* flags */
- echo ' | ';
- break;
- case 2: /* from */
- if (handleAsSent($mailbox)) {
- echo ' ' . _("To") . '';
- } else {
- echo ' | ' . _("From") . '';
- }
- if ($allow_thread_sort != TRUE || $thread_sort_messages != 1) {
- ShowSortButton($sort, $mailbox, 2, 3);
- }
- echo " | \n";
- break;
- case 3: /* date */
- echo ' ' . _("Date") . '';
- if ($allow_thread_sort != TRUE || $thread_sort_messages != 1) {
- ShowSortButton($sort, $mailbox, 0, 1);
- }
- echo " | \n";
- break;
- case 4: /* subject */
- echo ' ' . _("Subject") . ' ';
- if ($allow_thread_sort != TRUE || $thread_sort_messages != 1) {
- ShowSortButton($sort, $mailbox, 4, 5);
- }
- echo " | \n";
- break;
- case 6: /* size */
- echo ' ' . _("Size") . " | \n";
- break;
+ if (!isset($msg)) {
+ $msg = '';
}
- }
- /* if using server-sorting,
- * send sort back to 6
- */
- if ($allow_server_sort == TRUE) {
- $sort = 6;
- }
- echo " \n";
+ $moveURL = "move_messages.php?msg=$msg&mailbox=$urlMailbox"
+ . "&startMessage=$start_msg";
+ /*
+ * This is the beginning of the message list table.
+ * It wraps around all messages
+ */
+
+ echo " \n";
+ echo " |