| Server IP : 104.21.37.246 / 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 : /home/cp648411/www/simded.com/include/ |
Upload File : |
<?php include('../include72/class.php');?>
<li class="listcart mx-md-3 text-center">
<div class="row bg-cart-alert text-light ">
เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ
</div>
</li>
<?php
foreach ($_SESSION["cart"] as $key => $value) {
$list = array('table'=>'carregistration','where'=>'carregistration = "'.$value.'"','order'=> "ORDER BY id DESC");
$view = $view_db->view($list);
$row = $view_db->q($view);
if(!$row['id']){
$list = array('table'=>'phonenumber','where'=>'id = "'.$value.'"','order'=> "ORDER BY id DESC");
$view = $view_db->view($list);
$row = $view_db->q($view);
$phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
$row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');
$list_shr = array('table'=>'shop','where'=>'id = "'.$row['id_shop'].'" ');
$view_shr = $view_db->view($list_shr);
$row_shr = $view_db->q($view_shr);
}else{
$phonenumber =$row['carregistration'];
$row_mobilenetwork = '';
$list_shr = array('table'=>'shop','where'=>'id = "'.$row['id_shop'].'" ');
$view_shr = $view_db->view($list_shr);
$row_shr = $view_db->q($view_shr);
}
$urlshop = $util_class->ck_expired_shop($row_shr['id']);
?>
<li class="listcart mx-md-3">
<div class="row bg-cart-alert text-light ">
<div class="col-2" style="text-align:left;padding-top:5px;" align="left">
<a
href="<?php echo $Url_shop.$row_shr['codeshop']?>"><?php echo imgprofile_shop($row_shr['image_profile'],'34'); ?>
</a>
</div>
<div class="col-10" align="left">
<div>
<a href="<?php echo $urlshop;?>" class="text-light"><?php echo $row_shr['nameShop'];?></a>
</div>
<div class=""><?php echo $phonenumber; ?>
<span class="float-end" style="font-weight:bold;"> <?php echo number_format($row['price'])?> บาท </span>
</div>
</div>
</div>
</li>
<?php
$total = $total + $row['price'];
}
?>
<li class="totalcart mx-md-3">
<div class="row bg-cart-alert text-light">
<div class="col-12" style="text-align:left;padding-top:5px;" align="left">
ราคารวม <?php echo number_format($total)?> บาท
</div>
<div class="col-12 pe-2" align="right">
<a onclick="link_cart()" class="btn btn-outline-danger rounded-2 btn_checkout">ชำระสินค้า</a>
</div>
</div>
</li>
<?php ?>