$nome = $_POST["txtNome"];
    $telefone = $_POST["txtTelefone"];
    $dtaAdmissao = $_POST["dtaAdmissao"];
    $perfil = $_POST["cbPerfil"];
    if ($nome == "" || $telefone == "" || $bairro == "" || $estado == "0" || $cidade == "") {
        echo "Preencha as informações corretamente.";
        exit;
    } else {
        if ($id != "") {
            $SQL = "UPDATE principal_usuarios SET nome = '" . $nome . "', telefone = '" . $telefone . "', dtaAdmissao = '" . $dtaAdmissao . "', perfil = " . $perfil . " WHERE clientes_id = " . $id;
        } else {
            $SQL = "INSERT INTO principal_usuarios (nome, telefone, perfil, data_admissao) VALUES('" . $nome . "', '" . $telefone . "', '" . $perfil . "', " . $dtaAdmissao . ")";
        }
        $connect->conectar();
        $connect->set("sql", $SQL);
        $retorno = $connect->executar();
        if ($retorno > 0) {
            echo "<script>alert('Cliente atualizado/inserido com sucesso.');</script>";
            echo "<script>window.location = 'colaboradores.php';</script>";
        } else {
            echo "<script>alert('Erro ao atualizar/inserir o cliente.');</script>";
        }
    }
}
?>

<!DOCTYPE html>
<html lang="pt-br">

    <head>
        <meta charset="utf-8">
                                    <table id="tabela1" class="table table-bordered table-striped">
                                        <thead>
                                            <tr>
                                                <th style="width: 50%;">Nome</th>
                                                <th style="width: 10%;">Tipo</th>
                                                <th style="width: 16%;">Data Inicio</th>
                                                <th style="width: 16%;">Data Fim</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                                <?php 
$connect = new conexao();
$connect->conectar();
$SQL = "SELECT opor.oportunidade_id AS id, \n                                                                                        opor.nome AS nome,\n                                                                                        opor.tipo_oportunidades AS tipo,\n                                                                                        opor.dta_inicio AS dtaInicio,\n                                                                                        opor.dta_fim AS dtaFim\n                                                                                FROM principal_oportunidades AS opor\n                                                                                ORDER BY opor.nome ASC";
$connect->set("sql", $SQL);
$lista = $connect->executar();
while ($oportunidades = mysql_fetch_object($lista)) {
    ?>
                                                <tr>
                                                    <td>
                                                        <a href="cadastroOportunidades.php?id=<?php 
    echo $oportunidades->id;
    ?>
">
                                                            <?php 
    echo $oportunidades->nome;
    ?>
                                                        </a>
                                                    </td>
                                                    <td>
                                                        <?php