Exemple #1
0
        $html .= "<tr " . $class . ">";
        $html .= "<td>" . $dados['CO_MODULO'] . "</td>";
        $html .= "<td><div title='" . $dados['DS_MODULO'] . "' id='" . $dados['CO_MODULO'] . "'><strong>" . $i . ' ' . $dados['NO_MODULO'] . "</strong></div></td>";
        $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 -->