whoami7 - Manager
:
/
home
/
gracious
/
mail
/
ledgerless.graciousphils.com
/
Upload File:
files >> /home/gracious/mail/ledgerless.graciousphils.com/myFund.php
<!doctype html> <?php include 'connection.php'; if(isset($_SESSION['user']) && $_SESSION['position'] == 2){ ?> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.0.1/css/bootstrap.min.css"/> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css"/> <link rel="stylesheet" type="text/css" href="styles.css"> <title>PAL+</title> <style type="text/css"> .dataTables_length { margin-bottom: 5px; } .requestModal input, .requestModal textarea{ background-color: transparent !important; border:0px transparent !important; } .requestModal label{ } </style> </head> <body> <?php include 'navBar.php'; ?> <?php $requestedBy = $_SESSION['user']; $st = $pdo->prepare("select * from tblrequests where completedBy = ? and status = 'Completed'"); $st->bindParam(1, $_SESSION['user']); $st->execute(); ?> <br> <div class="container"> <div class="row"> <h2 class="col-lg-8 offset-lg-2 text-center">Funded Requests</h2> </div> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <table id="example" class="table table-bordered display compact" style="width: 100%;"> <thead> <tr class="text-center table-dark"> <th>Client No.</th> <th>Client Name</th> <th>Sales Office</th> <th>Date Completed</th> <th>Status</th> </tr> </thead> <tbody> <?php while ($data = $st->fetch()){ ?> <tr class="text-center"> <td><?php echo $data['clientNumber'];?></td> <td><?php echo $data['clientName'];?></td> <td><?php echo $data['salesOffice'];?></td> <td><?php echo $data['dateCompleted'];?></td> <td> <button type="button" class="btn btn-secondary text-white" name="btnLastTrans" data-bs-toggle="modal" data-bs-target="<?php echo '#modal' . $data['request_id'];?>"> <?php echo $data['status'];?> </button> </td> </tr> <!-- Start of Last Transaction Modal --> <div class="modal fade requestModal" id="<?php echo 'modal' . $data['request_id'];?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content text-black"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">CLIENT REQUEST INFO</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form method="POST" action="myRequests.php"> <div class="modal-body"> <div class="row"> <div class="col-lg-3 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalClientNumber" value="<?php echo $data['clientNumber']; ?>" readonly> <label for="modalClientNumber">Client Number</label> </div> </div> <div class="col-lg-3 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalClientName" value="<?php echo $data['clientName']; ?>" readonly> <label for="modalClientName">Client Name</label> </div> </div> <div class="col-lg-3 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalSalesOffice" value="<?php echo $data['salesOffice']; ?>" readonly> <label for="modalSalesOffice">Sales Office</label> </div> </div> <div class="col-lg-3 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalAgentName" value="<?php echo $data['agentName']; ?>" readonly> <label for="modalAgentName">Agent Name</label> </div> </div> </div> <div class="row"> <div class="col-lg-9 mb-2"> <div class="form-floating"> <textarea class="form-control" name="modalTransactionDetails" style="resize: none;height:150px" readonly><?php echo $data['transactionDetails']; ?></textarea> <label for="modalTransactionDetails">Transaction Details</label> </div> </div> <div class="col-lg-3 mb-2"> <div class="row"> <div class="col-lg-12 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalTransactionType" value="<?php echo $data['transactionType']; ?>" readonly> <label for="modalTransactionType">Transaction Type</label> </div> </div> </div> <div class="row"> <div class="col-lg-12 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalTransactionCashout" value="<?php echo $data['transactionCashout']; ?>" readonly> <label for="modalTransactionCashout">Transaction Cashout</label> </div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-4 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalModeTransfer" value="<?php echo $data['modeTransfer']; ?>" readonly> <label for="modalModeTransfer">Mode of Transfer</label> </div> </div> <div class="col-lg-4 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalAccountNumber" value="<?php echo $data['accountNumber']; ?>" readonly> <label for="modalAccountNumber">Account Number</label> </div> </div> <div class="col-lg-4 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalAccountName" value="<?php echo $data['accountName']; ?>" readonly> <label for="modalAccountName">Account Name</label> </div> </div> </div> <div class="row"> <div class="col-lg-4 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalServiceRef" value="<?php echo $data['serviceRef']; ?>" readonly> <label for="modalServiceRef">Service Reference</label> </div> </div> <div class="col-lg-4 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalRefNumber" value="<?php echo $data['refNumber'];; ?>" readonly> <label for="modalRefNumber">Reference Number</label> </div> </div> <div class="col-lg-4 mb-2"> <div class="form-floating"> <input type="text" class="form-control" name="modalRequestedBy" value="<?php echo $data['requestedBy']; ?>" readonly> <label for="modalRequestedBy">Call Representative</label> </div> </div> </div> </div> </form> </div> </div> </div> <!-- End of Last Transaction Modal --> <?php } ?> </tbody> </table> </div> </div> </div> <!-- Optional JavaScript; choose one of the two! --> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> <script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script> <script> $(document).ready(function() { $('#example').DataTable(); } ); </script> <!-- Option 2: Separate Popper and Bootstrap JS --> <!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script> --> </body> </html> <?php } else{ session_destroy(); header("location:index.php"); } ?>
Copyright ©2021 || Defacer Indonesia