$html .= '<td align="center">'; if ($acoes['FL_ADICIONAR'] == 1) { $html .= '<a href="javascript:addSub(' . $dados["CO_MODULO"] . ');"><img title="Adicionar Sub-módulo" src="img/btn/btn_mais.gif" /></a>'; } if ($acoes['FL_EDITAR'] == 1) { $html .= '<a href="javascript:editar(' . $dados["CO_MODULO"] . ');"><img title="Editar" src="img/btn/btn_editar.gif" /></a>'; } if ($acoes['FL_EXCLUIR'] == 1) { $html .= '<a href="javascript:excluir(' . $dados["CO_MODULO"] . ');"><img title="Excluír" src="img/btn/btn_excluir.gif" /></a>'; } $html .= "</td></tr>"; $i++; $_modModel->recursivaSubcaterorias(TRUE, $dados['CO_MODULO'], $i - 1); $html .= $_modModel->getHtml(); $_modModel->setHtml(''); $_modModel->setJ($i); } echo $html; ?> </table> </tr> </table> </td> </tr> </table> <!-- BOX ADICIONAR MODULO --> <div id="boxAdicionarModulo" style="display: none;"> <table> <tr>