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_7.php
<?php $combx1 = ""; if(!empty($period=='year')){ $combx1 .= " AND YEAR(b.tarikhApply) = ? "; $param_data['p1'] = $year; } if(!empty($period=='month')){ $combx1 .= " AND DATE_FORMAT(b.tarikhApply,'%m-%Y') = ? "; $param_data['p2'] = $month; } if(!empty($period=='week')){ $combx1 .= " AND (date(b.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 ax.typ, ax.unit, IF(ab.tot IS NULL,0,ab.tot) tot FROM (SELECT 'KG' unit, 'Mass' typ UNION ALL SELECT 'L' unit, 'Volume' typ) ax LEFT JOIN ( SELECT a.unit, sum(a.unit_weight) as tot FROM permohonan_dg a LEFT JOIN permohonan_main b ON b.idPermohonan = a.idPermohonanMain LEFT JOIN kod_weight c ON c.idWeight = a.unit WHERE 1=1 AND b.flagApproveDG = 'Y' {$combx1} GROUP BY a.unit ) ab ON ab.unit = ax.unit "; $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 Tonnage (Dangerous Goods) - <?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%">Type Of Unit</th> <th class="text-center" style="width: 150px !important;width: 20%">Total</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 $aa['typ']." (".$aa['unit'].")";?></td> <td class="align-top text-right"><?php echo $aa['tot']?></td> </tr> <?php } ?> </tbody> </table>