? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Report/

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/drafthr/system/application/views/Report/plastfwisepdf.php

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



 if($fromdate == '')
            $fromdate = 'fromdate';
        if($todate=='')
            $todate = 'todate';


$string = "";
if ($fromdate != 'fromdate')
$string.=" -from $fromdate to $todate";

if($cover_id=='')
    $cover_id=='cover_id';

if(!$company)
    $loggo='default_header.jpg';
else
{
         foreach($company as $company)
{
    $loggo=$company['filename'];
    //echo $loggo;
}
}
 $i=1;
 $cvrid='unknown';
        $incr =0;
        $cctot=0;
        $actot=0;
        $nettot=0;
        $gptot=0;

        $brcctot=0;
        $bractot=0;
        $brnettot=0;
        $brgptot=0;
  $col_names  = array('col1' => 'Sl No','col2' => 'Type','col3' => 'Effective Date','col4' => 'Quotation Ref No','col6' => 'Insured/Policy No','col7' => 'Insurer','col8' => 'Gross Premium','col9' => 'Brokerage Commission', 'col10' => 'Agent Commission','col11'=>'Net Premium');


    $this->cezpdf->cezpdf('a4', 'landscape');
    $this->cezpdf->ezSetMargins(0,0,10,150);
    $image=base_url() .'/logo/'.$loggo;
    $this->cezpdf->ezImage($image,'0','150','','left','');
    $this->cezpdf->ezSetMargins(0,0,30,30);
    $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$search,'id');
    $branchname = $this->mastermodel->get_newbranchname($search);
