ok
Direktori : /home2/selectio/public_html/lilyexpresslive/expense-invoice/ |
Current File : /home2/selectio/public_html/lilyexpresslive/expense-invoice/vendor-invoice-media.php |
<?php include "header.php"; $ids=$_GET['id']; $inv_no=$_GET['inv_no']; $statement = $pdo->prepare("SELECT *,c.name,c.gst,c.mobile,c.address FROM `tbl_vendor_invoice` inv inner JOIN tbl_client c on inv.client_id=c.id where inv.id=".$ids); $statement->execute(); $inv_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <div class="content-wrapper" style='background: white;'> <section class="content-header"> <center> <a href="vendor-invoice-add.php" class="btn btn-success btn-sm "><i class="fa fa-plus-circle"></i> Add Vendor Invoice</a> <a href="vendor-invoice.php" class="btn btn-success btn-sm "><i class="fa fa-plus-circle"></i> Back to List Vendor Invoice</a> <a href="vendor-invoice-payment.php?id=<?=$ids?>&inv_no=<?=$inv_no?>" class="btn btn-info btn-sm "><i class="fa fa-plus-circle"></i> View Payment Information</a> <a href="vendor-invoice-edit.php?id=<?=$ids?>" title="Edit Invoice" class="btn btn-danger btn-sm"><i class="fa fa-edit"></i> Edit Vendor Invoice</a> </center> </section> <section class="content"> <center><a href="vendor-invoice-view-header.php?id=<?=$ids?>&inv_no=<?=$inv_no?>" class="btn btn-info btn-sm "><i class="fa fa-plus-circle"></i> Show With Header Invoice</a> <button class="btn btn-warning btn-sm" onclick="printDiv('printableArea')"><i class="fa fa-print"></i> Print Invoice</button></center> <div class="row" style="margin-left:5%;margin-right:5%;"> <div id="printableArea"> <?php if($totalData==1){ ?> <div ><br> <div class="row"> <div class="col-md-6"> <center><a href="<?=$inv_data[0]['image_1']?>" title="Edit Invoice" class="btn btn-warning btn-sm" download target="_blank"><i class="fa fa-download"></i> Download</a></center> <img src="<?=$inv_data[0]['image_1']?>" style="width:100%;padding:5px;"> </div> <div class="col-md-6"> <center><a href="<?=$inv_data[0]['image_2']?>" title="Edit Invoice" class="btn btn-warning btn-sm" download target="_blank"><i class="fa fa-download"></i> Download</a></center> <img src="<?=$inv_data[0]['image_2']?>" style="width:100%;padding:5px;"> </div> </div> </div> <?php }?> </div> </div> </section> </div> <style> </style> <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> <?php include "footer.php";?>