Updated to be XHTML-1.1 compliant
authorshort <>
Thu, 4 Oct 2001 17:37:49 +0000 (17:37 +0000)
committershort <>
Thu, 4 Oct 2001 17:37:49 +0000 (17:37 +0000)
W3C Validator is now referenced by URI (not by "Referer" header)

common.php

index 63fb898..67d72aa 100644 (file)
@@ -233,7 +233,7 @@ function title_icons($year,$month)
        global $tb_obsah;
 
        print("<h2>"
-               .(isset($year) ? "<a name=\"year_$year\">" : "")
+               .(isset($year) ? "<a id=\"year_$year\">" : "")
                .title_name(&$year,&$month)
                .(isset($year) ? "</a>" : "")
                ."</h2>\n");
@@ -262,7 +262,7 @@ function title_icons($year,$month)
 
                        $year=$row["year"];
                        print(""
-                                       .(!isset($wanted_year) ? "<p><a name=\"year_$year\">&nbsp;</a></p>" : "")
+                                       .(!isset($wanted_year) ? "<p><a id=\"year_$year\">&nbsp;</a></p>" : "")
                                        ."<table border=\"0\" width=\"100%\"><tr><td align=\"center\"><table border=\"1\" cellpadding=\"5\">\n"
                                        ."<tr><th colspan=\"$split\">Roèník $year (<a href=\"obsah.php?year=$year\">obsahy èísel</a>)</th></tr>\n"
                                        );
@@ -350,15 +350,16 @@ function footer($delimit=true)
        global $cvs_id_html,$viewcvs,$viewcvs,$HTTP_SERVER_VARS;
        if ($delimit)
                print("<p>&nbsp;</p>\n");
+       $uri="uri=".addpercents("http://".$HTTP_SERVER_VARS["HTTP_HOST"].$HTTP_SERVER_VARS["REQUEST_URI"]);
        ?>
 <hr />
 <table border="0" width="100%">
 <tr><td align="left"><span class="cvs-id"><?php print($cvs_id_html); ?></span></td><td align="right"><a
-       href="http://validator.w3.org/check/referer"><img src="http://www.w3.org/Icons/valid-xhtml10"
-               <?php print(img_size(88,31)); ?> alt="Valid XHTML 1.0!" /></a><a
-       href="http://jigsaw.w3.org/css-validator/validator?warning=2&amp;profile=css2&amp;uri=<?php
-               print(addpercents("http://".$HTTP_SERVER_VARS["HTTP_HOST"].$HTTP_SERVER_VARS["REQUEST_URI"]));
-               ?>"><img src="http://jigsaw.w3.org/css-validator/images/vcss"
+       href="http://validator.w3.org/check?<?php
+               print($uri); ?>"><img src="http://www.w3.org/Icons/valid-xhtml11"
+               <?php print(img_size(88,31)); ?> alt="Valid XHTML 1.1!" /></a><a
+       href="http://jigsaw.w3.org/css-validator/validator?warning=2&amp;profile=css2&amp;<?php
+               print($uri); ?>"><img src="http://jigsaw.w3.org/css-validator/images/vcss"
                <?php print(img_size(88,31)); ?> alt="Valid CSS!" /></a></td></tr>
 </table>
 </body></html>
@@ -383,8 +384,8 @@ function heading($title=false)
        if (!isset($msie_major) || $msie_major>=4)
                print('<?xml version="1.0" encoding="iso-8859-2"?>'."\n");
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
+<!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">
 <head><title>Energie &amp; peníze<?php
        if (isset($title_tail))
                print(": ".htmlspecialchars($title_tail));