title_table_month(): month names changed to numbers, reqd by publisher
[www.energie.vellum.cz.git] / index.php
index 5179929..43507a5 100644 (file)
--- a/index.php
+++ b/index.php
 
 function title_table_month($year,$month)
 {
-       $month_cz=array("leden","únor","bøezen","duben","kvìten","èerven","èervenec","srpen","záøí","øíjen","listoped","prosinec");
        $size_width_s= 98; $size_height_s=138;
        $size_width  =486; $size_height  =688;
 
        $base=sprintf("img/eap-%04d-%02d",$year,$month+1);
+       $name=sprintf(        "%04d/%02d",$year,$month+1);
        print("<a href=\"${base}.jpg\">"
                        ."<img src=\"${base}s.jpg\" width=\"$size_width_s\" height=\"$size_height_s\""
-                       ." style=\"border:0;width:${size_width_s}px;height:${size_height_s}px\" alt=\"$year-".$month_cz[$month]."\" /><br />\n"
-                       ."$year<br />".$month_cz[$month]
+                       ." style=\"border:0;width:${size_width_s}px;height:${size_height_s}px\" alt=\"titulní stránka $name\" /><br />\n"
+                       ."$name"
                        ."</a>");
 }