Beispiel #1
0
    echo "<thead>";
    echo "<tr>";
    echo "<th>ID</th>";
    echo "<th>Nome</th>";
    echo "<th>Arquivo</th>";
    echo "<th>Descrição</th>";
    echo "<th>Observações</th>";
    echo "<th>Aplica-se a</th>";
    echo "<th>Opções</th>";
    echo "</tr>";
    echo "</thead>";
    echo "<tbody>";
    foreach ($aval as $i => $u) {
        echo "<tr id='" . $u->id . "'>";
        echo "<td>" . $u->id . "</td>";
        echo "<td>" . $u->name . "</td>";
        echo "<td>" . $u->filename . "</td>";
        echo "<td>" . $u->description . "</td>";
        echo "<td>" . $u->obs . "</td>";
        echo "<td>" . traduz_role($u->target) . "</td>";
        echo "<td><ul class='view_opcoes'>";
        echo "<li class='op_excluir'><a title='Excluir avaliação' onclick=\"confirmar_delete('" . base_url('avaliacoes/delete/' . $u->id) . "', '" . $u->id . "', '" . $u->name . "')\" href='#'>Excluir</a></li>";
        echo "<li class='op_editaravaliacao'><a title='Editar avaliação' href='" . base_url('avaliacoes/edit/' . $u->id) . "'>Editar avaliacao</a></li>";
        echo "</ul></td>";
        echo "</tr>";
    }
    echo "</table>";
} else {
    echo "<p>Nenhum modelo de avaliação encontrado.</p>";
}
$this->load->view('footer');
Beispiel #2
0
    foreach ($users as $i => $u) {
        if ($u->status == STATUS_ACTIVE) {
            $temp = "<li class='op_inativar'><a title='Inativar usuário' href='" . base_url('usuarios/inativar/' . $u->id) . "'></a></li>";
            $cor = "";
        } else {
            $temp = "<li class='op_ativar'><a title='Ativar usuário' href='" . base_url('usuarios/ativar/' . $u->id) . "'></a></li>";
            $cor = " style='color: #f00;'";
        }
        echo "<tr id='" . $u->id . "'>";
        echo "<td>" . $u->id . "</td>";
        echo "<td {$cor}>" . $u->username . "</td>";
        echo "<td {$cor}>" . strtoupper($u->nome) . "</td>";
        echo "<td>" . $u->crm . "</td>";
        echo "<td>" . $u->matricula_hc . "</td>";
        echo "<td>" . $u->cargo . "</td>";
        echo "<td>" . $u->instituto . "</td>";
        echo "<td>" . $u->funcao . "</td>";
        echo "<td>" . strtoupper(traduz_role($u->role)) . "</td>";
        echo "<td>" . strtoupper(traduz_status($u->status)) . "</td>";
        echo "<td><ul class='view_opcoes'>";
        echo "<li class='op_excluir'><a title='Excluir usuário' onclick=\"confirmar_delete('" . base_url('usuarios/delete/' . $u->id) . "', '" . $u->id . "', '" . strtoupper($u->nome) . "')\" href='#'>Excluir</a></li>";
        echo "<li class='op_credencial'><a title='Alterar credencial do usuário' href='" . base_url('usuarios/credencial/' . $u->id) . "'>Alterar credencial</a></li>";
        echo $temp;
        echo "</ul></td>";
        echo "</tr>";
    }
    echo "</table>";
} else {
    echo "<p>Nenhum usuário encontrado.</p>";
}
$this->load->view('footer');