Exemplo n.º 1
0
	              	<?php 
    }
    ?>
	              </td>
              </tr>
              <tr>
              <table class="LISTA tablesorte" width="1003" border="0" align="center" cellpadding="1" cellspacing="1">
				<thead>
				<tr>
					<th width="8%">Código</th><th>Módulos</th><th width="15%" align="center">Ações</th>
				</tr>
				</thead>
				<?php 
    $i = 1;
    while ($dados = mysql_fetch_array($moduloPai)) {
        $html .= $_modModel->getHtml();
        $_modModel->setHtml('');
        $dados['FL_ATIVO'] == 0 ? $class = "class='INATIVO'" : ($class = "class='modulo_pai'");
        $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>';
        }