| Server IP : 172.67.216.113 / Your IP : 104.23.243.33 [ 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/simsalmon/control/include/ |
Upload File : |
<?php
$partclass = '../../';
include("../../control/classmain.php");
function imgprofile_shop($img,$size)
{
if($img == '')
{
$text = '<img src="../../../images/b1.jpg" width="'.$size.'" height="'.$size.'" class="ImgProfile">';
}
else
{
$text = '<img src="../../../redbag/file_manage/'. $img.'" width="'.$size.'" height="'.$size.'" style="border-radius:30px;" />';
}
return $text;
}
?>
<li class="alert_cart">เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ</li>
<?php
foreach ($_SESSION["cart"] as $key => $value)
{
$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);
?>
<li class="listcart">
<div class="row">
<div class="col-xs-2" style="text-align:left;padding-top:5px;" align="left">
<a href="<?php echo '../home';?>"><?php echo imgprofile_shop($row_shr['image_profile'],'34'); ?></a>
</div>
<div class="col-xs-10" align="left">
<?php
$urlshop = $util_class->ck_expired_shop($row_shr['id']);
?>
<div style="font-size:18px;"><a href="<?php echo '../home';?>" style="color:#333"><?php echo $row_shr['nameShop'];?></a> </div>
<div class=""><?php echo $phonenumber; ?> <span style="color:#F00;font-weight:bold;"> <?php echo number_format($row['price'])?> บาท </span> </div>
</div>
</div>
</li>
<?php
$total = $total + $row['price'];
}
?>
<li class="totalcart">
<div class="row">
<div class="col-xs-12 col-md-7" style="text-align:left;padding-top:5px;font-size:16px;" align="left">
ราคารวม <?php echo number_format($total)?> บาท
</div>
<div class="col-xs-12 col-md-4" align="right">
<a target="_blank" onclick="link_cart()" class="btn btn-danger btn_checkout">ชำระสินค้า</a>
</div>
</div>
</li>