function drawCats() { $arr = Cats(); if (is_array($arr) || is_object($arr)) { foreach ($arr as $i => $row) { if ($row['idCat'] == 'cat_1') { echo '<button class="boton activo" title="' . $row['name'] . '" id="' . $row['idCat'] . '"><i class="' . $row['css'] . '"></i></button>'; } else { echo '<button class="boton" title="' . $row['name'] . '" id="' . $row['idCat'] . '"><i class="' . $row['css'] . '"></i></button>'; } echo '<input type="hidden" value="' . $row['name'] . '">'; echo '<input type="hidden" value="' . $row['desc'] . '">'; } } else { echo 'Error en array de cats!'; } }
?> </table> <?php } switch ($_GET['caseid']) { case 'home': home(); break; case 'AdminView': AdminView(); break; case 'document': Document(); break; case 'cats': Cats(); break; case 'status': Status(); break; default: home(); break; } ?> <br> <table width="<?php echo $maintablewidth; ?> " cellspacing="1" cellpadding="1" border="0" align="<?php echo $maintablealign;