<?
if ($_SESSION['ss_LOGIN'] != 1) {
		$msg = "Please Login First.";
		//$func -> alertBack($msg);
		$func -> modalMsg ($msg, "/login_intranet.php");	
		exit;
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>Green Oil Inc. Intranet System</title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="assets/img/cropped-green-oil-favicon-192x192.png" rel="icon">
  <link href="assets/img/cropped-green-oil-favicon-192x192.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Amatic+SC:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <!--link href="/assets/vendor/aos/aos.css" rel="stylesheet"-->
  <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/glightbox/css/glightbox.min.css" rel="stylesheet">
  <link href="/assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="/assets/css/main.css" rel="stylesheet">
  <link href="/assets/css/table-style.css" rel="stylesheet">

<? if ($view == "forecast_list") { ?>
  <!-- Filter -->
  <link href="/assets/css/leftside-modal.css" rel="stylesheet">
<? } ?>
  
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

  <!-- jQuery JS -->
  <script src="/assets/js/vendor/jquery-3.3.1.min.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

  <!-- Bootstrap JS -->
  <script src="/assets/js/vendor/bootstrap.min.js"></script>



  <!-- Vendor JS Files -->
  <!--script src="/assets/vendor/aos/aos.js"></script-->
  <script src="/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="/assets/vendor/glightbox/js/glightbox.min.js"></script>
  <script src="/assets/vendor/purecounter/purecounter_vanilla.js"></script>
  <script src="/assets/vendor/swiper/swiper-bundle.min.js"></script>
  
  <!--script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script-->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.0/jquery.validate.js"></script>

  <!-- Template Main JS File -->
  <script src="/assets/js/main.js"></script>

</head>


<!-- 입력값이 변경되면 무조건 색상변경됨 -->
<script>
$(document).ready(function(){
    
    $("input,select,textarea").bind('change keyup',function(){
        $(this).css("background-color", "#C8E0C2");
    });
    
});

var refreshTime = 300000; // every 5 minutes in milliseconds
window.setInterval( function() {
    $.ajax({
        cache: false,
        type: "GET",
        url: "/lib/refreshSession.php",
        success: function(data) {
        }
    });
}, refreshTime );


//setInterval(function(){
//  $.post('/lib/refreshSession.php');
//},refreshTime); //refreshes the session every 10 minutes

</script>

