CSS classes ".tab-bold" and ".tab-head" are now global
[www.energie.vellum.cz.git] / index.php
index 76bc201..da7b802 100644 (file)
--- a/index.php
+++ b/index.php
@@ -7,8 +7,6 @@
        include("common.php");
 
        $head_css="
-.tab-bold  { font-weight: bold; }
-.tab-head  { font-weight: bold; color: yellow; background-color: transparent; }
 .post-type { font-family: monospace; }
 .smaller   { font-size: smaller }
 .img-align { vertical-align:middle; }
@@ -20,8 +18,9 @@
        <li><a href="title.php">V¹echny roèníky</a></li>
 <?php
 
-       $getdate=getdate();
-       $year=$getdate["year"];
+       // Current year may be different (higher) but when no such content exists
+       // yet, it is better to at least provide the last year.
+       $year=db_item("select max(year) from $tb_obsah");
 
        $result=db_query("select distinct year from $tb_obsah order by year");
        while (($row=mysql_fetch_array($result)))
@@ -30,7 +29,8 @@
 
 ?>
        <li><a href="#objednavka">Objednávka</a></li>
-       <li><a href="inzerce.php">Ceník inzerce</a></li>
+       <li><a href="inzerat.php<?php print($have_js); ?>">Øádková inzerce</a></li>
+       <li><a href="inzerce.php">Ceník plo¹né inzerce</a></li>
        <li><a href="#kontakt">Kontakt</a></li>
 </ul>