* This is the code for the left bar. The left bar shows the folders
* available, and has cookie information.
*
- * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
define('SM_PATH','../');
/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+include_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'functions/imap.php');
require_once(SM_PATH . 'functions/plugin.php');
require_once(SM_PATH . 'functions/page_header.php');
$unseen_string .= '/' . $boxes->total;
}
- $unseen_string = "<font color=\"$color[11]\">($unseen_string)</font>";
+ $unseen_string = "<span class=\"highlight\">($unseen_string)</span>";
/*
Finally allow the script to display the values by setting a boolean.
$boxes->total = $result['MESSAGES'];
$boxes->unseen = $result['UNSEEN'];
}
-
+
$pre .= "<a href=\"right_main.php?PG_SHOWALL=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\">";
if ($unseen > 0) {
$pre .= '<b>';
}
- $font = '';
- $fontend = '';
+ $span = '';
+ $spanend = '';
if ($use_special_folder_color && $boxes->is_special) {
- $font = "<font color=\"$color[11]\">";
- $fontend = "</font>";
+ $span = "<span class=\"leftspecial\">";
+ $spanend = "</span>";
} elseif ( $boxes->is_noselect ) {
- $font = "<font color=\"$color[15]\">";
- $fontend = '</font>';
+ $span = "<span class=\"leftnoselect\">";
+ $spanend = '</span>';
}
+
// let plugins fiddle with end of line
$end .= concat_hook_function('left_main_after_each_folder',
array(isset($numMessages) ? $numMessages : '',
$end .= '</span>';
if (!$boxes->is_root) {
- echo "" . $pre .$font.
+ echo "" . $span . $pre .
str_replace(
array(' ','<','>'),
array(' ','<','>'),
$boxes->mailboxname_sub) .
- $fontend . $end. '<br />' . "\n";
+ $end. $spanend .'<br />' . "\n";
$j++;
}
$unseen_string .= '/' . $boxes->total;
}
- $unseen_string = "<font color=\"$color[11]\">($unseen_string)</font>";
+ $unseen_string = "<span class=\"highlight\">($unseen_string)</span>";
/*
Finally allow the script to display the values by setting a boolean.
/* color special boxes */
if ($use_special_folder_color && $boxes->is_special) {
- $pre .= "<font color=\"$color[11]\">";
- $end .= '</font>';
+ $pre .= "<span class=\"highlight\">";
+ $end .= '</span>';
}
/* If there are unseen message, close bolding. */
if ($advanced_tree) {
echo "\n<body" .
' onload="preload(\'../images/minus.png\',\'../images/plus.png\')"' .
- " bgcolor=\"$color[3]\" text=\"$color[6]\" link=\"$color[6]\" vlink=\"$color[6]\" alink=\"$color[6]\">\n";
+ " class=\"leftmain\">\n<div class=\"leftmain\">\n";
} else {
- echo "\n<body bgcolor=\"$color[3]\" text=\"$color[6]\" link=\"$color[6]\" vlink=\"$color[6]\" alink=\"$color[6]\">\n";
+ echo "\n<body class=\"leftmain\">\n<div class=\"leftmain\">\n";
}
do_hook('left_main_before');
?>
</td></tr></table>
-</body></html>
\ No newline at end of file
+</div>
+<?php
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file