JezK
Edit File: viewStaff.php
<?php $currentPage="staff"; include("header.php"); if(isset($_SESSION['saveSuccess'])) { echo "<script>alert('Staff details saved successfully.')</script>"; unset($_SESSION['saveSuccess']); } if(!isset($_SESSION['staffID'])) { echo "<script>location.replace('addStaff.php')</script>"; } else { $staffID = $_SESSION['staffID']; include('app/getStaffDetails.php'); } ?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> <small>View Staff</small> </h1> </div> </div> <!-- /.row --> <div class="row table-responsive" > <div class="col-md-12"> <table class="table table-striped table-bordered" cellspacing="0" width="100%"> <!--tr> <td>Staff ID</td> <td><?php echo $staffNumber; ?></td> </tr--> <tr> <td>Staff Full Name</td> <td><?php echo $staffName; ?></td> </tr> <tr> <td>District Name</td> <td><?php echo $districtName; ?></td> </tr> <tr> <td>Designation</td> <td><?php echo $designation; ?></td> </tr> <tr> <td>Date of Birth</td> <td><?php echo $dateOfBirth; ?></td> </tr> <tr> <td>Gender</td> <td><?php echo $gender; ?></td> </tr> <tr> <td>Android Mobile</td> <td><?php echo $androidMobile; ?></td> </tr> <tr> <td>IMEI</td> <td><?php echo $IMEI; ?></td> </tr> <tr> <td>Mobile Brand</td> <td><?php echo $brand; ?></td> </tr> <tr> <td>Model Number</td> <td><?php echo $modelNumber; ?></td> </tr> <tr> <td>Android Version</td> <td><?php echo $version; ?></td> </tr> <tr> <td>RAM in Mobile</td> <td><?php echo $ram; ?></td> </tr> <tr> <td>ROM in Mobile</td> <td><?php echo $rom; ?></td> </tr> <tr> <td>UniqueID</td> <td><?php echo $uniqueID; ?></td> </tr> <tr> <td>Access Required</td> <td><?php echo $accessRequiredText; ?></td> </tr> <tr> <td>Photo</td> <td><img src="uploads/<?php echo $photo; ?>" height="100px" width="100px"></td> </tr> <tr> <td>KYC</td> <td><img src="uploads/<?php echo $KYC; ?>" height="100px" width="100px"></td> </tr> </table> </div> </div> <!-- /.row --> <div class="row text-center"> <form action="app/staffConfirmApp.php" method="post" onsubmit="return confirm('Once added staff details cannot be edited. Please verify carefully. Are you sure you want to save these details?')"> <a href="addStaff.php" class="btn btn-cs">Back</a> <input type="hidden" value="<?php echo $staffID; ?>" name="staffID"> <input type="hidden" value="<?php echo $uniqueID; ?>" name="uniqueID"> <input type="hidden" value="<?php echo $staffName; ?>" name="staffName"> <input type="hidden" value="<?php echo $districtName; ?>" name="districtName"> <input type="submit" value="Confirm" class="btn btn-cs"> </form> </div> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> <?php include("footer.php");?>