One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
reports
/
View File Name :
declaration_1.php
<?php $combx1 = ""; if(!empty($period=='year')){ $combx1 .= " AND YEAR(a.tarikhApply) = ? "; $param_data['p1'] = $year; } if(!empty($period=='month')){ $combx1 .= " AND DATE_FORMAT(a.tarikhApply,'%m-%Y') = ? "; $param_data['p2'] = $month; } if(!empty($period=='week')){ $combx1 .= " AND (date(a.tarikhApply) BETWEEN STR_TO_DATE(?,'%d-%m-%Y') and STR_TO_DATE(?,'%d-%m-%Y')) "; $param_data['p3'] = $sdate; $param_data['p4'] = $edate; } $sqlx = " SELECT a.*, c.nama AS nama_kapal, sum(1) as tot -- DATE_FORMAT(a.tarikhVisit,'%d-%m-%Y') AS tarikhVisit FROM permohonan_main a LEFT JOIN user_list b on b.idUser = a.idUserApply LEFT JOIN kod_kapal c ON c.idKapal = a.idKapal LEFT JOIN (SELECT idSyarikat,idJenisSyarikat FROM kod_syarikat WHERE idJenisSyarikat=2) d ON d.idSyarikat = c.idSyarikat LEFT JOIN kod_marine_facility e ON e.idMarineFacility = a.idMarineFacility WHERE 1=1 -- AND d.idSyarikat IS NOT NULL AND a.flagApproveMTSO = 'Y' {$combx1} GROUP BY a.idKapal ORDER BY c.nama ASC "; $result2 = mysqli_prepare_all($sqlx,$param_type = "auto",$param_data); $rows_app = $result2->num_rows; if($period == 'year') $report_name = "Yearly Report : {$year}"; else if($period == 'month') $report_name = "Monthly Report : {$month}"; else if($period == 'week') $report_name = "Weekly Report : {$sdate} - {$edate}"; ?> <h4><b>Total Declaration By Vessel - <?php echo $report_name; ?></b></h4> <hr> <table id="example-datatable" class="table table-striped table-bordered table-condensed table-vcenter table-hover no_add_delete"> <thead> <tr> <th class="text-center no_sorting" style="width: 40px !important;width: 5%">No.</th> <th class="text-left" style="width: 75%">Vessel Name</th> <th class="text-center" style="width: 150px !important;width: 20%">Total Declaration</th> </tr> </thead> <tbody> <?php $i=1; while($aa = $result2->fetch_assoc()){ ?> <tr class="<?php echo $tr_class;?>"> <td class="align-top text-right"><?php echo $i++; ?>.</td> <td class="align-top text-left"><?php echo strtoupper($aa['nama_kapal']);?></td> <td class="align-top text-right"><?php echo $aa['tot']?></td> </tr> <?php } ?> </tbody> </table>