+EaP 4/2010 (164)
[www.energie.vellum.cz.git] / clanek.php
index 5465ab7..662c0a1 100644 (file)
@@ -2,6 +2,12 @@
 
        include("common.php");
 
+       $head_css="
+th,td { padding: 3px }
+h3,h4,h5,h6 { color: aqua; background-color: transparent; }
+caption     { color: aqua; background-color: transparent; }
+";
+
        prepvar("year" ,"[0-9]+");
        prepvar("month","[0-9]+");
        prepvar("id"   ,"[0-9]+",false/*required*/);
@@ -22,7 +28,7 @@
 
 function print_article($row)
 {
-       print("<h2>".htmlspecialchars($row["name"])."</h2>\n".$row["contents"]);
+       print("<h2>".htmlspecialchars(ereg_replace("\\|.*\$","",$row["name"]))."</h2>\n".$row["contents"]);
 }
 
        if (isset($id))