" /> <table class="LISTA tablesorte" width="700" border="0" align="center" cellpadding="1" cellspacing="1"> <thead> <tr> <th align="left" width="8%">Código</th> <th align="left" width="30%">Módulos</th> <th width="7%"><input type="checkbox" id="btSelecionarTodosEditar" onclick="marcarTodosEditar();"/> Editar</th> <th width="7%"><input type="checkbox" id="btSelecionarTodosExcluir" onclick="marcarTodosExcluir();"/> Exculír</th> <th width="7%"><input type="checkbox" id="btSelecionarTodosIncluir" onclick="marcarTodosIncluir();"/> Incluir</th> </tr> </thead> <?php $i = 1; $checked = ""; while ($dados = mysql_fetch_array($modulos)) { $campTmp = $_modModel->getCaminho($dados['CO_MODULO']); $tamanho = strlen(trim($dados['NO_MODULO'])) + 1; $caminho = substr($campTmp, 0, strlen($campTmp) - $tamanho); $resultEditar = $_acoesModel->editarAtivo($dados['CO_ACAO']); $resultEditar == true ? $checkedEditar = "checked='checked'" : ($checkedEditar = ""); $resultExcluir = $_acoesModel->excluirAtivo($dados['CO_ACAO']); $resultExcluir == true ? $checkedExcluir = "checked='checked'" : ($checkedExcluir = ""); $resultIncluir = $_acoesModel->incluirAtivo($dados['CO_ACAO']); $resultIncluir == true ? $checkedIncluir = "checked='checked'" : ($checkedIncluir = ""); $html .= "<tr>"; $html .= "<td>" . $dados['CO_MODULO'] . "</td>"; $html .= "<td><div title='" . $dados['DS_MODULO'] . "' id='" . $dados['CO_MODULO'] . "'>" . $caminho . "<strong>" . $dados['NO_MODULO'] . "</strong></div></td>"; $html .= "<td align='center'><input type='checkbox' " . $checkedEditar . " name='acao_editar[]' id='acao_editar' value='" . $dados['CO_ACAO'] . "' /></td>"; $html .= "<td align='center'><input type='checkbox' " . $checkedExcluir . " name='acao_excluir[]' id='acao_excluir' value='" . $dados['CO_ACAO'] . "' /></td>"; $html .= "<td align='center'><input type='checkbox' " . $checkedIncluir . " name='acao_incluir[]' id='acao_incluir' value='" . $dados['CO_ACAO'] . "' /></td>"; $html .= "</tr>";