+EaP 10/2001 (62): Ptali jste se...
[www.energie.vellum.cz.git] / common.php
index 226af62..d66927f 100644 (file)
@@ -281,7 +281,7 @@ function title_icons($year,$month)
                        print("<td></td>");
                        $month++;
                        }
-               print("<td align=\"center\""
+               print("<td align=\"center\" valign=\"top\""
                                .($row["month_last"]!=$row["month"] ? " colspan=\"".($row["month_last"]+1-$row["month"])."\"" : "")
                                .">");
                title_icons_table_month($year,$row["month"]+1,$row["month_last"]+1,$row["sequential"]);
@@ -378,11 +378,12 @@ function no_cache()
 
 function heading($title=false)
 {
-       global $msie_major,$mozilla_major,$title_tail,$head_css,$have_css,$head;
+       global $HTTP_SERVER_VARS,$msie_major,$mozilla_major,$title_tail,$head_css,$have_css,$head;
 
        header("Content-type: text/html");
+       header("Content-Style-Type: text/css");
        if (!isset($msie_major) || $msie_major>=4)
-               print('<?xml version="1.0" encoding="iso-8859-2"?>'."\n");
+               print('<?xml version="1.0" encoding="'.$HTTP_SERVER_VARS["CLIENT_CHARSET"].'"?>'."\n");
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">