<?php require_once("header1.php");?>

			<!-- page template area start -->
			<section id="about">
				<div class="container mt-10 pb-10 pt-0">
					<div class="section-content">
					    <div class="row">
							<div class="">
							    <h1 class="title mt-5 mb-15" style="text-align:center;">Photo Gallery</h1>
							<?php
							$sql_photo = "SELECT * FROM `pd_property_photos` WHERE `photo_status` = 'Active' AND `property_id` = '".$_REQUEST['property_id']."' ORDER BY `photo_id` ASC";
							$exe_photo = mysqli_query($connection,$sql_photo);
							while($arr_photo = mysqli_fetch_array($exe_photo))
							{									
								?>
								<div class="col-md-3">
									<div class="item" data-nav="false">
										<div class="mb-30">
											<a href="uploads/property/<?php echo $arr_photo['photo'];?>" data-title="" data-lightbox="example-set">
												<div class="thumb">
													<img class="" alt="" src="uploads/property/<?php echo $arr_photo['photo'];?>">
												</div>
											</a>
										</div>
									</div>
								</div>
								<?php
							}
							?>
							</div>
						</div>
						<p class="text-center"><button type="button" class="btn btn-flat btn-theme-colored border-left-theme-color-2-4px" onclick="window.location.href='property-list.php?type_id=<?php echo $_REQUEST['type_id'];?>'">Back</button></p>
					</div>
			    </div>
			</section>
			<!-- page template area end -->
			
<?php require_once("footer1.php");?>