From 22a4058cb135366061add810df74e635a32dbea3 Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 19 Dec 2001 20:30:52 +0000 Subject: [PATCH] title_icons_table_month(): rewritten - Articles are now listed each separately (requested) - title image has now separate list item, image is no longer ctive - each table cell has now its own heading title_icons(): split value changed 6->4 (now the table has 4x3 cells) - needed for 800x600 browser compatibility --- common.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/common.php b/common.php index d1b2412..e4587c1 100644 --- a/common.php +++ b/common.php @@ -221,11 +221,19 @@ function title_icons_table_month($year,$month,$month_last,$sequential) global $tb_clanek; $month_a=month_a($year,$month,$month_last,$sequential); - print("" - .img($month_a["icon"],"titulní stránka ".$month_a["name_full"])."
" - ."obsah ".$month_a["name"].""); - if (db_item("select count(*) from $tb_clanek where year=$year and month=$month")) - print("
ukázka èlánkù"); + print("" + ."\n" + ."\n" + ."
".$month_a["name"]."
" + .img($month_a["icon"],"titulní stránka ".$month_a["name_full"])."
\n" + ."• titulní strana
\n" + ."• obsah
\n"); + $result=db_query("select name,id from $tb_clanek where year=$year and month=$month order by id"); + while ($row=mysql_fetch_array($result)) + print("• " + .htmlspecialchars($row["name"])."
\n"); + mysql_free_result($result); + print("
"); } function title_icons($year,$month) @@ -244,7 +252,7 @@ function title_icons($year,$month) .(isset($year) && isset($month) ? " and" : "") .(isset($month) ? " month=$month" : "") ." order by year,month"); - $split=6; + $split=4; // $year variable changes its meaning here!!! if (isset($year)) -- 1.8.3.1