ok

Mini Shell

Direktori : /home/importfo/www/drkajalskinclinic.com/
Upload File :
Current File : /home/importfo/www/drkajalskinclinic.com/blog_detail.php

<?php include("admin/config.php");?>

<!DOCTYPE html>
<html lang="en">

<head>
	<?php include('top.php'); ?>
	<style>
		p{
			text-align: justify;
		}
	</style>
</head>

<body class="shop-page">	
	
<!--header-->
<?php include('header.php'); ?>
	<!--//header-->
	<div class="page-content">
		<!--section-->
		<div class="section mt-0">
			<div class="breadcrumbs-wrap">
				<div class="container">
					<div class="breadcrumbs">
						<a href="index.php">Home</a>
						<span>Blog Detail </span>
					</div>
				</div>
			</div>
		</div>
		<!--//section-->
		<!--section-->
		<div class="section page-content-first">
			<div class="container">
				<div class="row">
					  <?php
                             if(isset($_GET['slug']))
                           {
                              $slug=$_GET['slug'];
                            }
                            else
                            {
                              $slug=0;
                            }
                            $sql="SELECT * from blog where id='$slug' LIMIT 0 , 1 " ;
                            $res=mysqli_query($db,$sql);
                            $row=mysqli_fetch_array($res);
                            $post_date=$row['post_date'];
                            $post_by=$row['post_by'];
                            $image=$row['image'];
                            $post_desc=$row['post_desc'];
                            ?>
					<div class="col-lg-9 aside">
						<div class="blog-post blog-post-single">
							
							<div class="post-image">
								<img src="admin/upload/<?php echo $row['image'];?>" alt="">
							</div>
							<div class="blog-post-info">
							
								 <div>
									<h2 class="post-title"><a><?php echo $row['title']; ?></a></h2>
									
								</div> 
							</div>
							<div class="post-text">
								<p><?php echo $row['post_desc'];?></p>
								
							</div>
							<div class="post-meta">
										<div class="post-meta-author"> <a ><i><?php echo $row['post_date']; ?></i></a></div>
										<div class="post-meta-author">by <a ><i><?php echo $row['post_by']; ?></i></a></div>
										<div class="post-meta-social">
											<a href="https://www.facebook.com/sharer/sharer.php?u=" target="_blank"><i class="icon-facebook-logo"></i></a>
											<a href="https://twitter.com/intent/post?url="><i class="icon-twitter-logo"></i></a>
											
											<a href="https://www.instagram.com/share?url=YOUR_URL_HERE" target="_blank"><i class="icon-instagram"></i></a>
										</div>
									</div>
							

						</div>
						
						
						
						
					</div>
					<div class="col-lg-3 aside-left mt-5 mt-lg-0">
						<div class="side-block">
							<!-- <form action="#" class="content-search d-flex">
								<div class="input-wrap">
									<input type="text" class="form-control" placeholder="Keywords">
								</div>
								<button type="submit"><i class="icon-search"></i></button>
							</form> -->
						</div>
						
					
					
						<div class="side-block">
							<h3 class="side-block-title">Recent Posts</h3>
							<?php
                            $sql="SELECT * from blog ORDER BY id DESC LIMIT 5";
                            $res=mysqli_query($db,$sql);
                            while($row=mysqli_fetch_array($res))
                            {
                             ?>
							<div class="blog-post post-preview">
								<div class="post-image">
									<a href="blog_detail.php?slug=<?php echo $row['id']; ?>"><img src="admin/upload/<?php echo $row['image'];?>" alt=""></a>
								</div>
								<div>
									<h4 class="post-title"><a href="blog_detail.php?slug=<?php echo $row['id']; ?>"><?php echo $row['title']; ?></a></h4>
									<div class="post-meta">
										<div class="post-meta-author text-nowrap">by <a><i><?php echo $row['post_by']; ?></i></a></div>
										<div class="post-meta-date text-nowrap"><i class="icon icon-clock3"></i><?php echo $row['post_date']; ?></div>
									</div>
								</div>
							</div>
							
							<?php } ?>
						</div>
					
					</div>
				</div>
			</div>
		</div>
		<!--//section-->
	</div>
	<!--footer-->
	<?php include('footer.php'); ?>
	<!--//footer-->

	<!-- Vendors -->
	<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
	<script src="vendor/jquery-migrate/jquery-migrate-3.0.1.min.js"></script>
	<script src="vendor/cookie/jquery.cookie.js"></script>
	<script src="vendor/bootstrap-datetimepicker/moment.js"></script>
	<script src="vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
	<script src="vendor/popper/popper.min.js"></script>
	<script src="vendor/bootstrap/bootstrap.min.js"></script>
	<script src="vendor/waypoints/jquery.waypoints.min.js"></script>
	<script src="vendor/waypoints/sticky.min.js"></script>
	<script src="vendor/imagesloaded/imagesloaded.pkgd.min.js"></script>
	<script src="vendor/slick/slick.min.js"></script>
	<script src="vendor/scroll-with-ease/jquery.scroll-with-ease.min.js"></script>
	<script src="vendor/countTo/jquery.countTo.js"></script>
	<script src="vendor/form-validation/jquery.form.js"></script>
	<script src="vendor/form-validation/jquery.validate.min.js"></script>
	<!-- Custom Scripts -->
	<script src="js/app.js"></script>
    <script src="color/color.js"></script>

	<script src="js/app-shop.js"></script>
	<script src="form/forms.js"></script>
	
</body>
</html>

Zerion Mini Shell 1.0