Server IP : 103.233.192.212 / Your IP : 18.218.251.50 Web Server : Apache/2 System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : sumpatuan ( 1058) PHP Version : 5.5.38 Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sumpatuan/domains/sumpatuan.go.th/private_html/admin/data/ |
Upload File : |
<?php require_once('session_backend_administrator.php'); header('Content-Type: text/html; charset=UTF-8'); if($STT_login=="admin_login_true"){ if (!isset($_GET['view']) ){ echo "<SCRIPT type='text/javascript'> alert('เกิดข้อผิดพลาด ไม่พบหน้าข้อมูลที่ต้องการ'); window.location.replace('../backend-administrator'); </SCRIPT>"; exit; }else{ $view = $_GET['view']; switch($view){ case '1' : $id_dataother = '1'; $name_dataother = 'ประวัติความเป็นมา'; break; case '2' : $id_dataother = '2'; $name_dataother = 'ตราสัญลักษณ์'; break; case '3' : $id_dataother = '3'; $name_dataother = 'วิสัยทัศน์ และ พันธกิจ'; break; // case '4' : $id_dataother = '4'; $name_dataother = 'จำนวนหมู่บ้านประชากร'; break; case '5' : $id_dataother = '5'; $name_dataother = 'สภาพทั่วไป ลักษณะภูมิประเทศ'; break; case '6' : $id_dataother = '6'; $name_dataother = 'การเมืองการปกครอง'; break; case '7' : $id_dataother = '7'; $name_dataother = 'สภาพทางเศรษฐกิจ และ สังคม'; break; case '8' : $id_dataother = '8'; $name_dataother = 'สภาพทางการศึกษา ศาสนา วัฒนธรรม'; break; case '9' : $id_dataother = '9'; $name_dataother = 'การบริการพื้นที่ และ ทรัพยากรธรรมชาติ'; break; case '10' : $id_dataother = '10'; $name_dataother = 'นโยบายผู้บริหาร'; break; default: echo "<SCRIPT type='text/javascript'> alert('เกิดข้อผิดพลาด ไม่พบหน้าข้อมูลที่ต้องการ'); window.location.replace('../backend-administrator'); </SCRIPT>"; exit; break; } $sql_data = "SELECT * , CONCAT( DAY(str_to_date(`lastupdate_dataother`,'%d/%m/%Y')) ,'/', MONTH(str_to_date(`lastupdate_dataother`,'%d/%m/%Y')) ,'/', YEAR(str_to_date(`lastupdate_dataother`,'%d/%m/%Y'))+543 ) AS 'cv_lastupdate_dataother' FROM `data_dataother` WHERE `id_dataother`='$id_dataother' "; $qr_data = mysqli_query($con_db_administrator,$sql_data) or die( mysqli_error($con_db_administrator)); $rs_data = mysqli_fetch_array($qr_data); } }else{ echo "<SCRIPT type='text/javascript'> alert('กรุณาเข้าสู่ระบบ'); window.location.replace('../index'); </SCRIPT>"; exit; } ?> <!doctype html> <html lang="en"> <head> <?php include_once ("head.html"); ?> </head> <body class="" > <?php include_once ("menu.php"); ?> <div class="container pt-3 pb-4 " > <div class="row"> <div class="col text-secondary" > <div class="p-1 ps-2 box-link " ><a href="../backend-administrator" class="link-info">หน้าหลัก</a> / <?php echo $name_dataother; ?></div> </div> <div class="w-100 pb-4"></div> <div class="col m-auto " > <div class="bg-line-1"></div> </div> <div class="col-auto text-center"> <span class="h1 fw-700"><?php echo $name_dataother; ?></span> </div> <div class="col m-auto" > <div class="bg-line-1"></div> </div> </div> <div class="row mt-3 mb-4"> <div class="col"> <div class="w-100 overflow-x-auto"> <table class="table table-bordered mb-2 tball-mw" > <thead class="table-secondary "> <tr class="text-center "> <th style="width:84%">รายละเอียดข้อมูล</th> <th style="width:10%">สถานะ</th> <th style="width:6%">จัดการ</th> </tr> </thead> <tbody class="table-light fs-16"> <tr> <td > <span class="fw-700"><?php echo $rs_data["name_dataother"];?></span> <span class="fs-12 text-secondary fs-20 fw-300 fst-italic">*แก้ไขล่าสุด : <?php echo $rs_data["cv_lastupdate_dataother"];?></span> <hr class="hr-das mt-1 mb-4"> <?php if($rs_data["page_dataother"] ==""){ echo '<div class="w-100 text-center mt-5 mb-5 text-secondary opacity-50 fs-20 fw-500" ><i class="fas fa-eye-slash"></i> ไม่พบรายละเอียดข้อมูล</div>'; }else{ echo $rs_data["page_dataother"]; } ?> <div class="w-100 mt-4 mb-3 text-center"> <?php $sql_cpwimg = "SELECT COUNT(*) FROM `data_filedoc_dataother` WHERE `id_tbdata_filedoc_dataother`='$id_dataother' "; $qr_cpwimg = mysqli_query($con_db_administrator, $sql_cpwimg) or trigger_error("SQL", E_USER_ERROR); $rs_cpwimg = mysqli_fetch_row($qr_cpwimg); $sql_pwimg = "SELECT * FROM `data_filedoc_dataother` WHERE `id_tbdata_filedoc_dataother`='$id_dataother' "; $qr_pwimg = mysqli_query($con_db_administrator,$sql_pwimg) or die( mysqli_error($con_db_administrator)); if($rs_cpwimg[0]==1){ while($rs_pwimg = mysqli_fetch_array($qr_pwimg)){ echo '<div class="w-100 text-center mt-3"><img src="../../'.$rs_pwimg['path_filedoc_dataother'].'" class="img-fluid mh_1pic"></div>'; } }else if($rs_cpwimg[0]>1){ echo '<div id="slideAB" class="carousel slide carousel-dark bg-white border mt-3" data-bs-ride="carousel"> <div class="carousel-inner">'; $c_row=0; while($rs_pwimg = mysqli_fetch_array($qr_pwimg)){ $c_row++; if($c_row==1){ echo '<div class="carousel-item active text-center animated fadeIn" data-bs-interval="2000"> <img src="../../'.$rs_pwimg['path_filedoc_dataother'].'" class="img-fluid mh_pic"> </div>'; }else{ echo '<div class="carousel-item text-center animated fadeIn" data-bs-interval="2000"> <img src="../../'.$rs_pwimg['path_filedoc_dataother'].'" class="img-fluid mh_pic"> </div>'; } } echo ' </div> <button class="carousel-control-prev" type="button" data-bs-target="#slideAB" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </button> <button class="carousel-control-next" type="button" data-bs-target="#slideAB" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </button> </div>'; }; ?> </div> </td> <td class="text-center"> <?php $stt_data = $rs_data["stt_dataother"]; switch ( $stt_data) { case "0": echo '<span class="badge rounded-pill text-bg-success" data-bs-toggle="tooltip" data-bs-title="ข้อมูลแสดงบนหน้าเว็บหลัก">แสดงข้อมูล</span>'; break; case "1": echo '<span class="badge rounded-pill text-bg-danger" data-bs-toggle="tooltip" data-bs-title="ข้อมูลจะไม่แสดงบนหน้าเว็บหลัก">ไม่แสดงข้อมูล</span>'; break; } ?> </td> <td class="text-center fs-18"> <a href="dataother-edit?id=<?php echo $rs_data["id_dataother"];?>&name=<?php echo $rs_data["name_dataother"];?>" class="link-dark" data-bs-toggle="tooltip" data-bs-title="ปรับปรุงข้อมูล"><i class="fas fa-edit" ></i></a> </td> </tr> </tbody> </table> </div> </div> </div> <?php include_once ("../footer.php"); ?> <script> const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)) </script> </div> </body> </html>