| Server IP : 104.21.80.248 / Your IP : 162.159.115.41 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/news/csr/main/ |
Upload File : |
<?php
session_start(); //เปิดรับ session
ob_start();
$page = filter_input(INPUT_GET, 'page', FILTER_SANITIZE_STRING);
require "config.php";
?>
<?php
if(isset($_POST['year'])){
$_SESSION['iyear'] = $_POST['year'];
$iyear = $_SESSION['iyear'];
}else {
$iyear=date("Y")+543;
}
?>
<?php
if(isset($_POST['tcolor'])){
$_SESSION['templates'] = $_POST['tcolor'];
$templates = $_SESSION['templates'];
}else {
$templates="success";
}
?>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home</title>
<link href="https://fonts.googleapis.com/css?family=Prompt" rel="stylesheet">
<style>
body {
font-family: 'Prompt', sans-serif;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: 'Prompt', sans-serif;
}
</style>
<link href="<?php echo ADMIN_URL;?>/assets/css/style.css" rel="stylesheet" type="text/css" />
<?php
require "global-head.php";
?>
<script src="<?php echo ADMIN_URL;?>/assets/plugins/datetimepicker/js/moment.min.js"></script>
<script src="<?php echo ADMIN_URL;?>/assets/plugins/datetimepicker/js/daterangepicker.js"></script>
<link href="<?php echo ADMIN_URL;?>/assets/plugins/datetimepicker/css/daterangepicker.css" rel="stylesheet" />
</head>
<body { font-family: 'thsarabunnew', sans-serif; }>
<?php require "navigation.php";?>
<div class="jumbotron">
<div class="container">
<div class="row my-4">
<div class="col-lg-8">
<?php include "slider.php";?>
</div>
<!-- /.col-lg-8 -->
<div class="col-lg-4">
<center>
<div class="card text-white bg-<?=$templates;?> mb-3" style="max-width: 100%; height: 290px;">
<div class="card-header">ผู้บริจาคล่าสุด</div>
<div class="card-body">
<script type="text/javascript">
$(document).ready(function(){
setInterval(function() { $("#data").load("Getdata.php"); }, 1000);
});
</script>
<div id='data'></div>
</div>
</center>
</div>
<!-- /.col-md-4 -->
</div>
<div class="row text-white">
<div class="col-lg-9">
<font size="4"><x1>สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน (สพฐ)</x1></font>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded',function(event){
var dataText = [ "ขอขอบคุณผู้ให้การสนับสนุนเพื่อพัฒนาการศึกษาทุกท่าน", "ร่วมบริจาคคนละนิดเพื่อพัฒนาการศึกษาของชาติ", "ทุกการบริจาคสามารถลดหย่อนภาษีได้ ", "ขอเชิญทุกท่านร่วมบริจาคเพื่อการศึกษา ค้นหาหน่วยงานที่ต้องการบริจาคได้จากระบบ"];
function typeWriter(text, i, fnCallback) {
if (i < (text.length)) {
document.querySelector("x1").innerHTML = text.substring(0, i+1) +'<span aria-hidden="true"></span>';
setTimeout(function() {
typeWriter(text, i + 1, fnCallback)
}, 100);
}
else if (typeof fnCallback == 'function') {
setTimeout(fnCallback, 700);
}
}
function StartTextAnimation(i) {
if (typeof dataText[i] == 'undefined'){
setTimeout(function() {
StartTextAnimation(0);
}, 5000);
}
if (i < dataText[i].length) {
typeWriter(dataText[i], 0, function(){
StartTextAnimation(i + 1);
});
}
}
StartTextAnimation(0);
});
</script>
</div>
<div class="col-lg-3">
<span class="pull-right">
<a href="#" data-toggle="modal" data-target="#modal_vdate">
<button class="btn btn-<?=$templates;?> btn-sm"><i class="fa fa-calendar" aria-hidden="true"></i> เลือกปี พ.ศ.</button>
</a>
<?php include ("vdate.php");?>
<a href="#" data-toggle="modal" data-target="#modal_template">
<button class="btn btn-<?=$templates;?> btn-sm"><i class="fa fa-cogs" aria-hidden="true"></i> Template</button>
</a>
<?php include ("template.php");?>
</span>
</div>
</div>
</div>
<!-- /.container -->
</div>
<!-- /.jumbotron -->
<!-- Page Content -->
<div class="container">
<?php
if(isset($_GET['page'])){
switch ($page)
{
case $page:
include ("pages/".$page.".php");
break;
}
} else {
include ("pages/home.php");
}
?>
</div>
<!-- /.container -->
<!-- Footer -->
<?php
include "footer.php";
?>
<!-- Footer -->
</body>
</html>