From: indiri69 Date: Wed, 2 Jun 2004 19:04:49 +0000 (+0000) Subject: Change table cells to use html_tag X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=9294e2695a775bb3855f69273539a7c43646b35d Change table cells to use html_tag git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7592 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index eadabbc7..420ddf0d 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -94,11 +94,11 @@ function printMessageInfo($aMsg) { $default_use_priority, $message_highlight_list, $index_order, - $truncate_sender, /* number of characters for From/To field (<= 0 for unchanged) */ + $truncate_sender, /* number of characters for From/To field (<= 0 for unchanged) */ $email_address, - $show_recipient_instead, /* show recipient name instead of default identity */ - $use_icons, /* indicates to use icons or text markers */ - $icon_theme; /* icons theming */ + $show_recipient_instead, /* show recipient name instead of default identity */ + $use_icons, /* indicates to use icons or text markers */ + $icon_theme; /* icons theming */ $color_string = $color[4]; @@ -1185,16 +1185,39 @@ function mail_message_listing_beginning ($imapConnection, echo '
' ."\n" . $moveFields; - + $button_str = ''; + // display flag buttons only if supported + if ($show_flag_buttons && + in_array('\\flagged',$aMailbox['PERMANENTFLAGS'], true) ) { + $button_str .= getButton('SUBMIT', 'markUnflagged', _("Unflag")); + $button_str .= getButton('SUBMIT', 'markFlagged', _("Flag")); + $button_str .= " \n"; + } + if (in_array('\\seen',$aMailbox['PERMANENTFLAGS'], true)) { + $button_str .= getButton('SUBMIT', 'markUnread', _("Unread")); + $button_str .= getButton('SUBMIT', 'markRead', _("Read")); + $button_str .= " \n"; + } + $button_str .= getButton('SUBMIT', 'attache',_("Forward")) . + " \n"; + if (in_array('\\deleted',$aMailbox['PERMANENTFLAGS'], true)) { + $button_str .= getButton('SUBMIT', 'delete',_("Delete")); + $button_str .= '' . _("Bypass Trash"); + $button_str .= " \n"; + } + if (!$aMailbox['AUTO_EXPUNGE'] && $aMailbox['RIGHTS'] != 'READ-ONLY') { + $button_str .= getButton('SUBMIT', 'expungeButton',_("Expunge")) .' ' . _("mailbox") . "\n"; + $button_str .= ' '; + } ?> @@ -1203,45 +1226,23 @@ function mail_message_listing_beginning ($imapConnection,
- - - + ' . $paginator . $thread_link_str . '', 'left') . "\n"; ?> + + ' . $msg_cnt_str . '', 'right') . "\n"; ?>
- - '; - echo '   '; - echo getButton('SUBMIT', 'moveButton',_("Move")) . "\n - "; + ?> + +   +   + + + @@ -1250,7 +1251,6 @@ function mail_message_listing_beginning ($imapConnection,
- ' . _("Bypass Trash"); - echo ' '; - } - if (!$aMailbox['AUTO_EXPUNGE'] && $aMailbox['RIGHTS'] != 'READ-ONLY') { - echo getButton('SUBMIT', 'expungeButton',_("Expunge")) .' ' . _("mailbox") . "\n"; - echo ' '; - } - do_hook('mailbox_display_buttons'); - ?> + + + + +
- - - + ' . $paginator_str . '', 'left'); ?> + ' . $msg_cnt_str . '', 'right'); ?>