require_once('../functions/imap.php');
require_once('../functions/plugin.php');
require_once('../functions/page_header.php');
+require_once('../functions/html.php');
/* These constants are used for folder stuff. */
define('SM_BOX_UNCOLLAPSED', 0);
if ($unseen > 0) { $line .= '<B>'; }
/* Crate the link for this folder. */
- $line .= "<A HREF=\"right_main.php?PG_SHOWALL=0&sort=0&startMessage=1&mailbox=$mailboxURL\" TARGET=\"right\" STYLE=\"text-decoration:none\">";
+ $line .= "<a href=\"right_main.php?PG_SHOWALL=0&sort=0&startMessage=1&mailbox=$mailboxURL\" TARGET=\"right\" STYLE=\"text-decoration:none\">";
if ($special_color) {
- $line .= "<FONT COLOR=\"$color[11]\">";
+ $line .= "<font color=\"$color[11]\">";
}
if ( $mailbox == 'INBOX' ) {
$line .= _("INBOX");
$line .= str_replace(' ',' ',$mailbox);
}
if ($special_color == TRUE)
- $line .= "</FONT>";
- $line .= '</A>';
+ $line .= '</font>';
+ $line .= '</a>';
/* If there are unseen message, close bolding. */
if ($unseen > 0) { $line .= "</B>"; }
$folder_img = ' <img src="'.$folder_img.'" heigth="15" valign="center"> ';
} else $folder_img = '';
if (!isset($boxes->mbxs[0])) {
- echo ' <div class="mbx_sub" id='.$j. ' onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)">' . $folder_img .$pre .$font. $boxes->mailboxname_sub .$fontend . $end. '</div>'."\n";
+ echo ' ' . html_tag( 'div',
+ $folder_img .$pre .$font. $boxes->mailboxname_sub .$fontend . $end ,
+ 'left', '', 'class="mbx_sub" id="' .$j. '" onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)"' )
+ . "\n";
} else {
/* get collapse information */
if ($collapse_folders) {
}
$collapse_link = $link;
} else $collapse_link='';
- echo ' <div class="mbx_par" id='.$j. 'P onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)">' . $collapse_link . $folder_img .$pre. $font. '  '. $boxes->mailboxname_sub .$fontend . $end. '</div>'."\n";
- echo ' <INPUT TYPE="hidden" name=mbx['.$j. 'F] value="'.$collapse.'">'."\n";
+ echo ' ' . html_tag( 'div',
+ $collapse_link . $folder_img .$pre. $font. '  '. $boxes->mailboxname_sub .$fontend . $end ,
+ 'left', '', 'class="mbx_par" id="' .$j. 'P" onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)"' )
+ . "\n";
+ echo ' <INPUT TYPE="hidden" name=mbx['.$j. 'F] value="'.$collapse.'" id=mbx['.$j.'F>'."\n";
}
}
if ($collapse) {
$visible = ' STYLE="display:none;"';
} else {
- $visible = ' STYLE="display:inline;"';
+ $visible = ' STYLE="display:block;"';
}
if (isset($boxes->mbxs[0]) && !$boxes->is_root) /* mailbox contains childs */
- echo '<div class="par_area" id='.$j.'.0 '. $visible .'>'."\n";
+ echo html_tag( 'div', '', 'left', '', 'class="par_area" id='.$j.'.0 '. $visible ) . "\n";
+
if ($j !='ID.0') {
$j = $j .'.0';
}
} else if (document.getElementById) {
masterf = window.parent.document.getElementById("fs1");
leftf = window.parent.document.getElementById("left");
+ leftcontent = document.getElementById("leftframe");
+ leftbutton = document.getElementById("showf");
} else {
return false;
}
ECHO;
/* style definitions */
-/* if you use konquerer and have problems with the width of mbx_par delete the line height = 100% */
-/* if you do that then ie6 have problems :-( solution is browserdetection */
+
$xtra .= <<<ECHO
<STYLE>
border-bottom-width:0.1em;
border-bottom-color:blue;
display:block;
- height: 100%;
}
.mailboxes {
echo '<div ID="leftframe"><br><br>';
}
-
-echo '<CENTER><FONT SIZE=4><B>'. _("Folders") . "</B><BR></FONT>\n\n";
+echo "\n\n" . html_tag( 'table', '', '', '', 'border="0" cellspacing="0" cellpadding="0" width="100%"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'left' ) .
+ '<center><font size="4"><b>'. _("Folders") . "</b><br></font>\n\n";
if ($date_format != 6) {
/* First, display the clock. */
}
$clk = str_replace(' ',' ',$clk);
- echo '<CENTER><SMALL>' . str_replace(' ',' ',_("Last Refresh")) .
- ": $clk</SMALL></CENTER>";
+ echo '<center><small>' . str_replace(' ',' ',_("Last Refresh")) .
+ ": $clk</small></center>";
}
/* Next, display the refresh button. */
-echo '<SMALL>(<A HREF="../src/left_main.php" TARGET="left">'.
- _("refresh folder list") . '</A>)</SMALL></CENTER><BR>';
+echo '<small>(<a href="../src/left_main.php" target="left">'.
+ _("refresh folder list") . '</a>)</small></center><br>';
/* Lastly, display the folder list. */
if ( $collapse_folders ) {
do_hook('left_main_after');
sqimap_logout($imapConnection);
-echo "</div></BODY></HTML>\n";
+echo '</td></tr></table>' . "\n".
+ "</div></body></html>\n";
?>