File "atenderouvidoria.php"

Full path: /home2/camaradearamari/public_html/cmd/atenderouvidoria.php
File size: 4.49 KiB (4598 bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Back

<?php include('src/View/Layout/main.php');
$protocolo = $_GET['protocolo']; // Assumindo que o valor do protocolo é obtido por meio de uma variável GET
$query = "SELECT * FROM ouvidoria WHERE protocolo = '$protocolo'";
$result = mysqli_query($conn, $query);

while ($row = mysqli_fetch_assoc($result)) {
    $nome = $row['nome_cidadao'];
    $email = $row['email'];
    $cpf = $row['cpf_cnpj'];
    $telefone = $row['telefone_contato'];
    $mensagem = $row['msg'];
    $protocolo = $row['protocolo'];
    $data_cad = $row['data_cad'];
    $email_contato = $row['email'];
}
?>
<main class="content">
    <div class="container-fluid p-0">
        <h1 class="h3 mb-3"><i class="me-3" data-feather="phone"></i>Atendimento da Ouvidoria protocolo N° <?php echo $protocolo; ?> </h1>
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <div class="input-group mb-3">
                            <span class="input-group-text" id="basic-addon1">NOME DO SOLICITANTE</span>
                            <input type="text" class="form-control" placeholder="<?php echo $nome; ?>" value="<?php echo $nome; ?>" aria-label="Nome" aria-describedby="basic-addon1" disabled>
                        </div>

                        <div class="input-group mb-3">
                            <span class="input-group-text" id="basic-addon1">E-MAIL DO SOLICITANTE</span>
                            <input type="text" class="form-control" placeholder="<?php echo $email; ?>" value="<?php echo $email; ?>" aria-label="Email" aria-describedby="basic-addon1" disabled>
                        </div>

                        <div class="input-group mb-3">
                            <span class="input-group-text" id="basic-addon1">CPF/CNPJ</span>
                            <input type="text" class="form-control" placeholder="<?php echo $cpf; ?>" value="<?php echo $cpf; ?>" aria-label="CPF" aria-describedby="basic-addon1" disabled>
                        </div>

                        <div class="input-group mb-3">
                            <span class="input-group-text" id="basic-addon2">TELEFONE</span>
                            <input type="text" class="form-control" placeholder="" aria-label="Telefone" value="<?php echo $telefone; ?>" aria-describedby="basic-addon2" disabled>
                        </div>

                        <div class="input-group mb-3">
                            <span class="input-group-text" id="basic-addon1">MENSAGEM</span>
                            <input type="text" class="form-control" placeholder="<?php echo $status; ?>" value="<?php echo $mensagem; ?>" aria-label="Mensagem" aria-describedby="basic-addon1" disabled>
                        </div>

                        <div class="input-group mb-3">
                            <span class="input-group-text">PROTOCOLO</span>
                            <input type="text" class="form-control" placeholder="<?php echo $protocolo; ?>" value="<?php echo $protocolo; ?>" aria-label="Mensagem" aria-describedby="basic-addon1" disabled>
                        </div>
                        <div class="input-group">
                            <span class="input-group-text">DATA DO CADASTRO</span>
                            <input type="text" class="form-control" placeholder="<?php echo $data_cad; ?>" value="<?php echo $data_cad; ?>" aria-label="Mensagem" aria-describedby="basic-addon1" disabled>
                        </div>
                    </div>
                    <form action="src/Controllers/ouvidoriaController.php" method="post" enctype="multipart/form-data">
                        <div class="input-group ">
                            <span class="input-group-text">Resposta do Atendimento</span>
                            <textarea class="form-control" aria-label="With textarea" placeholder="" name="resposta_msg"></textarea>
                        </div>
                        <input type="hidden" name="email_contato" value="<?php echo $email_contato; ?>">
                        <input type="hidden" name="nome" value="<?php echo $nome; ?>">
                        <input type="hidden" name="protocolo" value="<?php echo $protocolo; ?>">
                        <br>
                </div>
                <center><button class="btn btn-primary" type="submit" value="enviar">SALVAR REGISTROS</button></center>
            </div>
        </div>
    </div>
    </div>
    </div>
</main>

PHP File Manager