%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
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");
?>
<?PHP
session_start();
//echo "UserAccess : ". $_SESSION["UserAccess"];
//exit();
if($_SESSION["UserAccess"]=="")
{
header('Location: index.php');
exit();
}
?>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!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>
<body>
<div class="bg">
<div class="jumbotron text-center">
<h1>นำเข้ารูปภาพ Slide </h1>
<p>รูปภาพหน่วยงด้านบนควรทำให้มีขนาดเท่าๆกัน และออกแบบให้สวยงาม เพื่อความสวยงามของเว็บไซต์ </p>
</div>
<div class="container">
<div class="form-group"> <!-- fileToUpload -->
<form action="upload_img_slide.php" method="post" enctype="multipart/form-data">
<div class="input-group">
<div class="custom-file">
<input type="hidden" id="dep_id" name="dep_id" value="<?PHP echo $_GET['DepID']; ?>">
<input type="file" class="custom-file-input" name="fileToUpload" id="fileToUpload">
<label class="custom-file-label" for="inputGroupFile04">Choose file</label>
</div>
<div class="input-group-append">
<input class="btn btn-secondary" type="submit" value="Upload Image" name="submit" onclick="return Check()">
</div>
<label class="custom-file-label" id="strFileName"></label>
</div>
</form>
</div>
<!--
<form action="upload_img.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
/form>
-->
</div>
</div>
</div>
</body>
</html>
<script>
function Check() {
//alert(document.getElementById("fileToUpload").value);
if(document.getElementById("fileToUpload").value=="") {
swal("Warning job!", "ท่านยังไม่ได้เลือกไฟล์รูปภาพ", "warning");
return false;
}
return true;
}
</script>