ok
Direktori : /home2/selectio/public_html/caliberembedded.com/ |
Current File : /home2/selectio/public_html/caliberembedded.com/courses.php |
<?php include 'header.php'; ?> <style> .main-banner-in{ padding-bottom: 40px; } .main-banner-in .h1-title{ margin-top: -10%; } </style> <section class="main-banner-in"> <span class="shape-1 animate-this"> <img src="assets/images/shape-1.png" alt="shape"> </span> <span class="shape-2 animate-this"> <img src="assets/images/shape-2.png" alt="shape"> </span> <span class="shape-3 animate-this"> <img src="assets/images/shape-3.png" alt="shape"> </span> <span class="shape-4 animate-this"> <img src="assets/images/shape-4.png" alt="shape"> </span> <div class="container"> <div class="row"> <div class="col-lg-12"> <h1 class="h1-title">Our Courses</h1> </div> </div> </div> </section> <div class="main-banner-breadcrum"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="banner-breadcrum"> <ul> <li><a href="index.php">Home</a></li> <li><i class="fa fa-angle-right" aria-hidden="true"></i></li> <li><a href="courses.php">Courses</a></li> </ul> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="courses-list-box"> <div class="row"> <?php $statement = $pdo->prepare("SELECT * FROM tbl_courses WHERE course_type=1 AND status=1"); $statement->execute(); $res_course = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($res_course as $row_courses) { ?> <div class="col-lg-6 col-md-6"> <div class="course-box"> <div class="course-content"> <a href="course-details.php?course=<?=$row_courses['id']?>"> <div class="course-review-box"> <i class="fa fa-star" aria-hidden="true"></i> </div> <h3 class="h3-title"><?=$row_courses['course_name']?></h3> </a> </div> </div> </div> <?php } ?> <?php $statement = $pdo->prepare("SELECT * FROM tbl_courses WHERE course_type=2 AND status=1"); $statement->execute(); $res_course = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($res_course as $row_courses) { ?> <div class="col-lg-6 col-md-6"> <div class="course-box"> <div class="course-content"> <a href="online-course.php?course=<?=$row_courses['id']?>"> <div class="course-review-box"> <i class="fa fa-star" aria-hidden="true"></i> </div> <h3 class="h3-title"><?=$row_courses['course_name']?></h3> </a> </div> </div> </div> <?php } ?> </div> </div> </div> </div> </div> </div> <?php include 'footer.php'; ?>