';*/
}
echo "\n\n" . html_tag( 'table', '', 'left', '', 'border="0" cellspacing="0" cellpadding="0" width="99%"' ) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'left' ) .
html_tag( 'table', '', '', '', 'border="0" cellspacing="0" cellpadding="0"' ) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'center' ) .
'
'. _("Folders") . "
\n\n";
if ($date_format != 6) {
/* First, display the clock. */
if ($hour_format == 1) {
$hr = 'H:i';
if ($date_format == 4) {
$hr .= ':s';
}
} else {
if ($date_format == 4) {
$hr = 'g:i:s a';
} else {
$hr = 'g:i a';
}
}
switch( $date_format ) {
case 0:
$clk = date('Y-m-d '.$hr. ' T', time());
break;
case 1:
$clk = date('m/d/y '.$hr, time());
break;
case 2:
$clk = date('d/m/y '.$hr, time());
break;
case 4:
case 5:
$clk = date($hr, time());
break;
default:
$clk = getDayAbrv( date( 'w', time() ) ) . date( ', ' . $hr, time() );
}
$clk = str_replace(' ',' ',$clk);
echo '
'
. str_replace(' ', ' ', _("Last Refresh"))
. ":
$clk\n";
}
/* Next, display the refresh button. */
echo '
\n\n";
/* Lastly, display the folder list. */
if ( $collapse_folders ) {
/* If directed, collapse or uncollapse a folder. */
if (isset($fold)) {
setPref($data_dir, $username, 'collapse_folder_' . $fold, SM_BOX_COLLAPSED);
} else if (isset($unfold)) {
setPref($data_dir, $username, 'collapse_folder_' . $unfold, SM_BOX_UNCOLLAPSED);
}
}
/* Get unseen/total display prefs */
$unseen_type = getPref( $data_dir , $username , 'unseen_type' );
$unseen_notify = getPref( $data_dir , $username , 'unseen_notify' );
if (empty($unseen_type)) {
if (!empty($default_unseen_type)) {
$unseen_type = $default_unseen_type;
} else {
$unseen_type = 1;
}
}
if (empty($unseen_notify)) {
if (!empty($default_unseen_notify)) {
$unseen_notify = $default_unseen_notify;
} else {
$unseen_notify = 0;
}
}
$boxes = sqimap_mailbox_tree($imapConnection);
if (isset($advanced_tree) && $advanced_tree) {
echo '
'."\n";
} else {
ListBoxes($boxes);
}
do_hook('left_main_after');
sqimap_logout($imapConnection);
?>