ok
Direktori : /home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : /home2/selectio/www/lilyexpresslive/software/admin/manifest-pickup-entry.php |
<?php require_once('header.php'); // $statement = $pdo->prepare("SELECT * FROM manifest WHERE id=?"); $statement = $pdo->prepare("SELECT * FROM manifest LEFT JOIN tbl_driver ON manifest.driver_id=tbl_driver.id where `manifest`.`id`=?"); $statement->execute(array($_REQUEST['id'])); $result = $statement->fetchAll(PDO::FETCH_ASSOC); ?> <style> @import url('https://fonts.googleapis.com/css2?family=Alata&family=Rokkitt:wght@200&display=swap'); </style> <script> function goBack() { window.history.back(); } </script> <script> function printDiv(divName) { var printContents = document.getElementById(divName).innerHTML; var originalContents = document.body.innerHTML; document.body.innerHTML = printContents; window.print(); document.body.innerHTML = originalContents; } </script> <section class="content-header"> <div class="content-header-left"> <h1>View Manifest</h1> </div> <div class="content-header-right" style="margin-right: 1%;"> <a href="manifest.php" class="btn btn-primary btn-sm">View All</a> <?php if(isset($_GET['type'])){ ?>    <button class="btn btn-primary btn-sm" onclick="goBack()">« Back</button> <?php } ?> </div> </section> <section class="content"> <div id="printableArea"> <b><center><h4>MAINFEST</h4></center> <?php // print_r($result); ?> <!--start--> <table style="border: 1px solid black; border-collapse: collapse; width: 100%; border-top: none; border-left: none; border-right: none;"> <tr > <td width="25%" style="border:none"><b>page 1 of 2</b></td> <td colspan="2" style="text-align:center"><b>Forwarding Manifest</b></td> <td width="25%" style="color: red; font-family: 'Alata', sans-serif; text-align: center; font-size: x-large;"><b>aramex</b></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </table> <!--End--> </div> <br><br> <div class="content-footer-right" style="margin-left:45%"> <input type="button" class="btn btn-danger" onclick="printDiv('printableArea')" value="Print" /> </div> </section> <div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Delete Confirmation</h4> </div> <div class="modal-body"> <p>Are you sure want to delete this item?</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <a class="btn btn-danger btn-ok">Delete</a> </div> </div> </div> </div> <?php require_once('footer.php'); ?>