rendered paste body<script language="JavaScript">/* Script by Saivert - http://saivert.com */function toggleCategories() { var o = document.getElementById('browsecategories'); if (o.style.display == 'none') { o.style.display = 'block'; } else { o.style.display = 'none'; }}</script>echo "<button onclick=\"toggleCategories();\"></button>";echo "<div class=\"browse_cath\" id=\"browsecategories\">";echo "<form method=\"get\" action=\"browse.php\">";echo "<table class=\"browse_cath\">";echo "<tr>";$i = 0;foreach ($cats as $cat){ $catsperrow = 6; print(($i && $i % $catsperrow == 0) ? "</tr><tr>" : ""); echo "<td class=\"browse_cath\">"; echo "<input name=\"c".$cat[id]."\" class=\"cathegory_checkbox\" type=\"checkbox\" ".(in_array($cat[id],$wherecatina) ? "checked" : "")." value=\"1\">"; echo "<a class=\"catlink\" href=\"browse.php?cat=".$cat[id]."\">".htmlspecialchars($cat[name])."</a>"; echo "</td>"; $i++;}echo "</tr>";echo "</table>";$ncats = count($cats);$nrows = ceil($ncats/$catsperrow);$lastrowcols = $ncats % $catsperrow;echo "(<a href=\"browse.php?all=1\"><b>Show all</b></a>)";echo "<select name=incldead>";echo "<option value=\"0\">active</option>";echo "<option value=\"1\" ".($_GET["incldead"] == 1 ? "selected" : "") .">including dead</option>";echo "<option value=\"2\" ".($_GET["incldead"] == 2 ? "selected" : "") .">only dead</option>";echo "</select>";#if ($ncats % $catsperrow == 0)# print("<td class=bottom style=\"padding-left: 15px\" rowspan=$nrows valign=center align=right>$alllink</td>\n");echo "<input type=\"submit\" class=\"btn\" value=\"Go!\">";echo "</form>";echo "</div>";