+phys_2007
[www.energie.vellum.cz.git] / index.php
index c5d61bb..4465add 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);
@@ -65,11 +65,11 @@ function tab_price($product)
 
        $price_a=price_a();
        print(""
-                       ."<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_2007")
+                               ."<td>pøedplatné na rok 2007 za cenu ".tab_price("phys_2007")."</td></tr>\n"
                        );
        foreach (price_a() as $product => $price) {
-               if ($product=="phys_2002")
+               if ($product=="phys_2007")
                        continue;
                if (!(ereg("^(cd|phys)_([0-9]+)$",$product,$matched)))
                        continue;
@@ -106,7 +106,7 @@ function print_addr($title,$pfx,$ico)
        <?php
        if ($ico) {
        ?>
-               <tr><td>IÈO:</td><td              ><input type="text" name="<?php print("${pfx}ico"); ?>" size="20" /></td>
+               <tr><td>IÈ:</td><td               ><input type="text" name="<?php print("${pfx}ico"); ?>" size="20" /></td>
                        <td>DIÈ:           <input type="text" name="<?php print("${pfx}dic"); ?>" size="20" /></td></tr>
        <?php
                }
@@ -147,8 +147,8 @@ print_addr("Adresa pro zas
 <tr><td>Adresa:</td ><td class="tab-bold">K Ovèínu 44</td></tr>
 <tr><td></td        ><td class="tab-bold">Praha 8 - Kobylisy</td></tr>
 <tr><td></td        ><td class="tab-bold">182 00</td></tr>
-<tr><td>IÈO:</td    ><td class="tab-bold">26208393</td></tr>
-<tr><td>DIÈ:</td    ><td class="tab-bold">008-26208393</td></tr>
+<tr><td>IÈ:</td     ><td class="tab-bold">26208393</td></tr>
+<tr><td>DIÈ:</td    ><td class="tab-bold">CZ26208393</td></tr>
 <tr><td>Telefon:</td><td class="tab-bold">603&nbsp;410&nbsp;662</td></tr>
 <tr><td>Fax:</td    ><td class="tab-bold">286&nbsp;582&nbsp;674</td></tr>
 <tr><td>e-mail:</td ><td class="tab-bold"><a href="mailto:akra.cz@centrum.cz">akra.cz@centrum.cz</a></td></tr>