//$db_data2[] = array('Col1' => 'Name','Col2' => $stf->name,'Col3' => '','Col4' => '','Col5' => '','Col6' => '');
//                 $db_data2[] = array('Col1' => 'No','Col2' => $stf->employeeid,'Col3' => '','Col4' => '','Col5' => '','Col6' => '');
//
//                 $db_data2[] = array('Col1' => 'Branch','Col2' => $branchname,'Col3' => '','Col4' => '','Col5' => '','Col6' => '');
//                $db_data2[] = array('Col1' => '','Col2' => '','Col3' => '','Col4' => '','Col5' => '','Col6' => '');
//		$col_names2 = array(
//			'Col1' => '',
//			'Col2' => '',
//			'Col3' => '',
//                    'Col4' => '',
//                    'Col5' => '',
//                    'Col6' => ''
//		);
//                $this->cezpdf->ezTable($db_data2, $col_names2,'', array('width'=>700, 'shaded'=>0,'cols'=>0,'showLines'=> 0 ));


    $this->cezpdf->ezText('Name: '.$stf->name,13);
    $this->cezpdf->ezText('Code: '.$stf->employeeid,13);
    $this->cezpdf->ezText('Branch: '.$branchname,13);

    $opt=array('justification' => 'center');
    $this->cezpdf->ezText('Placing Slip Report  -'.$stf->name.$string,15,$opt);
    $this->cezpdf->ezText('');


    if($viewinfo)
{

foreach($viewinfo as $updata)
{
 $incr++;
$comp=$this->mastermodel->get_data_srow('insurance_company',$updata['insurance_company_id'],'id');

$type=$this->customermodel->getSingleFieldValue('customers','type','id',$updata['customer_id']);
	      if($type=="Individual")
	      {
                  $cus=$this->mastermodel->get_data_srow('customer_personal_ind',$updata['customer_id'],'customer_id');
              }
              else {
                   $cus=$this->mastermodel->get_data_srow('customer_corp_info',$updata['customer_id'],'customer_id');
              }


               if($updata['cover_id']!=$cvrid && $incr!=1)
        {
            $i=1;
            $cov=$this->mastermodel->get_data_srow('covers',$cvrid,'id');
            $this->cezpdf->ezSetMargins(20,20,30,30);
            $this->cezpdf->ezText('Cover: '. $cov->cover,14);
            $this->cezpdf->ezText('');
            $db_data1[] = array('col1' => '','col2' =>'','col3' =>'','col4' => '','col5' => '','col6' => '','col7' => '','col8' => '','col9' => '', 'col10' => '','col11' => '');
            $db_data1[] = array('col1' => '','col2' =>'','col3' =>'','col4' => '','col5' => '','col6' => '','col7' => 'Total ('.$updata['currencycode'].')','col8' =>number_format($gptot, 2, '.', ','),'col9' => number_format($cctot, 2, '.', ','), 'col10' => number_format($actot, 2, '.', ','),'col11' =>number_format($nettot, 2, '.', ','));
             $this->cezpdf->ezTable($db_data1, $col_names, '', array('showHeadings'=>1,'width'=>800, 'shaded'=>1,'cols'=>0,'showLines'=> 1 ));
            $cctot=0;
            $actot=0;
            $nettot=0;
            $gptot=0;

            $db_data1="";
        }



        $bc=(($updata['premium']*$updata['brokerage'])/100);
        $ac=(($updata['premium']*$updata['percentage'])/100);
        $cc=$bc-$ac;
        $net=($updata['premium']- ($bc));
        $net=($updata['premium']- ($bc));
        $gp= $updata['premium'];
        $cctot+=$cc;
        $actot+=$ac;
        $nettot+=$net;
        $gptot+=$gp;
        $brcctot+=$cc;
        $bractot+=$ac;
        $brnettot+=$net;
        $brgptot+=$gp;
        $this->cezpdf->ezSetMargins(20,20,30,30);
        $cov=$this->mastermodel->get_data_srow('covers',$updata['cover_id'],'id');

    $db_data1[] = array('col1' => $i++,'col2' =>$updata['typeof_policy'],'col3' => $this->mastermodel->convdatformat($updata['fromdate']),'col4' => $updata['quotation_ref'],'col6' => $cus->insured.'/'.$updata['policyno'],'col7' => $comp->company_name,'col8' => number_format($updata['premium'], 2, '.', ','),'col9' => number_format($cc, 2, '.', ','), 'col10' => number_format($ac, 2, '.', ','),'col11' => number_format($net, 2, '.', ','));
    $cvrid=$updata['cover_id'];

}




    $db_data1[] = array('col1' => '','col2' =>'','col3' =>'','col4' => '','col5' => '','col6' => '','col7' => '','col8' => '','col9' => '', 'col10' => '','col11' => '');
    $db_data1[] = array('col1' => '','col2' =>'','col3' =>'','col4' => '','col5' => '','col6' => '','col7' => 'Total ('.$updata['currencycode'].')','col8' =>number_format($gptot, 2, '.', ','),'col9' => number_format($cctot, 2, '.', ','), 'col10' =>number_format($actot, 2, '.', ','),'col11' => number_format($nettot, 2, '.', ','));
    $db_data1[] = array('col1' => '','col2' =>'','col3' =>'','col4' => '','col5' => '','col6' => '','col7' => 'Gross Total ('.$updata['currencycode'].')','col8' =>number_format($brgptot, 2, '.', ','),'col9' =>number_format($brcctot, 2, '.', ',') , 'col10' => number_format($bractot, 2, '.', ','),'col11' => number_format($brnettot, 2, '.', ','));
    $cov=$this->mastermodel->get_data_srow('covers',$cvrid,'id');
    $this->cezpdf->ezText('');
    $this->cezpdf->ezText('');
    $this->cezpdf->ezSetMargins(20,20,30,30);
    $this->cezpdf->ezText('Cover: '. $cov->cover,14);
    $this->cezpdf->ezText('');
    $this->cezpdf->ezTable($db_data1, $col_names, '', array('showHeadings'=>1,'width'=>800, 'shaded'=>1,'cols'=>0,'showLines'=> 1 ));



}
$footer = $this->cezpdf->openObject(); $company=$this->mastermodel->get_data_srow('mycompany','1','id'); $this->cezpdf->addText(20, 10, 8, $company->company); $this->cezpdf->addText(710, 10, 8, $company->website);  $this->cezpdf->line(0,20,900,20); $this->cezpdf->closeObject(); $this->cezpdf->addObject($footer, "all");  $this->cezpdf->ezStream();
?>


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