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,
$fontstr_end = '';
}
+ if ($where && $what) {
+ $searchstr = '&where='.$where.'&what='.$what;
+ } else {
+ $searchstr = '';
+ }
/**
* AAAAH! Make my eyes stop bleeding!
* Who wrote this?!
}
$td_str .= '<a href="read_body.php?mailbox='.$urlMailbox
.'&passed_id='. $msg["ID"]
- . '&startMessage='.$start_msg
- .'&show_more=0"';
+ . '&startMessage='.$start_msg.$searchstr.'"';
do_hook("subject_link");
if ($subject != $msg['SUBJECT']) {
$title = get_html_translation_table(HTML_SPECIALCHARS);
mail_message_listing_beginning($imapConnection, $mailbox, $sort,
$msg_cnt_str, $paginator_str, $start_msg);
-
+
printHeader($mailbox, $srt, $color, !$thread_sort_messages);
displayMessageArray($imapConnection, $num_msgs, $start_msg,
$t = 0;
/* messages display */
- echo html_tag( 'table' ,'' , '', '', 'border="0" width="100%" cellpadding="1" cellspacing="0"' );
+
if ($num_msgs == 0) {
/* if there's no messages in this folder */
echo html_tag( 'tr',
$k++;
} while (isset ($key) && ($k < $i));
printMessageInfo($imapConnection, $t, $i, $key, $mailbox,
- $real_startMessage);
+ $real_startMessage, $where, $what);
} else {
$i = $start_msg;
reset($msort);
} while (isset ($key) && ($k < $i));
do {
printMessageInfo($imapConnection, $t, $i, $key, $mailbox,
- $real_startMessage);
+ $real_startMessage, $where, $what);
$key = key($msort);
$t++;
$i++;
. html_tag( 'td' ,'' , 'left', $color[0], '' )
. html_tag( 'table' ,'' , '', $color[0], 'border="0" width="100%" cellpadding="0" cellspacing="0"' )
. html_tag( 'tr',
- getSmallStringCell(_("Move Selected To:"), 'left') .
+ getSmallStringCell(_("Move Selected To"), 'left') .
getSmallStringCell(_("Transform Selected Messages"), 'right')
)
. html_tag( 'tr' ) ."\n"
. html_tag( 'td', '', 'left', '', 'valign="middle" nowrap' );
getMbxList($imapConnection);
- echo getButton('SUBMIT', 'moveButton',_("Move")) . ' '."\n";
- echo getButton('SUBMIT', 'attache',_("Forward")) . ' '."\n";
+ echo getButton('SUBMIT', 'moveButton',_("Move")) . "\n";
+ echo getButton('SUBMIT', 'attache',_("Forward")) . "\n";
echo " </TD>\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 '<INPUT TYPE="HIDDEN" NAME="location" VALUE="'.$PHP_SELF.'">';
echo "</TD>\n"
. " </TR>\n";
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]) {
function getSmallStringCell($string, $align) {
return html_tag( 'td',
- '<small>' . $string . ': </small>',
+ '<small>' . $string . ': </small>',
$align,
'',
'nowrap' );