*/
function html_tag( $tag, // Tag to output
- $val = '', // Value between tags (if empty only start tag is output)
+ $val = '', // Value between tags (if empty only start tag is issued)
$align = '', // Alignment
$bgcolor = '', // Back color
$xtra = '' ) { // Extra options
- GLOBAL $languages, $language;
+ GLOBAL $languages, $squirrelmail_language;
$align = strtolower( $align );
$dir = strtolower( $dir );
$tag = strtoupper( $tag );
- if ( isset( $languages[$language]['DIR']) ) {
- $dir = $languages[$language]['DIR'];
+ if ( isset( $languages[$squirrelmail_language]['DIR']) ) {
+ $dir = $languages[$squirrelmail_language]['DIR'];
} else {
$dir = 'ltr';
}
$alg = " ALIGN=\"$align\"";
}
- $ret = "<$tag";
+ $ret = "<$tag";
- if ( $dir <> 'ltr' ) {
- $ret .= " DIR=\"$dir\"";
- }
+ if ( $dir <> 'ltr' ) {
+ $ret .= " DIR=\"$dir\"";
+ }
- $ret .= "$bgc$alg";
+ $ret .= "$bgc$alg";
- if ( $xtra <> '' ) {
- $ret .= " $xtra";
- }
- $ret .= '>';
+ if ( $xtra <> '' ) {
+ $ret .= " $xtra";
+ }
+ $ret .= '>';
- if ( $val <> '' ) {
- $ret .= "$val</$tag>";
- }
+ if ( $val <> '' ) {
+ $ret .= "$val</$tag>";
+ }
return( $ret );
}
-?>
\ No newline at end of file
+?>
if ($num_msgs == 0) {
/* if there's no messages in this folder */
echo html_tag( 'tr',
- html_tag( 'td',
- "<BR><B>" .
- _("THIS FOLDER IS EMPTY") .
- "</B><BR> ",
- 'center',
- $color[4],
- 'COLSPAN="' . count($index_order) . '"'
- )
- );
+ html_tag( 'td',
+ "<BR><B>" . _("THIS FOLDER IS EMPTY") . "</B><BR> ",
+ 'center',
+ $color[4],
+ 'COLSPAN="' . count($index_order) . '"'
+ )
+ );
} elseif ($start_msg == $end_msg) {
/* if there's only one message in the box, handle it differently. */