%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.154.253.140 / Your IP : 216.73.216.138 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/admin/ |
Upload File : |
<?PHP
session_start();
if($_SESSION["UserAccess"]=="")
{
header('Location: index.php');
exit();
}
?>
<?php
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/gijgo@1.9.6/js/gijgo.min.js" type="text/javascript"></script>
<link href="https://cdn.jsdelivr.net/npm/gijgo@1.9.6/css/gijgo.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css" />
<link rel="stylesheet" href="grid-gallery.css">
<!DOCTYPE html>
<html>
<style>
.jumbotron {
background: rgb(200, 54, 54); /* This is for ie8 and below */
background: rgba(133, 193, 233, 0.5);
}
.bg {
/* The image used */
background-image: url(<?PHP echo $filePath; ?>);
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<body>
<div class="bg">
<div class="jumbotron text-center">
<h1>VDO </h1>
<p>บันทึกข้อมูล VDO เพื่อนนำเสนอในหน้าแรกของเว็บไซต์...</p>
</div>
<div class="container">
<div class="form-group"> <!-- fileToUpload -->
<form action="save_vdo.php" method="post">
<div class="col-12 form-group">
VDO Title :
</div>
<div class="col-12 form-group">
<input class="form-control" type="text" placeholder="หัวข้อ VDO นำเสนอ" name="txt_title" id="txt_title">
</div>
<div class="col-12 form-group">
VDO Create Date :
</div>
<div class="col-12 form-group">
<input type="hidden" id="vdo_date" name="vdo_date" value="">
<input id="vdo_dt" width="276" name="vdo_dt">
<script>
$('#vdo_dt').datepicker({
uiLibrary: 'bootstrap4'
});
</script>
</div>
<div class="col-12 form-group">
VDO Detail :
</div>
<div class="col-12 form-group">
<textarea class="form-control" id="txt_detail" rows="3" name="txt_detail"></textarea>
</div>
<div class="col-12 form-group">
URL VDO :
</div>
<div class="col-12 form-group">
<input class="form-control" type="text" placeholder="ลิ้ง VDO" name="url_vdo" id="url_vdo">
</div>
<div class="col-12 form-group">
<input type="submit" name="submit" value="บันทึกข้อมูล" class="btn btn-primary btn-lg btn-block" onclick="return CheckData()"/>
</div>
</from>
</div>
</div>
</body>
</html>
<script>
function CheckData() {
if(document.getElementById("txt_title").value=="")
{
swal("Warning", "กรุณาระบุหัวข้อ VDO นำเสนอด้วย", "warning");
return false;
} else if(document.getElementById("vdo_dt").value == "") {
swal("Bad job!", "ไม่ได้ระบุ 'วันที่'", "warning");
return false;
} else if(document.getElementById("txt_detail").value=="")
{
swal("Warning", "กรุณาระบุรายละเอียด VDO นำเสนอด้วย", "warning");
return false;
} else if(document.getElementById("url_vdo").value=="")
{
swal("Warning", "กรุณาระบุลิ้ง VDO (URL VDO) นำเสนอด้วย", "warning");
return false;
}
document.getElementById("vdo_date").value = document.getElementById("vdo_dt").value;
}
</script>