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_id1 = 001;
$sql_type1 = "SELECT * FROM news INNER JOIN newstype ON news.newstype_id = newstype.newstype_id WHERE news.newstype_id = $newstype_id1 and news.news_status = '0' ORDER BY news_id DESC LIMIT 12";
$result_type1 = mysqli_query($link, $sql_type1);
?>
<!-- ข่าวเด่น -->
<section class="popular_courses">
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
<div class="sub_title">
<h2>ข่าวเด่น</h2>
</div><!-- ends: .section-header -->
</div>
<?php
while ($row_type1 = mysqli_fetch_array($result_type1)) {
?>
<?php
$date1 = $row_type1['new_date'];
$show_date1 = displaydate($date1);
?>
<div class="col-12 col-sm-6 col-md-6 col-lg-4">
<div class="single-courses">
<div class="courses_banner_wrapper">
<div class="courses_banner"><a href="news_details.php?news_id=<?php echo $row_type1['news_id']; ?>"><img src="admin/images/<?php echo $row_type1['news_images']; ?>" alt="" class="img-fluid"></a></div>
</div>
<div class="courses_info_wrapper">
<div class="courses_title">
<h3><a href="news_details.php?news_id=<?php echo $row_type1['news_id']; ?>"><?php echo $row_type1['news_topic']; ?></a></h3>
<div class="teachers_name"><?php echo $row_type1['topic_detail']; ?>...... <a href="news_details.php?news_id=<?php echo $row_type1['news_id']; ?>" title=""></a></div>
</div>
<div class="courses_info">
<ul class="list-unstyled">
<li><i class="fas fa-calendar-alt"></i><?php echo $show_date1; ?></li>
<li><i class="fas fa-user"></i><?php echo $row_type1['counter']; ?> ครั้ง</li>
</ul>
<a href="news_details.php?news_id=<?php echo $row_type1['news_id']; ?>" class="cart_btn">อ่านต่อ</a>
</div>
</div>
</div><!-- Ends: .single courses -->
</div><!-- Ends: . -->
<?php } ?>
</div>
</div>
</section><!-- ./ End Courses Area section -->
<!-- Footer -->
<?php include 'footer.php'; ?>
</body>
</html>
Zerion Mini Shell 1.0