ok
Direktori : /home/importfo/public_html/i-smiledentalcare.com/ |
Current File : //home/importfo/public_html/i-smiledentalcare.com/blog_detail.php |
<?php include("admin/config.php") ?> <!DOCTYPE html> <html dir="ltr" lang="en"> <head> <?php include('top.php');?> <style> .komal { position: relative; max-width: 800px; margin: 0 auto; } .komal img {vertical-align: middle;} .pratik { position: absolute; bottom: 0; color: #f1f1f1; width: 100%; padding: 20px; } </style> </head> <body class=""> <div id="wrapper" class="clearfix"> <!-- preloader --> <!-- Header --> <?php include('header.php');?> <!-- Start main-content --> <div class="main-content"> <section class="inner-header divider parallax layer-overlay overlay-white-8" data-bg-img=""> <!-- <div class="komal"> --> <img src="images/sbg.PNG" alt="Notebook" style="width:;"> <div class="pratik"> <center><h2 style="color:white;">Blog Details</h2></center> <ol class="breadcrumb text-center text-black mt-10" style="color:white; font-size: 16px;"> <li ><a href="index.php" style="color:black">Home</a></li> <li ><a href="blog.php" style="color:black;">Blog</a></li> <li ><a href="#" style="color:black;">Blog Detail</a></li> </ol> </div> </section> <!-- Section: Blog --> <section> <div class="container mt-30 mb-30 pt-30 pb-30"> <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-md-9"> <div class="blog-posts single-post"> <article class="post clearfix mb-0"> <div class="entry-header"> <div class="post-thumb thumb"> <img src="admin/upload/<?php echo $row['image'];?>" alt="image" alt="" class="img-responsive img-fullwidth"> </div> </div> <div class="entry-content"> <div class="entry-meta media no-bg no-border mt-15 pb-20"> <!-- <div class="entry-date media-left text-center flip bg-theme-colored pt-5 pr-15 pb-5 pl-15"> <ul> <li class="font-16 text-white font-weight-600">28</li> <li class="font-12 text-white text-uppercase">Feb</li> </ul> </div> --> <div class="media-body pl-15"> <div class="event-content pull-left flip"> <h3 class="entry-title text-white text-uppercase pt-0 mt-0"><a href="#"><?php echo $row['title'];?></a></h3> <span class="mb-10 text-gray-darkgray mr-10 font-13"><i class="fa fa-commenting-o mr-5 text-theme-colored"></i><?php echo$row['post_by'];?></span> <span class="mb-10 text-gray-darkgray mr-10 font-13"><i class="fa fa-heart-o mr-5 text-theme-colored"></i> <?php echo $row['post_date'];?></span> </div> </div> </div> <p class="mb-15"><?php echo $row['post_desc'];?></p> </div> </article> </div> </div> <div class="col-md-3"> <div class="sidebar sidebar-left mt-sm-30"> <div class="widget"> <h5 class="widget-title line-bottom">Latest News</h5> <div class="latest-posts"> <?php $sql="SELECT * from blog ORDER BY post_date DESC; "; $res=mysqli_query($db,$sql); while($row=mysqli_fetch_array($res)) { ?> <article class="post media-post clearfix pb-0 mb-10"> <a class="post-thumb" href="blog_detail.php?slug=<?php echo $row['id']; ?>"><img src="admin/upload/<?php echo $row['image'];?>" style="height: 80px; width: 80px" alt=""></a> <div class="post-right"> <h5 class="post-title mt-0"><a href="blog_detail.php?slug=<?php echo $row['id']; ?>"><?php echo $row['title'];?></a></h5> <!-- <p>Lorem ipsum dolor sit amet adipisicing elit...</p> --> </div> </article> <?php } ?> </div> </div> </div> </div> </div> </div> </section> </div> <!-- end main-content --> <!-- Footer --> <?php include('footer.php');?> <a class="scrollToTop" href="#"><i class="fa fa-angle-up"></i></a> </div> <script src="js/custom.js"></script> </body> </html>