include("common.php");
?>
<h1 class="centered"><img src="img/eap-title.png" alt="Teplo & Peníze" /></h1>
+<p> </p>
+<?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);
+ 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]
+ ."</a>");
+}
+
+function title_table_year($year,$month_max=11)
+{
+ $split=6;
+
+ print("<table border=\"0\" width=\"100%\"><tr><td align=\"center\"><table border=\"1\" cellpadding=\"5\">\n");
+ for ($month=0;$month<=$month_max;$month++) {
+ if (($month%$split)==0)
+ print("<tr>");
+ print("<td align=\"center\">");
+ title_table_month($year,$month);
+ print("</td>");
+ if (($month%$split)==$split-1 || $month==$month_max)
+ print("</tr>\n");
+ }
+ print("</table></td></tr></table>");
+}
+
+title_table_year(2001,5);
+?>
+
+<p> </p>
+
<h2>Objednávka</h2>
<form action="objednavka.php<?php print($have_js); ?>" method="post">
-<table border="1" width="90%" class="centered">
+<table border="0" width="100%">
+<tr><td align="center"><table border="1" width="90%">
<tr><td align="center"><table border="0">
<?php
function tab_left($name)
<tr><td><textarea name="comments" rows="5" cols="100"></textarea></td></tr>
</table></td></tr>
<tr><td align="center"><input type="submit" value="Ode¹li závaznou objednávku" onclick="return(validate(this.form))" /></td></tr>
+</table></td></tr>
</table></form>
<?php