PATH:
home4
/
theinves
/
public_html
/
seshaasschool.com
/
Editing: flash-news-view.php
<?php include 'header.php'?> <?php if(isset($_GET['code'])){ $flash_news_name = str_replace("-", " ", $_GET['news']); $statement_flash_news = $pdo->prepare("SELECT h.* FROM `tbl_flash_news` h where h.id=?"); $statement_flash_news->execute(array($_GET['code'])); $flash_news_results = $statement_flash_news->fetchAll(PDO::FETCH_ASSOC); $flash_news_totalDatas = $statement_flash_news->rowCount(); if($flash_news_totalDatas>0){ $title = $flash_news_results[0]['title']; $description = $flash_news_results[0]['description']; $u_link = $flash_news_results[0]['u_link']; } $statement_flash_news_images = $pdo->prepare("SELECT fi.* FROM `tbl_flash_news_images` fi where fi.flash_news_id=?"); $statement_flash_news_images->execute(array($_GET['code'])); $flash_news_images_results = $statement_flash_news_images->fetchAll(PDO::FETCH_ASSOC); $flash_news_images_totalDatas = $statement_flash_news_images->rowCount(); } ?> <!--bg-f4f6f9--> <div class="campus-safety-area" style="padding-top: 1px; background-color: peachpuff;"> <div class="container" style="padding: 25px 0px 25px 0px;"> <div class="" style="text-align: center; position: relative;"> <center> <h2 style="margin-top: 50px; margin-bottom: 40px; color: rgb(154 51 52); font-family: 'Work Sans', sans-serif !important;font-size: 30px;"> <?=$title?> </h2> </center> </div> </div> </div> <div class="campus-information-area pb-70 pt-20"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12" data-aos="fade-right" data-aos-easing="ease-in-sine" data-aos-duration="1300" data-aos-once="true"> <div class="campus-content pr-20"> <div class="campus-title"> <div style="margin-top: 5%; font-size: 29px;text-align: center;"></div> <p> <?=$description?> </p> <iframe width="560" height="315" src="<?=$u_link?>" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe> </div> <style> iframe { border: none; /* Remove border if not needed */ margin-left:300px; } </style> </div> </div> <div class="row"> <?php if($flash_news_images_totalDatas>0){ foreach($flash_news_images_results as $image){ ?> <div class="col-lg-4" data-aos="fade-right" data-aos-easing="ease-in-sine" data-aos-duration="1300" data-aos-once="true"> <div class="campus-image pl-20"> <img src="<?=$site_url?>dashboard/media/<?=$image['source']?>" alt="Image"> </div> </div> <?php } } ?> </div> </div> </div> </div> </div> <?php include 'footer.php'?>
SAVE
CANCEL