git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+EaP 4/2010 (164)
[www.energie.vellum.cz.git]
/
clanek.php
diff --git
a/clanek.php
b/clanek.php
index
5465ab7
..
662c0a1
100644
(file)
--- a/
clanek.php
+++ b/
clanek.php
@@
-2,6
+2,12
@@
include("common.php");
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*/);
prepvar("year" ,"[0-9]+");
prepvar("month","[0-9]+");
prepvar("id" ,"[0-9]+",false/*required*/);
@@
-22,7
+28,7
@@
function print_article($row)
{
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))
}
if (isset($id))