? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/sec/application/views/report/xlsbusinesssummaryreport.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$html = '';
if ($view != 'view') {    
    $border = "";
$html .= '<html><head><body>';
$html.='<table width="100%" >
        <tr><td colspan="2"></td><td align="right"><img src="' . base_url() . 'assets/img/logo.jpg" style="float:right;width:200px;"/></td>
        <tr><td colspan="3" style="font-size:16px;" align="center"><b><u>' . $postdata['report_name'] . '</u></b></td></tr>
          
        <tr><td colspan="3">Printout Date : ' . date('d-m-Y') . ', ' . date('h:i:s a') . '</td></tr>
        </table><br><br>';
$html.='<hr>';
}else { 
    $html.="
    <div style='width: 100%;border:1px solid #e4e4e4;padding:2px;
height: auto;
overflow-x: scroll;'>
";
}
if($view!='xls'){
    $border = "border='1'";
}
$html.='<table  '.$border.'  cellspacing="10px" class="sort" cellpading="15px"  style="width:95%;text-align:left" >
        <thead>
        <tr><th style="text-align:left" bgcolor="#7FCEFF">Sl No</th>
       <th style="text-align:left" bgcolor="#7FCEFF">Course</th>
        <th style="text-align:left" bgcolor="#7FCEFF">Batch Code</th>
        <th style="text-align:left" bgcolor="#7FCEFF">Teacher</th>
        <th style="text-align:left" bgcolor="#7FCEFF">No of students</th>
        <th style="text-align:center" bgcolor="#7FCEFF" colspan=4>Course Fee</th>
        <th style="text-align:center" bgcolor="#7FCEFF" colspan=4>Collected Fee</th>
        <th style="text-align:center" bgcolor="#7FCEFF"colspan=4>Pending Fee</th>';

$html.='</tr><tr><th style="text-align:left" bgcolor="#7FCEFF" colspan=5 ></th>      
        <th style="text-align:left" bgcolor="#7FCEFF">Reg Fee </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Course Fee </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Extra Class </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Books</th><th style="text-align:left" bgcolor="#7FCEFF">Reg Fee </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Course Fee </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Extra Class </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Books</th><th style="text-align:left" bgcolor="#7FCEFF">Reg Fee </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Course Fee </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Extra Class </th>
        <th style="text-align:left" bgcolor="#7FCEFF">Books</th></tr>
        </thead>
        <tbody>';
$sl = 1;
$i = 1;
$j = 1;
//$rowspan = "";

$total_fees = '';
$date = date("d-m-Y");
$total_student = 0;
$total_reg_fee = 0;
$total_course_fee = 0;
$total_extra_fee = 0;
$total_books_fee = 0;
$total_reg_fee_paid = 0;
$total_course_fee_paid = 0;
$total_extra_fee_paid = 0;
$total_books_fee_paid = 0;
$total_pending_reg_fee = 0;
$total_pending_course_fee = 0;
$total_pending_extra_fee = 0;
$total_pending_books_fee = 0;
$row_course = '';

$rowspan = 0;


