Mini Shell
<!doctype html>
<html lang="en">
<?php include 'head.php'; ?>
<body>
<header class="header_inner courses_page">
<!-- Preloader -->
<?php include 'header.php'; ?>
</header> <!-- End nav -->
<?php
include 'admin/function_date.php';
$newstype_id2 = 002;
$sql_type2 = "SELECT * FROM news INNER JOIN newstype ON news.newstype_id = newstype.newstype_id WHERE news.newstype_id = $newstype_id2 and news.news_status = '0' order by news_id desc limit 10";
$result_type2 = mysqli_query($link, $sql_type2);
$row_type2 = mysqli_fetch_array($result_type2);
?>
<!-- ข่าวประชาสัมพัน -->
<section class="events-area">
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
<div class="event_title_wrapper">
<div class="sub_title">
<h2>ข่าวประชาสัมพันธ์</h2>
<p>ข่าวประชาสัมพันธ์ หลักสูตร (SMTP) </p>
</div><!-- ends: .section-header -->
</div>
</div>
</div>
<?php
$date2 = $row_type2['new_date'];
$show_date2 = displaydate($date2);
?>
<div class="row">
<div class="col-sm-12 events_full_box">
<div class="events_single">
<div class="event_banner">
<a href="news_details.php?news_id=<?php echo $row_type2['news_id']; ?>"><img src="admin/images/<?php echo $row_type2['news_images']; ?>" alt="" class="img-fluid"></a>
</div>
<div class="event_info">
<h3><a href="news_details.php?news_id=<?php echo $row_type2['news_id']; ?>" title=""><?php echo $row_type2['news_topic']; ?></a></h3>
<div class="events_time">
<span class="time"><i class="fas fa-calendar-alt"></i><?php echo $show_date2; ?></span>
</div>
<p><?php echo $row_type2['topic_detail']; ?> ...</p>
<div class="event_dete">
<span class="date"><?php echo $row_type2['counter']; ?></span>
<span>ครั้ง</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section><!-- ./ End Events Area section -->
<!-- Footer -->
<?php include 'footer.php'; ?>
</body>
</html>
Zerion Mini Shell 1.0