Fixed some "E&P" spacing.
[www.energie.vellum.cz.git] / index.php
index 2a09efa..4769a8b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -22,7 +22,7 @@
        // 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");
+       $result=db_query("select distinct year from $tb_obsah order by year desc");
        while (($row=mysql_fetch_array($result)))
                print("\t\t<li><a href=\"title.php?year=".$row["year"]."\">Roèník ".$row["year"]."</a></li>\n");
        mysql_free_result($result);
@@ -72,13 +72,11 @@ function tab_price($product)
 
        $price_a=price_a();
        print(""
-                       ."<tr class=\"tab-bold\">".tab_left("phys_2003")
-                               ."<td>pøedplatné na rok 2003 za cenu ".tab_price("phys_2003")."</td></tr>\n"
-                       ."<tr class=\"tab-bold\">".tab_left("phys_2002")
-                               ."<td>pøedplatné na rok 2002 za cenu ".tab_price("phys_2002")."</td></tr>\n"
+                       ."<tr class=\"tab-bold\">".tab_left("phys_2005")
+                               ."<td>pøedplatné na rok 2005 za cenu ".tab_price("phys_2005")."</td></tr>\n"
                        );
        foreach (price_a() as $product => $price) {
-               if ($product=="phys_2002" || $product=="phys_2003")
+               if ($product=="phys_2005")
                        continue;
                if (!(ereg("^(cd|phys)_([0-9]+)$",$product,$matched)))
                        continue;