JezK
Edit File: staffDetails.php
<?php $currentPage="staff"; include("header.php"); $staffID = isset($_REQUEST['id'])?$_REQUEST['id']:""; if($staffID == "") { echo "<script>location.replace('staff.php')</script>"; } else { include('app/getStaffDetails.php'); } $issueOfIDTextStyle = ""; $identificationNumberStyle = ""; $issueOfCMSTextStyle = ""; $cmsNumberStyle = ""; if(!$issueOfIDText) { $issueOfIDTextStyle = 'display:none'; } if(!$identificationNumber) { $identificationNumberStyle = 'display:none'; } if(!$issueOfCMSText) { $issueOfCMSTextStyle = 'display:none'; } if(!$cmsNumber) { $cmsNumberStyle = 'display:none'; } ?> <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> <tr style="<?php echo $issueOfIDTextStyle; ?>"> <td>Issue of ID</td> <td><?php echo $issueOfIDText; ?></td> </tr> <tr style="<?php echo $identificationNumberStyle; ?>"> <td>Identification Number</td> <td><?php echo $identificationNumber; ?></td> </tr> <tr style="<?php echo $issueOfCMSTextStyle; ?>"> <td>Issue of CMS</td> <td><?php echo $issueOfCMSText; ?></td> </tr> <tr style="<?php echo $cmsNumberStyle; ?>"> <td>CMS Number</td> <td><?php echo $cmsNumber; ?></td> </tr> <tr> <td>Approved Status</td> <td><?php echo $approvedStatus; ?></td> </tr> <tr style="<?php echo $commentStyle; ?>"> <td>Comment</td> <td><?php echo $comment; ?></td> </tr> </table> </div> </div> <!-- /.row --> <div class="row text-center"> <a href="staff.php" class="btn btn-cs">Back</a> </div> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> <?php include("footer.php");?>