!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/admin/contas/   drwxr-xr-x
Free 9.43 GB of 93.48 GB (10.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     conta_pagamentos_liberados.php (10.63 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
// Includes
    
include("../../config/config.php");
    include(
INCLUDES "inc_Funcoes.php");
    include(
INCLUDES "inc_Conexao.php");
    include(
INCLUDES "valida_usuario.inc.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Description" content="IRPEN">
    <meta name="Keywords" content="">
    <meta name="resource-type" content="document">
    <meta name="classification" content="Internet">
    <meta name="robots" content="all">
    <meta name="rating" content="General">
    <meta name="Author" content="Ninart! Solucoes para Web.">
    <meta name="language" content="pt-br">
    <link rel="shortcut icon" href="imagens/favicon.gif"type="image/gif">
    <link rel="stylesheet" href="<?=  HOST;?>css/irpen.css" type="text/css" />
    <link rel="stylesheet" media="all" type="text/css" href="<?=  HOST;?>css/menu_dropline.css" />
    <!--[if IE]>
    <link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie.css" />
    <![endif]-->
    <!--[if lt IE 7]>
        <link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie6.css" />
    <![endif]-->
    <title>IRPEN | Instituto de Registro Civil de Pessoas Naturais do Paraná - 2008</title>
    <script type="text/javascript" src="<?=  HOST;?>includes/jquery.js"></script>
    <script type="text/javascript" src="<?=  HOST;?>includes/funcoes.js"></script>
    <script type="text/javascript">
    function validaSubmit(f) {
        var contaMarcado = 0;

        $(".chkBox"+f).each(function(){
            if (this.checked == true)
                contaMarcado++;
        });

        if (contaMarcado == 0) {
            alert('Selecione ao menos uma conta antes de confirmar!');
            return false;
        }
        /*
        if ($('#arquivo'+f).val() == '') {
            alert('Selecione a imagem do comprovante de pagamento antes de confirmar!');
            return false;
        }
        */
        if ($('#dtPagamento'+f).val() == '') {
            alert('Informe a data de pagamento!');
            return false;
        }
        return true;
    }
    </script>
<!--
.style1 {
    color: #666666;
    font-weight: bold;
}
-->
</style>
</head>
<body>
    <div id="wrap">

        <?php include "../topo_gestao.php";?>

        <!-- content-wrap starts -->
        <div id="content-wrap">
            <table width="100%" border="0">
                <tr><!--
                    <td align="left" valign="top" width="20%">
                        <?
                            
//Menu do site
                            //include(DIR_ADMIN . "menu_gestao.php");
                        
?>
                    </td>
                    <td align="left" valign="top" bgcolor="#cccccc">&nbsp;
                    </td>-->
                    <td align="left" valign="top" bgcolor="#FFFFFF" width="1%">&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <table width="100%" border="0" >
                            <tr>
                                <td align="left" valign="top">
                                    <h2>Pagamentos Enviados ao Banco</h2>
                                    <div id="linha_h2" >
                                    </div>
                                    <div id="corpo">
<br /><br />
<?php
    $sqlContas
="
      SELECT CON_RowID,ACO_RowID,CON_Valor,FOR_Nome,CON_DataVencimento,
             (
              SELECT DATE_FORMAT(RSA_DataHoraAssinatura, '%Y-%m-%d')
                FROM FUN_PagamentoSinteticoAssinado
               WHERE RSA_ArquivoAssinado_DR = ACO_RowID
               ORDER BY RSA_RowID DESC
               LIMIT 1
             ) AS DataAssinatura
        FROM FUN_ArquivoAssinadoContas
       INNER JOIN FUN_ContasInternas ON CON_ArquivoAssinado_DR = ACO_RowID
       INNER JOIN FUN_Fornecedores ON FOR_RowID = CON_Fornecedor_DR
       WHERE CON_PagoSN = 'N'
         AND ACO_SituacaoLB = 'L'
    "
;
    if(
$_GET['txtFornecedor']!="") {
        
$sqlContas.=" AND FOR_Nome like '%".$_GET['txtFornecedor']."%'";
    }
    if(
$_GET['txtHistorico']!="") {
        
$sqlContas.=" AND CON_Historico like '%".$_GET['txtHistorico']."%'";
    }
    if(
$_GET['txtData']!="") {
        
$sqlContas.=" AND date_format(CON_DataVencimento,'%d/%m/%Y') = '".$_GET['txtData']."'";
    }
    if(
$_GET['txtMes']!="") {
        
$sqlContas.=" AND date_format(CON_DataVencimento,'%m/%Y') = '".$_GET['txtMes']."'";
    }
    
$sqlContas.=" ORDER BY CON_DataVencimento,FOR_Nome DESC";

    
$contas executa($sqlContas);

    if (!empty(
$contas)) {
        
?>
    <table align="center" class="tabela2" width="70%">
        <tr><td height="20" colspan="4"><strong>Contas Assinadas Digitalmente</strong></td></tr>
        <tr bgcolor="#CCCCCC">
            <th width="120">Data de Vencimento</th>
        <th width="300">Fornecedor</th>
        <th width="100">Valor</th>
            <th width="50">Detalhar</th>
        </tr>
        <?php foreach($contas as $contas) { ?>
        <tr>
            <td align="center"><?= arrumaData($contas['CON_DataVencimento'],'mostra')?></td>
            <td align="left"><?= $contas['FOR_Nome']?></td>
            <td>
                <div style="float:left; width:15px;">R$</div>
                <div style="float:left; width:75px; text-align:right;"><?= number_format($contas['CON_Valor'],2,',','.')?></div>
            </td>
            <td align="center"><a href="conta_pagamentos_detalhes.php?idCont=<?= $contas['CON_RowID']?>&id=<?= $contas['ACO_RowID']?>"><img src="../imagens/icones/lupa.gif" border="0" alt="Editar" /></a></td>
        </tr>
        <?php
            $valor1
+=$contas['CON_Valor'];
        }
        
?>
        </table>
        <table align="center" class="tabela2" width="70%">
            <tr>
                <td height="20" width="85%" align="right"><strong>Valor Total:&nbsp;</strong></td>
                <td align="left"><strong>R$ <?= number_format($valor1,2,',','.')?></strong></td>
            </tr>
        </table>

        <?php
    
} else {
        
$msg1 'Não existem contas pendentes de pagamento';
    }

    
//listagem das contas que não passam por assinatura mas devem estar pendentes para posterior informação da data de pagamento
    
$sqlOutras "
        SELECT CON_RowID,CON_DataVencimento,CON_Valor,FOR_Nome
          FROM FUN_ContasInternas
         INNER JOIN FUN_Fornecedores ON FOR_RowID = CON_Fornecedor_DR
         WHERE CON_TipoPagamento_DR in (2,4)
           AND CON_AtivoSN = 'S'
           AND CON_PagoSN = 'N'
    "
;
    if(
$_GET['txtFornecedor']!="") {
        
$sqlOutras.=" AND FOR_Nome like '%".$_GET['txtFornecedor']."%'";
    }
    if(
$_GET['txtHistorico']!="") {
        
$sqlOutras.=" AND CON_Historico like '%".$_GET['txtHistorico']."$'";
    }
    if(
$_GET['txtData']!="") {
        
$sqlOutras.=" AND date_format(CON_DataVencimento,'%d/%m/%Y') = '".$_GET['txtData']."'";
    }
    if(
$_GET['txtMes']!="") {
        
$sqlOutras.=" AND date_format(CON_DataVencimento,'%m/%Y') = '".$_GET['txtMes']."'";
    }
    
$sqlOutras.= "
        UNION
         SELECT CON_RowID,CON_DataVencimento,CON_Valor,FOR_Nome
          FROM FUN_ContasInternas
         INNER JOIN FUN_Fornecedores ON FOR_RowID = CON_Fornecedor_DR
         WHERE CON_TipoPagamento_DR = 3
           AND CON_ModDebito = 4
           AND CON_AtivoSN = 'S'
           AND CON_PagoSN = 'N'
    "
;
    if(
$_GET['txtFornecedor']!="") {
        
$sqlOutras.=" AND FOR_Nome like '%".$_GET['txtFornecedor']."%'";
    }
    if(
$_GET['txtHistorico']!="") {
        
$sqlOutras.=" AND CON_Historico like '%".$_GET['txtHistorico']."$'";
    }
    if(
$_GET['txtData']!="") {
        
$sqlOutras.=" AND date_format(CON_DataVencimento,'%d/%m/%Y') = '".$_GET['txtData']."'";
    }
    if(
$_GET['txtMes']!="") {
        
$sqlOutras.=" AND date_format(CON_DataVencimento,'%m/%Y') = '".$_GET['txtMes']."'";
    }
    
$sqlOutras.= " ORDER BY CON_DataVencimento, CON_RowID";

    
//echo "<pre>".$sqlOutras."</pre>";

    
$rsOutras executa($sqlOutras);
    if (empty(
$rsOutras)) {
        
$msg2 'Não existem contas pendentes de pagamento';
    } else {
        
?>
        <br />
        <table align="center" class="tabela2" width="80%">
            <!--tr>
              <td height="20" colspan="4"><strong>Contas Pendentes - Ita&uacute;</strong></td>
            </tr-->
            <tr><td height="20" colspan="4"><strong>Contas &agrave; Vista</strong></td></tr>
            <tr bgcolor="#CCCCCC">
                <th width="120" height="20">Data de Vencimento</th>
                <th width="300">Fornecedor</th>
                <th width="100">Valor</th>
                <th width="50">Detalhar</th>
            </tr>
        <?php
        
foreach($rsOutras as $rsOutras) {
            
extract($rsOutras);
            
?>
            <tr>
                <td align="center"><?= arrumaData($CON_DataVencimento,'mostra')?></td>
                <td align="left"><?= $FOR_Nome?></td>
                <td align="center"><?= $CON_Valor?></td>
                <td align="center"><a href="conta_pagamentos_detalhes.php?idCont=<?= $CON_RowID?>"><img src="../imagens/icones/lupa.gif" border="0" alt="Detalhar" /></a></td>
            </tr>
            <?php
            $valor2
+=$CON_Valor;
        }
        
?>
        </table>
        <table align="center" class="tabela2" width="70%">
            <tr>
                <td height="20" width="85%" align="right"><strong>Valor Total:&nbsp;</strong></td>
                <td align="left"><strong>R$ <?= number_format($valor2,2,',','.')?></strong></td>
            </tr>
        </table>
        <?php
    
}
//}

if((!$msg1)||(!$msg2)) {
     
?>

     <br />
     <table align="center" class="tabela2" width="70%">
        <tr>
            <td height="20" width="84%" align="right"><strong>Valor Total Geral:&nbsp;</strong></td>
            <td align="left"><strong>R$ <?= number_format(($valor2+$valor1),2,',','.')?></strong></td>
        </tr>
     </table>
<?php
} else
    echo 
'<p style="color:#F00; font-weight:bold; text-align:center; font-size:14px;">'.$msg1.'</p>';
?>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </td>
                </tr>
            </table>
        </div>
        <div align="center">
            <strong><br />
            Rua Mal. Deodoro, 51 - Galeria Ritz - 18º Andar | Fone: (41) 3232-9811 | CEP 80.020-905 - Curitiba - Paraná</strong>
            <!-- content-wrap ends-->
        </div>
        <!-- footer starts -->
        <div id="footer-wrap">
        </div>
        <div id="rodape">
        </div>
    </div>
<div id="resultado"></div>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0036 ]--