month_full()->month_a() to unify month elements naming
authorshort <>
Thu, 16 Aug 2001 12:31:18 +0000 (12:31 +0000)
committershort <>
Thu, 16 Aug 2001 12:31:18 +0000 (12:31 +0000)
img_size($one_argument_file_name) autodetects its image size
Implemented HTML-wrapped title viewing

index.php

index 2f058c8..87a9545 100644 (file)
--- a/index.php
+++ b/index.php
 
 function title_table_month($year,$month,$month_last)
 {
-       $month_full=month_full($year,$month,$month_last);
-       $base="img/eap-$year-$month_full";
-       $name=        "$year/$month_full";
-       print("<a href=\"${base}.jpg\">"
-                       ."<img src=\"${base}s.jpg\" ".img_size(98,138)." alt=\"titulní stránka $name\" /></a><br />\n"
-                       ."<a href=\"obsah.php?year=$year&amp;month=$month\">obsah $name</a>"
+       $month_a=month_a($year,$month,$month_last);
+       print("<a href=\"title.php?year=$year&amp;month=$month\">"
+                               ."<img src=\"".$month_a["icon"]."\" ".img_size($month_a["icon"])
+                               ." alt=\"titulní stránka ".$month_a["name"]."\" /></a><br />\n"
+                       ."<a href=\"obsah.php?year=$year&amp;month=$month\">obsah ".$month_a["name"]."</a>"
                        );
 }