\n"
- . "\n"
- . " \n"
- . " \n"
- . ' ' . _("Move Selected To:") . "\n"
- . " | \n"
- . " \n"
- . ' ' . _("Transform Selected Messages")
- . ": \n"
- . " | \n"
- . " \n"
- . " \n"
- . " \n"
- . ' '
- . ' '
- . ' \n" . "\n";
+ $urlMailbox = urlencode($mailbox);
+
+ if (preg_match('/^(.+)\?.+$/',$php_self,$regs)) {
+ $source_url = $regs[1];
+ } else {
+ $source_url = $php_self;
+ }
+
+ if (!isset($msg)) {
+ $msg = '';
+ }
+ $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";
- 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;
+ echo getButton('SUBMIT', 'markRead',_("Read"));
+ echo getButton('SUBMIT', 'markUnread',_("Unread"));
+ echo getButton('SUBMIT', 'delete',_("Delete")) ." \n";
+ if (!strpos($php_self,'mailbox')) {
+ $location = $php_self.'?mailbox=INBOX&startMessage=1';
+ } else {
+ $location = $php_self;
}
+ echo '';
+ 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");
+ }
+ echo html_tag( 'tr' ,
+ html_tag( 'td' ,
+ ' ' . $thread_name
+ . ' '
+ , '', '', '' )
+ , '', '', '' );
+ }
+
+ echo " |