/
var
/
www
/
html
/
stengineers
/
Upload FileeE
HOME
<?php header('Access-Control-Allow-Origin: *'); require_once 'admin/dbconnection.php'; error_reporting(0); $url = $_GET['url']; $row1 = mysqli_query($con, "select * from news_events where news_url= '$url'"); $row2 = mysqli_fetch_array($row1); // print_r($row2);exit; $id = $row2['id']; $title = $row2['title']; $description = $row2['description']; $thump_image = $row2['thump_image']; $gal_img = $row2['gal_img']; $news_content = $row2['news_content']; // echo $blog_content; $pagetitle = "Events- ". ucwords($title); $pageImage = $thump_image; require 'header.php'; ?> <section class="single-blog-sec"> <div class="container-fluid"> <div class="row col-xl-10 col-lg-11 mx-auto single-blog-bg"> <div class="row"> <ol class="breadcrumb"> <li><a href="<?php echo $baseUrl; ?>">Home</a></li> <li><a href="<?php echo $baseUrl; ?>news-and-events.php">News</a></li> <li class="current"><?php echo ucwords($pagetitle); ?></li> </ol> </div> <div class="col-lg-8 col-md-8"> <img src="<?php echo $thump_image; ?>" class="img-fluid"><br><br> <?php echo $news_content; ?> </div> <div class="col-lg-4 col-md-4"> <div class="blog-side"> <h5>Recent News</h5> <?php $result = $con->query("SELECT * FROM news_events WHERE status='active' order by id desc limit 3"); while ($row = $result->fetch_assoc()) { $title_r = $row['title']; $thump_image_r = $row['thump_image']; $url_r = $row['news_url']; ?> <div class="blog-side-box"> <a href="<?php echo $baseUrl; ?>news/<?php echo $url_r; ?>"> <img src="<?php echo $thump_image_r; ?>" class="img-fluid"> <h6><?php echo ucwords($title_r); ?></h6> </a> </div> <?php } ?> </div> </div> </div> </div> </section> <?php require 'footer.php';?> <script>$('.timeline li').on('click', showTimelineBlock); $('.timeline-prev').on('click', prevTimeline); $('.timeline-next').on('click', nextTimeline); function showTimelineBlock() { var listNumber = $('.timeline li').index(this); var left = listNumber * -100; $('.timeline-blocks').animate({ marginLeft: left + '%'}, 500); $(".timeline li").removeClass("timeline-active"); $(this).addClass('timeline-active'); }; function nextTimeline () { $('.timeline-active').removeClass('timeline-active').next().addClass('timeline-active'); $('.timeline-blocks').animate({ marginLeft: "+=-100%"}, 500); }; function prevTimeline () { $('.timeline-active').removeClass('timeline-active').prev().addClass('timeline-active'); $('.timeline-blocks').animate({ marginLeft: "+=100%"}, 500); };</script>