X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=90a644bcc0c54baef9ac97aaec1cad7f99e05e33;hb=b135de9c8c0238f850abca25b972b0969bc5d205;hp=a7af8bdf67f01d9fa7ec16175503f35fee29223a;hpb=978d53dc15fe1c5d883dccc415ab531f470ef455;p=squirrelmail.git diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index a7af8bdf..90a644bc 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -15,13 +15,13 @@ require_once('../functions/strings.php'); require_once('../functions/html.php'); require_once('../class/html.class.php'); -require_once('../functions/imap_utf7_decode_local.php'); +require_once('../functions/imap_mailbox.php'); /* Default value for page_selector_max. */ define('PG_SEL_MAX', 10); function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, - $start_msg) { + $start_msg, $where, $what) { global $checkall, $color, $msgs, $msort, $default_use_priority, @@ -109,6 +109,11 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $fontstr_end = ''; } + if ($where && $what) { + $searchstr = '&where='.$where.'&what='.$what; + } else { + $searchstr = ''; + } /** * AAAAH! Make my eyes stop bleeding! * Who wrote this?! @@ -178,8 +183,7 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, } $td_str .= '\n" . html_tag( 'td', '', 'right', '', 'nowrap' ); if (!$auto_expunge) { echo getButton('SUBMIT', 'expungeButton',_("Expunge")) - .' ' . _("mailbox") . ' '."\n"; + .' ' . _("mailbox") . "\n"; } - echo getButton('SUBMIT', 'markRead',_("Read")) ."\n"; - echo getButton('SUBMIT', 'markUnread',_("Unread")) ."\n"; - echo getButton('SUBMIT', 'delete',_("Delete")) .' '."\n"; + echo getButton('SUBMIT', 'markRead',_("Read")); + echo getButton('SUBMIT', 'markUnread',_("Unread")); + echo getButton('SUBMIT', 'delete',_("Delete")) ." \n"; + echo ''; echo "\n" . " \n"; @@ -787,6 +792,7 @@ function mail_message_listing_end($num_msgs, $paginator_str, $msg_cnt_str, $colo function printHeader($mailbox, $sort, $color, $showsort=true) { global $index_order; + echo html_tag( 'table' ,'' , '', $color[9], 'border="0" width="100%" cellpadding="1" cellspacing="1"' ); echo html_tag( 'tr' ,'' , 'center', $color[5] ); for ($i=1; $i <= count($index_order); $i++) { switch ($index_order[$i]) { @@ -1212,7 +1218,7 @@ return ''; function getSmallStringCell($string, $align) { return html_tag( 'td', - '' . $string . ':   ', + '' . $string . ':  ', $align, '', 'nowrap' );