$row_course = "";
foreach ($report['result'] as $course) 
{
    $no_sessions = $course['no_sessions'];
//    $attendance = $this->mastermodel->get_attendance_student_batch_id($course['studentid'], $this->mastermodel->convertdateformat($course['date']),$course['current_batch_id']);
//
//     if (!empty($attendance))
//        {
//            $att_date = $attendance[0];
//            $date = $att_date->attendance_date;
//            $increment = 0;
//            if ($no_sessions > 0)
//            {
//                while ($increment < count($attendance))
//                {
//                    $date = $attendance[$increment]->attendance_date;
//
//                    $course_fee_row = $this->mastermodel->get_student_course_fee_on_date($date, $course['studentbatchid']);
//                    if (!empty($course_fee_row) && $course_fee_row != '')
//                    {
//                        $scf_course_fee += $course_fee_row->scf_course_fee;
//                    }
//                    $increment += $no_sessions;
//                }
//            } 
//            else
//            {
//                $course_fee_row = $this->mastermodel->get_student_course_fee_on_date($date, $course['studentbatchid']);
//                if (!empty($course_fee_row) && $course_fee_row != '')
//                {
//                    $scf_course_fee += $course_fee_row->scf_course_fee;
//                }
//            }
//        }
   
//    $scf_course_fee = 0;
//    $course_fee_row = $this->mastermodel->get_student_course_fee_on_date(date("Y-m-d"), $course['studentbatchid']);
//    if (!empty($course_fee_row) && $course_fee_row != '')
//    {
//        $scf_course_fee = $course_fee_row->scf_course_fee;
//    }
    $scf_course_fee = $course['course_fee_total'];
//    $scf_course_fee = $course['course_fee'];
    $fee= $this->reportmodel->get_paid_fee_details($course['batch'],$student_type);  
    $extra_class_fee = $this->mastermodel->get_data_joined('extra_class', 'extra_class_details', 'extra_class_id', 'extra_class_id', $course['batch'], 'batch_id');
    $extra_fee = 0;
    if (sizeof($extra_class_fee) > 0) {
        
        foreach ($extra_class_fee as $row) {
            
            $extra_fee+=$row['extra_fee_amount'];
        }
    }
    $pending_reg_fee = $course['registration_fee']  - $fee['reg_fee_paid'];
    $pending_course_fee =$scf_course_fee - $fee['course_paid_fee'];
    $pending_extra_fee = $extra_fee - $fee['extra_fee_paid'];
    $pending_books_fee = $course['books_fee'] - $fee['books_fee_paid'];
    $teacher_name=$this->mastermodel->get_teacher_batch($course['batch'],date("Y-m-d")); 
    if(!empty($teacher_name))
        $teacher= $teacher_name->employee_name;
    else
        $teacher='';
   //  echo $teacher;
    $rowspan++;
    
    
        
    $html .= '<tr >'; 
    
    if($row_course != $course['course_id']){
    $html.='<td rowspan="'.$report[$course['course_id']].'">' . $i++ . '</td>
        <td rowspan="'.$report[$course['course_id']].'">' . $course['course_name'] . '</td>';

    }
    $html.='<td style="font-weight:normal;">' . $course['batch_no'] . '</td>';
    $html.='<td>' . $teacher . '</td>';
    
    $html.='<td style="text-align:right">' . $course['student_count1'] . '</td>';
    $html.='<td style="text-align:right">' . $course['registration_fee'] . '</td>';
    $html.='<td style="text-align:right">' .$scf_course_fee. '</td>';
    $html.='<td style="text-align:right">'.$extra_fee.'</td>';
    $html.='<td style="text-align:right">' . $course['books_fee'] . '</td>
          <td style="text-align:right"> ' . $fee['reg_fee_paid'] . '</td>
          <td style="text-align:right">' . $fee['course_paid_fee'] . '</td>
          <td style="text-align:right">' . $fee['extra_fee_paid'] . '</td>
          <td style="text-align:right">' . $fee['books_fee_paid'] . '</td>

        <td style="text-align:right" >' . $pending_reg_fee . '</td>
        <td style="text-align:right">' . $pending_course_fee . '</td>
        <td style="text-align:right">' . $pending_extra_fee . '</td>
        <td style="text-align:right">' . $pending_books_fee . '</td>';
    
        $html.= '</tr>';
    
     $total_reg_fee+=$course['registration_fee'];
    $total_course_fee+=$scf_course_fee;
    $total_extra_fee+=$extra_fee;
    $total_books_fee+=$course['books_fee'];

    $total_reg_fee_paid+=$fee['reg_fee_paid'];
    $total_course_fee_paid+=$fee['course_paid_fee'];
    $total_extra_fee_paid+=$fee['extra_fee_paid'];
    $total_books_fee_paid+=$fee['books_fee_paid'];

    $total_pending_reg_fee+=$pending_reg_fee;
    $total_pending_course_fee+=$pending_course_fee;
    $total_pending_extra_fee+=$pending_extra_fee;
    $total_pending_books_fee+=$pending_books_fee;
    $row_course = $course['course_id'];
    $total_student+=$course['student_count1'];
}





$html.='<tr><td colspan=4 style="text-align:right" ><b>Total</b></td>
                <td style="text-align:right"><b>' . $total_student . '</b></td> 
                <td style="text-align:right"><b>' . number_format($total_reg_fee, 2) . '</b></td>
                <td style="text-align:right" ><b>' . number_format($total_course_fee, 2) . '</b></td>
                <td style="text-align:right"><b>' . number_format($total_extra_fee, 2) . '</b></td>
               <td style="text-align:right" ><b>' . number_format($total_books_fee, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_reg_fee_paid, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_course_fee_paid, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_extra_fee_paid, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_books_fee_paid , 2). '</b></td>
               <td style="text-align:right"><b>' . number_format($total_pending_reg_fee, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_pending_course_fee, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_pending_extra_fee, 2) . '</b></td>
               <td style="text-align:right"><b>' . number_format($total_pending_books_fee, 2) . '</b></td>
               </tr>
               </tbody></table>';
$html.='<hr>';

if ($view == 'view') {
    $html.="</div>";
    echo $html;
} else {
$html.='</body></html>';
$filename = $postdata['report_name'];
if ($view == 'xls') {
        header("Content-type: application/octet-stream");
        header("Content-Disposition: attachment; filename=" . $filename . ".xls");
        header("Pragma: no-cache");
        header("Expires: 0");
    }
    if ($view == 'pdf') {
        pdf_create($html, 'BusinessSummary');
    }
    print $html;
    exit;
}
?>

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