| '
. html_tag( 'table' ,'' , '', $color[0], 'border="0" width="100%" cellpadding="1" cellspacing="0"' )
. html_tag( 'tr',
getSmallStringCell(_("Move Selected To"), 'left', 'nowrap') .
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";
do_hook('mailbox_display_buttons');
echo " | \n"
. html_tag( 'td', '', 'right', '', 'nowrap' );
if (!$auto_expunge) {
echo getButton('SUBMIT', 'expungeButton',_("Expunge")) ."\n";
}
echo getButton('SUBMIT', 'markRead',_("Read")) . "\n";
echo getButton('SUBMIT', 'markUnread',_("Unread")) . "\n";
echo getButton('SUBMIT', 'delete',_("Delete")) ." \n";
if (!strpos($php_self,'mailbox')) {
$location = $php_self.'?mailbox=INBOX&startMessage=1';
} else {
$location = $php_self;
}
// $location = urlencode($location);
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' ,
' | ';
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', $paginator_str ) .
html_tag( 'td', $msg_cnt_str, 'right' )
)
, '', $color[4], 'width="100%" border="0" cellpadding="1" cellspacing="0"' )
)
)
, '', $color[9], 'width="100%" border="0" cellpadding="1" cellspacing="0"' );
echo ' |
';
}
/* End of message-list table */
do_hook('mailbox_index_after');
}
function printHeader($mailbox, $sort, $color, $showsort=true) {
global $index_order;
echo html_tag( 'tr' ,'' , 'center', $color[5] );
/* calculate the width of the subject column based on the
* widths of the other columns */
$widths = array(1=>1,2=>25,3=>5,4=>0,5=>1,6=>5);
$subjectwidth = 100;
foreach($index_order as $item) {
$subjectwidth -= $widths[$item];
}
foreach ($index_order as $item) {
switch ($item) {
case 1: /* checkbox */
case 5: /* flags */
echo html_tag( 'td' ,' ' , '', '', 'width="1%"' );
break;
case 2: /* from */
if (handleAsSent($mailbox)) {
echo html_tag( 'td' ,'' , 'left', '', 'width="25%"' )
. '