| Server IP : 104.21.37.246 / 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 : /home2/cp648411/public_html/simded.com/cart/ |
Upload File : |
<?php
include('../include72/header.php');
include('../themesv2/menu.php');
?>
<?php
foreach ($_POST as $key => $value)
{
$_SESSION[$key] = $value;
}
?>
<div class="bg-3-cover">
<?php include('../themesv2/menu2.php'); ?>
<div class="container mt-3">
<div class="row">
<div class="col-12 text-center">
<p class="HeadText text-center text-spacing-md fw-bold text-light">ยืนยันการสั่งซื้อของคุณ</p>
</div>
</div>
</div>
<div class="container">
<div class="row text-light">
<div class="col-12 fs-5 fw-bold">
<p>ที่อยู่การจัดส่ง</p>
<p class="mb-0">รายละเอียด</p>
<p class="mb-0">คุณ<?php echo $_SESSION['name'] .' '. $_SESSION['lastname']?></p>
<p class="mb-0"><?php echo $_SESSION['address']?> จ. <?php
$list_prv = array('table'=>'province','where'=>'id = "'.$_SESSION['province'].'"');
$view_prv = $view_db->view($list_prv);
$row_prv = $view_db->q($view_prv);
echo $row_prv['name'];?> <?php echo $_SESSION['zip']; ?>
</p>
<p class="text-danger-sim mb-0">รูปแบบการจัดส่ง :
<?php
$list_sip = array('table'=>'ems_type','where'=>'id = "'.$_SESSION['shipping'].'"');
$view_sip = $view_db->view($list_sip);
$row_sip = $view_db->q($view_sip);
echo $row_sip['name'];
?>
</p>
<p class="mb-0">โทร.<?php $phone = $Phone_class->format_phonenumber($_SESSION['phone'],1); echo $phone; ?></p>
<p class="mb-0">Email : <?php echo $_SESSION['email']?></p>
</div>
</div>
</div>
<div class="container pt-3 pb-3 text-spacing-md fs-5 fw-bold text-light">
<div class="row p-2 border-color-sim rounded-pill-end rounded-pill-start text-light text-center">
<div class="col-4 bg-color-sim border-color-sim rounded-pill-start2">
<p class="my-2">เบอร์ที่สั่งซื้อ</p>
</div>
<div class="col-2 bg-color-sim border-color-sim">
<p class="my-2">ร้านค้า</p>
</div>
<div class="col-2 bg-color-sim border-color-sim">
<p class="my-2">ผลรวม</p>
</div>
<div class="col-2 bg-color-sim border-color-sim">
<p class="my-2">เครือข่าย</p>
</div>
<div class="col-2 bg-color-sim border-color-sim rounded-pill-end2">
<p class="my-2">ราคา/บาท</p>
</div>
</div>
<?php if(count($_SESSION["cart"]) == 0) { ?>
<div class="row px-2 pt-2 pb-0 border-color-sim border-top-0 rounded-bottom-sim" style="margin-top: -20px;">
<div class="col-12 mt-2-box">
<div class="my-2 text-center">
<p>ไม่พบข้อมูล</p>
</div>
</div>
</div>
<?php }else{
$total = 0;
$i=0;
$count_n=count($_SESSION["cart"])-1;
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);
if(!$row){
$list = array('table'=>'carregistration','where'=>'carregistration = "'.$value.'"','order'=> "ORDER BY id DESC");
$view = $view_db->view($list);
$row = $view_db->q($view);
$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);
}else{
$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);
$urlshop = $util_class->ck_expired_shop($row_shr['id']);
}
?>
<span id="alert_listcart"></span>
<div class="row px-2 <?php echo ($i==0)?'pt-2':''; ?> pb-0 border-color-sim border-top-0 text-center" style="<?php echo ($i==0)?'margin-top: -20px;':''; ?>">
<div class="col-4 <?php echo ($i==0)?'mt-2-box':''; ?> border-end-sim-box align-items-center d-flex justify-content-center">
<span class="pe-2"><?php echo $phonenumber; ?></span>
</div>
<div class="col-2 <?php echo ($i==0)?'mt-2-box':''; ?> border-end-sim-box align-items-center d-flex justify-content-center">
<?php echo imgprofile_shop($row_shr['image_profile'],'34'); ?>
<a href="<?php echo $Url_shop.$row_shr['codeshop']?>" class="ps-2 text-decoration-none text-dark">
<?php echo $row_shr['nameShop'];?>
</a>
</div>
<div class="col-2 <?php echo ($i==0)?'mt-2-box':''; ?> border-end-sim-box d-flex align-items-center justify-content-center">
[<?php echo $row['total']?>]
</div>
<div class="col-2 <?php echo ($i==0)?'mt-2-box':''; ?> border-end-sim-box d-flex align-items-center justify-content-center">
<?php if($row_mobilenetwork != ''){ ?>
<img src="<?php echo $upload ?>mobilenetwork/<?php echo $row_mobilenetwork ?>" width="50">
<?php } ?>
</div>
<div class="col-2 mt-2 d-flex align-items-center justify-content-center">
<?php echo number_format($row['price'])?>
</div>
</div>
<?php
$total = $total + $row['price'];
$i++;
}
}
?>
<?php $sip = $row_sip['price'];?>
<?php $sumtotal = $total + $sip ;?>
<div class="row px-2 pb-0 border-color-sim border-top-0 text-center text-spacing-md fs-5 fw-bold" style="<?php echo ($i==0)?'margin-top: -20px;':''; ?>min-height: 53px">
<div class="col-6 border-end-sim-box text-center">
</div>
<div class="col-4 border-end-sim-box align-items-center d-flex justify-content-center">
<span class="pe-2"><?php echo $row_sip['name']; ?></span>
</div>
<div class="col-2 d-flex align-items-center justify-content-center">
<?php echo number_format($sip)?>
</div>
</div>
<div class="row px-2 pb-0 border-color-sim border-top-0 rounded-bottom-sim text-center" style="<?php echo ($i==0)?'margin-top: -20px;':''; ?>min-height: 53px">
<div class="col-6 border-end-sim-box text-center">
</div>
<div class="col-4 border-end-sim-box align-items-center d-flex justify-content-center">
<span class="pe-2">ราคารวมทั้งหมด</span>
</div>
<div class="col-2 d-flex align-items-center justify-content-center">
<?php echo number_format($sumtotal)?>
</div>
</div>
<div class="row mt-3 text-spacing-md fs-5 fw-bold">
<div class="col-6">
<button type="button" onclick="favoriteDelete()" class="btn btn-danger-sim px-4 text-spacing-md fs-5 fw-bold">ลบ</button>
</div>
<div class="col-6 text-end">
<button type="button" class="btn btn-primary-sim px-4 text-spacing-md fs-5 fw-bold">ย้อนกลับ</button>
</div>
</div>
<div class="row my-3 justify-content-end ">
<div class="col-auto">
<a href="#" onclick="delete_product_all()" class="text-danger-sim text-decoration-none text-spacing-md fs-5 fw-bold">ยกเลิกการสั่งซื้อ</a>
</div>
</div>
<form action="cart_saveorder.php" class="fm_conorder" method="post" name="fm_conorder" id="fm_conorder">
<div class="row text-center">
<div class="col-12 mb-3">
<div class="form-group">
<input type="radio" name="check" id=""> ขอรับรองว่าเป็นความจริง
</div>
</div>
<div class="col-12">
<button type="submit" class="btn btn-danger-sim px-4 text-spacing-md fs-4 fw-bold">ยืนยันการสั่งซื้อ</button>
</div>
</div>
</form>
</div>
</div>
<?php
include('../themesv2/footer.php');
include('../include/footer_js.php');
?>