.$category['description']. - описание (которое над скрыть после нажатия ссылку ) } $categories = mysql_query("SELECT * FROM jb_board_cat WHERE root_category = 0 ORDER by sort_index"); cq(); $GLOBALS['tdEnd'] = round(mysql_num_rows($categories) / 2);$GLOBALS['count_rows'] = 0; echo "<table width=100%><tr valign=top><td width=50%>"; while($category = mysql_fetch_assoc($categories)) { echo "<div style=\"margin-top:15px;\">"; echo ($category['img']!="")?"<div style=\"float:left; margin-right:10px; \"><img align=left src=\"".$GLOBALS['host']."/upload/cat/".$category['img']."\"></div>":" "; echo "<H4><a href=# onClick=\"details(9999".$category['id'].");return false;\" style=\"cursor:pointer\">".$category['name_cat']."</a> <span id=count_".$category['id']."></span></H4>".$category['description']."<div id=\"9999".$category['id']."\" style=\"DISPLAY: none; padding-left:0px\">"; $sub = 1; listcat2($category['id'], $sub, $GLOBALS['count']); echo "</div>"; if ($GLOBALS['count'] != 0) echo "<script type=\"text/javascript\">document.getElementById('count_".$category['id']."').innerHTML = '".$GLOBALS['count']."';</script>"; $GLOBALS['count'] = 0; echo "</div>";