# HG changeset patch # User Matti Hamalainen # Date 1384091303 -7200 # Node ID 1e4f530c83102388ff093c6a013b6dbf0527207d # Parent 4594594f8b74f462c52714ebb2fd61d668eaa9eb Add link list of compos. diff -r 4594594f8b74 -r 1e4f530c8310 compos.inc.php --- a/compos.inc.php Sun Nov 10 15:29:46 2013 +0200 +++ b/compos.inc.php Sun Nov 10 15:48:23 2013 +0200 @@ -52,6 +52,20 @@ return $str; } + +$sql = "SELECT id,name FROM compos WHERE visible<>0 ORDER BY id ASC"; + +if (($res = stExecSQL($sql)) !== FALSE) +{ + $list = array(); + foreach ($res as $item) + { + $list[] = "".chentities($item["name"]).""; + } + echo "

".join($list, " | ")."

"; +} + + $sql = "SELECT * FROM compos WHERE visible<>0 ORDER BY id ASC"; if (($res = stExecSQL($sql)) !== FALSE)