Cosmetic heading change "Objednavka" -> "Objednavka casopisu"
[www.energie.vellum.cz.git] / index.php
index 76bc201..1d21c76 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; }
 ?>
 <ul>
        <li><a href="obsah.php">Obsahy v¹ech roèníkù</a></li>
-       <li><a href="title.php">V¹echny roèníky</a></li>
+       <li><a href="title.php">V¹echny roèníky</a><ul>
 <?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)))
-               print("\t<li><a href=\"title.php?year=".$row["year"]."\">Roèník ".$row["year"]."</a></li>\n");
+               print("\t\t<li><a href=\"title.php?year=".$row["year"]."\">Roèník ".$row["year"]."</a></li>\n");
        mysql_free_result($result);
 
 ?>
-       <li><a href="#objednavka">Objednávka</a></li>
-       <li><a href="inzerce.php">Ceník inzerce</a></li>
+               </ul></li>
+       <li><a href="#objednavka">Objednávka èasopisu</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>
 
@@ -43,7 +44,7 @@
 ?>
 <p>&nbsp;</p>
 
-<h2><a id="objednavka">Objednávka</a></h2>
+<h2><a id="objednavka">Objednávka èasopisu</a></h2>
 <form action="objednavka.php<?php print($have_js); ?>" method="post">
 <table border="0" width="100%">
 <tr><td align="center"><table border="1" width="90%" cellpadding="5">