| Server IP : 172.67.216.113 / Your IP : 172.71.28.145 [ 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/themesv2/ |
Upload File : |
<?php for ($ib2=4; $ib2 < 7; $ib2++) { ?>
<div class="">
<?php
$sql_s2 = 'shop.id = phonenumber.id_shop AND shop.status = "1" AND shop.status_op = "1" AND shop.activate = "1" AND phonenumber.status = "1" ';
$max_rows2 = 10; // แสดงจำนวนแถวต่อหน้า
$page_number2 = $ib2;
if(isset($_GET['page_number']))
{
$page_number2 = $_GET['page_number'];
}
$all_array2 = array('table'=>'phonenumber,shop','where'=>$sql_s2);
$start_row2 = $page_number2 * $max_rows2;
$all_sql2 = $view_db->view($all_array2);
$all_result2 = $view_db->q_re($all_sql2);
$total_rows2 = $view_db->q_nr($all_result2);
$total_rows_num2 = $view_db->q_nr($all_result2);
$total_pages2 = ceil($total_rows2/$max_rows2)-1;
////////////////////////////////////////
$list2 = array('table'=>'phonenumber,shop','where'=>$sql_s2, 'limit'=> "$start_row2,$max_rows2",'order'=> "ORDER BY phonenumber.id DESC");
$view2 = $view_db->view($list2);
$result2 = $view_db->q_re($view2);
$num_tr2 = 1;
$num2 = 1+($page_number2*$max_rows2);
while($row2 = $view_db->q_ro($result2))
{
$phonenumber2 = $Phone_class->format_phonenumber($row2['phonenumber'],$row2['format']);
$row_mobilenetwork2 = $actiondata_db->q_one('mobilenetwork','id = "'.$row2['mobilenetwork'].'"','image');
$row_totalnumber2 = $actiondata_db->q_one('totalnumber','number = "'.$row2['total'].'"','title');
if($row_totalnumber2 == 2){$row_totalnumber2 = '';}
$list_shr2 = array('table'=>'shop','where'=>'id = "'.$row2['id_shop'].'" ');
$view_shr2 = $view_db->view($list_shr2);
$row_shr2 = $view_db->q($view_shr2);
$list_phr2 = array('table'=>'phonenumber','where'=>'phonenumber = "'.$row2['phonenumber'].'" ');
$view_phr2 = $view_db->view($list_phr2);
$row_phr2 = $view_db->q($view_phr2);
$countber2 = $util_class->countber($row_shr2['id']);
$txt_phonenumber2 = $Phone_class->phonecomma($row_shr2['phone']);
if($row_shr2['image_profile']){ $image_profile = $row_shr2['image_profile']; }
else { $image_profile2 = ''; }
$phonenumber2 = $Phone_class->format_phonenumber($row2['phonenumber'],$row2['format']);
$price2 = $row2['price']-1;
$total_rank2 = "";
$sym2= "";
if(@$row2['total']<= 40){ $total_rank2 = "C"; }
if(@$row2['total']>= 41 && @$row2['total']<= 45){ $total_rank2 = "C"; $sym2 = "+";}
if(@$row2['total']>= 46 && @$row2['total']<= 50){ $total_rank2 = "B"; $sym2 = "";}
if(@$row2['total']>= 51 && @$row2['total']<= 55){ $total_rank2 = "B"; $sym2 = "+";}
if(@$row2['total']>= 56 && @$row2['total']<= 60){ $total_rank2 = "A"; $sym2 = "";}
if(@$row2['total']>= 61 && @$row2['total']<= 65){ $total_rank2 = "A"; $sym2 = "+";}
if(@$row2['total']>= 66 && @$row2['total']<= 70){ $total_rank2 = "S"; $sym2 = "";}
if(@$row2['total']>= 71 ){ $total_rank2 = "S"; $sym2 = "+";}
?>
<div class="row mb-2 justify-content-start justify-content-md-center justify-content-md-start">
<div class="col-12 col-md-12 col-lg-12 pe-0 ps-3 ps-lg-1">
<div class="d-flex text-white align-items-center ps-0 ps-md-2 ps-lg-3">
<div class="btn custom-button2 rounded-pill py-0">
<a href="../cart/?p=<?php echo $row2['phonenumber'];?>" class="text-decoration-none px-lg-5">
<span class="BerDedToday-ber px-xxl-5 dxxl-flex align-items-center"><?php echo $phonenumber2; ?></span>
</a>
</div>
<span class="ms-3">ผลรวม</span>
<div class="btn custom-button3 rounded-circle ms-3 d-grid align-items-center">
<span class="BerDedToday-ber"><?php echo $row2['total']; ?></span>
</div>
<div class="btn custom-button3 rounded-circle ms-3 d-grid align-items-center">
<span class="BerDedToday-ber position-relative">
<?php echo $total_rank2; ?><?php echo $sym2; ?>
</span>
</span>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<?php } ?>