Mercurial > hg > fapweb
comparison pages/compos.inc.php @ 1021:74b98743697b
Work on layout, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Nov 2015 22:31:39 +0200 |
parents | ffacd904fd1f |
children | 7e497188e4c6 |
comparison
equal
deleted
inserted
replaced
1020:2a259e243350 | 1021:74b98743697b |
---|---|
25 { | 25 { |
26 $list[] = "<a class=\"compo\" href=\"#". | 26 $list[] = "<a class=\"compo\" href=\"#". |
27 stConvertNameToID($item["name"])."\">". | 27 stConvertNameToID($item["name"])."\">". |
28 chentities($item["name"])."</a>"; | 28 chentities($item["name"])."</a>"; |
29 } | 29 } |
30 echo "<div class=\"compolist\">".join($list, "<span class=\"composep\"> | </span>")."</div>"; | 30 echo "<div class=\"componamelist\">".join($list, "<span class=\"composep\"> | </span>")."</div>\n\n"; |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 $sql = "SELECT * FROM compos WHERE visible<>0 ORDER BY id ASC"; | 34 $sql = "SELECT * FROM compos WHERE visible<>0 ORDER BY id ASC"; |
35 | 35 |
36 if (($res = stExecSQL($sql)) !== FALSE) | 36 if (($res = stExecSQL($sql)) !== FALSE) |
37 { | 37 { |
38 echo "<div class=\"compolist\">\n"; | |
38 foreach ($res as $item) | 39 foreach ($res as $item) |
39 { | 40 { |
40 echo | 41 echo |
41 "<div id=\"".stConvertNameToID($item["name"])."\">\n". | 42 "<div class=\"compo\" id=\"".stConvertNameToID($item["name"])."\">\n". |
42 "<h2>".chentities($item["name"])."</h2>\n". | 43 "<h2>".chentities($item["name"])."</h2>\n". |
43 stConvertCommonDesc($item["description"], FALSE). | 44 stConvertCommonDesc($item["description"], FALSE). |
44 "<div class=\"backToTop\"><a href=\"#top\">Back</a></div>\n". | 45 "<div class=\"backToTop\"><a href=\"#top\">Back</a></div>\n". |
45 "</div>\n"; | 46 "</div>\n"; |
46 } | 47 } |
48 echo "</div>\n"; | |
47 } | 49 } |
48 } | 50 } |
49 ?> | 51 ?> |