?> <?php session_start(); include "const.php"; include "class/pdo_db.php"; $DB = new minPDO(); $view = $_REQUEST["view"]; if(!isset($_REQUEST["view"])) $view = HOME_PAGE; $bodyClass = "starter-page-page"; if($view == HOME_PAGE) $bodyClass = "index-page"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Employee Self-Service System, Faculty of Agriculture ..., NU</title> <meta name="description" content=""> <meta name="keywords" content=""> <!-- Favicons --> <link href="assets/img/fav-icon-agi.png" rel="icon"> <link href="assets/img/fav-icon-agi.png" rel="apple-touch-icon"> <!-- Fonts --> <link href="https://fonts.googleapis.com" rel="preconnect"> <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Inter:w ght@100;200;300;400;500;600;700;800;900&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1, 800;1,900&display=swap" rel="stylesheet"> <!-- Vendor CSS Files --> <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet"> <link href="assets/vendor/aos/aos.css" rel="stylesheet"> <link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet"> <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet"> <!-- Main CSS File --> <link href="assets/css/main.css" rel="stylesheet"> </head> <body class="<?php echo $bodyClass;?>"> <header id="header" class="header d-flex align-items-center fixed-top"> <div class="container-fluid container-xl position-relative d-flex align-items-center"> <a href="index.html" class="logo d-flex align-items-center me-auto"> <!-- <img src="assets/img/logo-web.png"> --> <img src="assets/img/fav-icon-agi.png"> <h1 class="sitename"><font style="color: #5E9610;">AGI</font> <font style="color: #01696A;">ESS System</font></h1> </a> <nav id="navmenu" class="navmenu"> <ul> <li><a href="index.php">Home</a></li> <?php if($_SESSION[ADMIN]){ ?> <li class="dropdown"><a href="#"><span>Report </span> <i class="bi bi-chevron-down toggle-dropdown"></i></a> <ul> <li><a href="index.php?view=admin_daily_report">Daily Report</a></li> <li><a href="index.php?view=admin_monthly_report">Monthly Report</a></li> <!-- <li class="dropdown"><a href="#"><span>Deep Dropdown</span> <i class="bi bi-chevron-down toggle-dropdown"></i></a> <ul> <li><a href="#">Deep Dropdown 1</a></li> <li><a href="#">Deep Dropdown 2</a></li> <li><a href="#">Deep Dropdown 3</a></li> <li><a href="#">Deep Dropdown 4</a></li> <li><a href="#">Deep Dropdown 5</a></li> </ul> </li> --> </ul> </li> <?php } ?> <?php if($_SESSION[USERNAME]){ ?> <li class="dropdown"><a href="#"><span><?php echo $_SESSION[USERNAME];?> </span> <i class="bi bi-chevron-down toggle-dropdown"></i></a> <ul> <li><a href="index.php?view=list_chk_in">เธฃเธฒเธขเธเธฒเธฃเธฅเธ‡เน€เธงเธฅเธฒ</a></li> <li><a href="index.php?view=chk_in_stat">เธชเธ–เธดเธ•เธดเธเธฒเธฃเธฅเธ‡เน€เธงเธฅเธฒ</a></li> <li><a href="logoff.php">Logoff</a></li> </ul> </li> <?php } ?> </ul> <i class="mobile-nav-toggle d-xl-none bi bi-list"></i> </nav> <?php if(!$_SESSION[USERNAME]){ ?> <a class="btn-getstarted" href="index.php?view=signin" style="background-color: #01696A;">Sign In</a> <?php } ?> </div> </header> <main class="main"> <!-- Hero Section --> <?php if($view == HOME_PAGE){ ?> <section id="hero" class="hero section"> <div class="hero-bg"> <img src="assets/img/hero-bg-light.webp" alt=""> </div> <div class="container text-center"> <div class="d-flex flex-column justify-content-center align-items-center"> <h1 data-aos="fade-up">Welcome to</h1> <br> <h1 data-aos="fade-up" style="color: #01696A;">Employee Self-Service System</h1> <br> <p data-aos="fade-up" data-aos-delay="100" style="font-size: 32px;margin: 0px 0px 0px 0px;">Faculty of Agriculture, Natural Resources and Environment</p> <p data-aos="fade-up" data-aos-delay="100" style="font-size: 32px;margin: 0px 0px 30px 0px;">Naresuan University</p> <div class="d-flex" data-aos="fade-up" data-aos-delay="200"> <a href="index.php?view=signin" class="btn-get-started" style="background-color: #01696A;">Get Started</a> <!-- <a href="https://www.youtube.com/watch?v=Y7f98aduVJ8" class="glightbox btn-watch-video d-flex align-items-center"><i class="bi bi-play-circle"></i><span>Watch Video</span></a> --> </div> <!-- <img src="assets/img/hero-services-img.webp" class="img-fluid hero-img" alt="" data-aos="zoom-out" data-aos-delay="300"> --> </div> </div> </section><!-- /Hero Section --> <?php } include ($view.".php"); ?> </main> <footer id="footer" class="footer position-relative light-background"> <p style="background-color: #5E9610;height: 2px;"></p> <div class="container footer-top"> <div class="row gy-4 justify-content-center"> <div class="col-lg-4 col-md-6 footer-about"> <a href="index.php" class="logo d-flex align-items-center"> <span class="sitename">AGI - <font color="#01696A">Employee Self-Service</font></span> </a> <div class="footer-contact pt-3"> <p>Faculty of Agriculture, Natural Resource and Environment,</p> <p>Naresuan University</p> <p>99 Moo 9, Tapho, Muang, Phitsanulok, Thailand 65000</p> <p class="mt-3"><strong>Phone:</strong> <span>+66 5596 2715</span></p> <p><strong>Email:</strong> <span>teeradety@nu.ac.th</span></p> </div> <!-- <div class="social-links d-flex mt-4"> <a href=""><i class="bi bi-twitter-x"></i></a> <a href=""><i class="bi bi-facebook"></i></a> <a href=""><i class="bi bi-instagram"></i></a> <a href=""><i class="bi bi-linkedin"></i></a> </div> --> </div> <div class="col-lg-2 col-md-3 footer-links"> <h4>Our Links</h4> <ul> <li><a href="index.php" class="active">Home</a></li> <!-- <li><a href=""></a></li> <li><a href=""></a></li> <li><a href=""></a></li> --> </ul> </div> <!-- <div class="col-lg-2 col-md-3 footer-links"> <h4>Our Services</h4> <ul> <li><a href="#">Web Design</a></li> <li><a href="#">Web Development</a></li> <li><a href="#">Product Management</a></li> <li><a href="#">Marketing</a></li> <li><a href="#">Graphic Design</a></li> </ul> </div> <div class="col-lg-4 col-md-12 footer-newsletter"> <h4>Our Newsletter</h4> <p>Subscribe to our newsletter and receive the latest news about our products and services!</p> <form action="forms/newsletter.php" method="post" class="php-email-form"> <div class="newsletter-form"><input type="email" name="email"><input type="submit" value="Subscribe"></div> <div class="loading">Loading</div> <div class="error-message"></div> <div class="sent-message">Your subscription request has been sent. Thank you!</div> </form> </div> --> </div> </div> <div class="container copyright text-center mt-4"> <p> <span>Copyright @ 2025 Faculty of Agriculture, Natural Resource and Environment,Naresuan University</span></p> <div class="credits"> <!-- All the links in the footer should remain intact. --> <!-- You can delete the links only if you've purchased the pro version. --> <!-- Licensing information: https://bootstrapmade.com/license/ --> <!-- Purchase the pro version with working PHP/AJAX contact form: [buy-url] --> </div> </div> </footer> <!-- Scroll Top --> <a href="#" id="scroll-top" class="scroll-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> <!-- Preloader --> <div id="preloader"></div> <!-- Vendor JS Files --> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <script src="assets/vendor/aos/aos.js"></script> <script src="assets/vendor/glightbox/js/glightbox.min.js"></script> <script src="assets/vendor/swiper/swiper-bundle.min.js"></script> <!-- Main JS File --> <script src="assets/js/main.js"></script> </body> </html>