- * This is the beginning of the message list table.
- * It wraps around all messages
- */
- echo "<FORM name=messageList method=post action=\"$moveURL\">\n"
- . "<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"0\">\n"
- . "<TR BGCOLOR=\"$color[0]\"><TD>"
- . " <TABLE BGCOLOR=\"$color[4]\" width=\"100%\" CELLPADDING=\"2\" CELLSPACING=\"0\" BORDER=\"0\"><TR>\n"
- . " <TD ALIGN=LEFT>$paginator</TD>\n"
- . " <TD ALIGN=RIGHT>$msg_cnt_str</TD>\n"
- . " </TR></TABLE>\n"
- . '</TD></TR>'
- . "<TR><TD BGCOLOR=\"$color[0]\">\n"
- . "<TABLE BGCOLOR=\"$color[0]\" COLS=2 BORDER=0 cellpadding=0 cellspacing=0 width=\"100%\">\n"
- . " <TR>\n"
- . " <TD ALIGN=LEFT VALIGN=MIDDLE NOWRAP>\n"
- . ' <SMALL> ' . _("Move Selected To:") . "</SMALL>\n"
- . " </TD>\n"
- . " <TD ALIGN=RIGHT NOWRAP>\n"
- . ' <SMALL> ' . _("Transform Selected Messages") . ": </SMALL><BR>\n"
- . " </TD>\n"
- . " </TR>\n"
- . " <TR>\n"
- . " <TD ALIGN=LEFT VALIGN=MIDDLE NOWRAP>\n"
- . ' <SMALL> <TT><SELECT NAME="targetMailbox">';
-
- $boxes = sqimap_mailbox_list($imapConnection);
- for ($i = 0; $i < count($boxes); $i++) {
- if (!in_array('noselect', $boxes[$i]['flags'])) {
- $box = $boxes[$i]['unformatted'];
- $box2 = str_replace(' ', ' ', $boxes[$i]['unformatted-disp']);
- if( $box2 == 'INBOX' ) {
- $box2 = _("INBOX");
- }
- echo " <OPTION VALUE=\"$box\">$box2</option>\n";
+ * This is the beginning of the message list table.
+ * It wraps around all messages
+ */
+ echo "<FORM name=\"messageList\" method=post action=\"$moveURL\">\n"
+ . html_tag( 'table' ,
+ html_tag( 'tr',
+ html_tag( 'td' ,
+ html_tag( 'table' ,
+ html_tag( 'tr',
+ html_tag( 'td', $paginator, 'left' ) .
+ html_tag( 'td', $msg_cnt_str, 'right' )
+ )
+ , '', $color[4], 'border="0" width="100%" cellpadding="1" cellspacing="0"' )
+ , 'left', '', '' )
+ , '', $color[0] )
+ , '', '', 'border="0" width="100%" cellpadding="1" cellspacing="0"' );
+ /* line between header and button area */
+ echo '<tr><td HEIGHT="5" BGCOLOR="'.$color[4].'"></td></tr>';
+
+ echo '<tr><td>';
+ echo html_tag( 'tr' ) . "\n"
+ . html_tag( 'td' ,'' , 'left', '', '' )
+ . html_tag( 'table' ,'' , '', $color[9], 'border="0" width="100%" cellpadding="1" cellspacing="0"' )
+ . '<tr><td>'
+ . 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";
+
+ echo " </TD>\n"
+ . html_tag( 'td', '', 'right', '', 'nowrap' );
+
+
+
+ if (!$auto_expunge) {
+ echo getButton('SUBMIT', 'expungeButton',_("Expunge"))
+ .' ' . _("mailbox") . "\n";
+ }
+
+ 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 '<INPUT TYPE="HIDDEN" NAME="location" VALUE="'.$location.'">';
+ echo "</TD>\n"
+ . " </TR>\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");