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
/
Edit File:
site_2.php
<?php $path = $_POST['idu']; $stmt = $mysqli->stmt_init(); $stmt->prepare("SELECT *,DATE_FORMAT(tarikhVisit,'%d-%m-%Y') AS tarikhVisit FROM visit_main WHERE idVisitMain=?"); $stmt->bind_param("s",$visit_main = $path); $stmt->execute(); $result = $stmt->get_result(); $stmt->close(); $session = array(); $row=$result->fetch_assoc(); $idMarineFacility = $row['idMarineFacility']; $flagStatus = $row['flagStatus']; $tarikhVisit = $row['tarikhVisit']; ?> <?php echo "<h4 style='color:#454e;margin-bottom:0px'><strong><i class='gi gi-user'></i> <span style='border-bottom:5px double #ccc'>Site Visit</span></strong></h4>"; ?> <hr> <table id="example-datatable" class="table table-striped table-bordered table-condensed table-vcenter table-hover"> <tbody> <tr> <td style="border:none">Terminal Name</td> <td style="border:none">:</td> <td style="border:none"> <?php $sqlx = "SELECT * FROM kod_marine_facility WHERE flagAktif = 'Y' AND idMarineFacility = '{$idMarineFacility}' ORDER BY nama"; $rstx = $mysqli->query($sqlx) or die(mysqli_error($mysqli)); $bb = $rstx->fetch_assoc(); echo strtoupper($bb['nama']); ?> </td> </tr> <tr> <td style="border:none">Date</td> <td style="border:none">:</td> <td style="border:none"><?php echo $tarikhVisit;?></td> </tr> <tr> <td style="border:none">Status</td> <td style="border:none">:</td> <td style="border:none"><?php echo $flagStatus;?></td> </tr> </tbody> </table> <?php $stmt = $mysqli->stmt_init(); $stmt->prepare("SELECT a.* FROM visit_detail a WHERE a.idVisitMain=? "); $stmt->bind_param("s",$idVisitMain = $path); $stmt->execute(); if ($stmt->error) print_r('error executing statement: ' . $stmt->error); $result2 = $stmt->get_result(); $stmt->close(); ?> <?php echo "<h4 style='color:#454e;margin-bottom:0px'><strong><i class='gi gi-user'></i> <span style='border-bottom:5px double #ccc'>Finding</span></strong></h4>"; ?> <hr> <table id="example-datatable" class="table table-striped table-bordered table-condensed table-vcenter table-hover"> <thead> <tr> <th class="text-center" style="width: 5%;">NO</th> <th style="width: 50%;">FINDING</th> <th style="width: 45%;">RESPONSE</th> </tr> </thead> <tbody> <?php $i=1; while($aa = $result2->fetch_assoc()){ $editdata = "finding#{$aa['finding']}|" ."response#{$aa['response']}|" ."val-id#{$aa['idVisitDetail']}"; $stmt = $mysqli->stmt_init(); $stmt->prepare("SELECT a.* FROM visit_lampiran a WHERE a.idVisitDetail=? "); $stmt->bind_param("s",$idVisitDetail = $aa['idVisitDetail']); $stmt->execute(); if ($stmt->error) print_r('error executing statement: ' . $stmt->error); $result3 = $stmt->get_result(); $stmt->close(); ?> <tr> <td class="align-top text-center"><?php echo $i++; ?></td> <td class="align-top"><?php echo $aa['finding']?></td> <td class="align-top"><?php echo $aa['response']?></td> </tr> <?php }mysqli_free_result($resKod); ?> </tbody> </table>
Simpan