';
}
-echo "\n\n" . html_tag( 'table', '', '', '', 'border="0" cellspacing="0" cellpadding="0" width="100%"' ) .
- html_tag( 'tr' ) .
- html_tag( 'td', '', 'left' ) .
- '
'. _("Folders") . "
\n\n";
+echo "\n\n" . html_tag( 'table', '', 'left', '', 'border="0" cellspacing="0" cellpadding="0" width="99%"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'left' ) .
+ ''. _("Folders") . "
\n\n";
if ($date_format != 6) {
/* First, display the clock. */
@@ -842,7 +949,7 @@ if ($date_format != 6) {
/* Next, display the refresh button. */
echo '('.
- _("refresh folder list") . ')
';
+ _("refresh folder list") . ')';
/* Lastly, display the folder list. */
if ( $collapse_folders ) {
@@ -855,7 +962,7 @@ if ( $collapse_folders ) {
}
if ($oldway) { /* normal behaviour SM */
-
+
$boxes = sqimap_mailbox_list($imapConnection);
/* Prepare do do out collapsedness and visibility computation. */
$curbox = 0;
@@ -868,7 +975,6 @@ while ($curbox < $boxcount) {
compute_folder_children($curbox, $boxcount);
}
-
for ($i = 0; $i < count($boxes); $i++) {
if ( $boxes[$i]['visible'] ) {
$mailbox = $boxes[$i]['formatted'];
@@ -882,7 +988,7 @@ for ($i = 0; $i < count($boxes); $i++) {
} else {
$prefix = str_replace(' ',' ',$prefix);
}
- $line = "
$prefix";
+ $line = "$prefix";
/* Add the folder name and link. */
if (! isset($color[15])) {
@@ -891,39 +997,40 @@ for ($i = 0; $i < count($boxes); $i++) {
if (in_array('noselect', $boxes[$i]['flags'])) {
if( isSpecialMailbox( $boxes[$i]['unformatted']) ) {
- $line .= "";
+ $line .= "";
} else {
- $line .= "";
+ $line .= "";
}
if (ereg("^( *)([^ ]*)", $mailbox, $regs)) {
$mailbox = str_replace(' ','',$mailbox);
$line .= str_replace(' ', ' ', $mailbox);
}
- $line .= '';
+ $line .= '';
} else {
$line .= formatMailboxName($imapConnection, $boxes[$i]);
}
/* Put the final touches on our folder line. */
- $line .= "
\n";
+ $line .= "\n";
/* Output the line for this folder. */
echo $line;
}
}
-} else { /* expiremental code */
+} else { /* expiremental code */
$boxes = sqimap_mailbox_tree($imapConnection);
if (isset($advanced_tree) && $advanced_tree) {
- echo '
'."\n";
+ echo '
'."\n";
} else {
- ListBoxes($boxes);
+ //sqimap_get_status_mbx_tree($imap_stream,$boxes)
+ ListBoxes($boxes);
}
} /* if ($oldway) else ... */
do_hook('left_main_after');