| 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
$id_phonenumber = $actiondata_db->q_one('phonenumber','phonenumber = "'.$_GET['p'].'"','id');
$view = $User_db->view_phone($id_phonenumber,$_SERVER["REMOTE_ADDR"],$_SERVER['HTTP_USER_AGENT']);
$id_shop = $actiondata_db->q_one('phonenumber','phonenumber = "'.$_GET['p'].'"','id_shop');
$sql_sh = array('table'=>'shop','where'=>"id = '".$id_shop."'");
$view_sh = $view_db->view($sql_sh);
$row_sh = $view_db->q($view_sh);
$txt_phonenumber = $Phone_class->phonecomma($row_sh['phone']);
?>
<?php
if(!$row_sh['image_cover']=='')
{
$image_cover = $upload.$folder.'file_manage/'.$row_sh['image_cover'];
}
else
{
$image_cover = '../images/bannertop.jpg';
}
if(!$row_sh['image_profile']=='')
{
$image_profile = $upload.$folder.'file_manage/'.$row_sh['image_profile'];
}
else
{
$image_profile = '../images/profile.jpg';
}
?>
<div class="row BoxProfile rounded-pill-start rounded-pill-end"
style="background-image:url(<?php echo $image_cover ?>);background-repeat:no-repeat;background-size: cover;">
<div class="col-md-12 Divprofile">
<div class="Divprofile2">
<img src="<?php echo $image_profile; ?>" width="200" height="200"
class="border border-light rounded-pill-start rounded-pill-end">
</div>
</div>
<div>
<img src="../images/icon_shoprecom.png" width="239" height="171" class="position-absolute img-fluid"
style="margin-top: -2.75rem;">
</div>
</div>
<div class="row mt-4 justify-content-center justify-content-md-end">
<div class="col-12 col-md-4 text-center mt-5 pt-5 mt-md-0 pt-md-0" style="margin-bottom:10px;">
<p class="HeadText text-light"> <?php echo $row_sh['nameShop']; ?></p>
<p class="HeadText text-light"><?php echo $txt_phonenumber; ?></p>
<div>
<a href="../review/" style="text-decoration:none;">
<?php echo $util_class->review_star_r2($score,30,10,0);?>
</a>
</div>
</div>
<div class="col-12 col-md-4 text-center text-md-end" style="margin-bottom:10px;">
<p class="TextUpdateShop mb-0 text-light" style="font-size:16px;">
เปิดร้าน <?php echo $util_class->day_num2_th($row_sh['createdate']); ?>
</p>
<p class="TextUpdateShop mb-0 text-light" style="font-size:16px;">
อัพเดท <?php echo $util_class->day_num2_th($row_sh['up_date']); ?>
</p>
<img src="../images/icon-11.png" alt="" width="239" class="img-fluid mt-4">
</div>
</div>
<div class="row mt-4">
<div class="col-12 text-center" style="border-radius: 1rem!important; border: 2px solid #d4a809!important;">
<p class="HeadText my-4 text-danger lh-1"><?php echo $row_sh['detail']; ?></p>
</div>
</div>
<div class="row" style="margin-top:25px;">
<div class="col-md-12 text-light" style="margin-bottom:10px;">
<p class="HeadText text-light" style="text-align:left">ติดต่อเรา</p>
<div style="padding-bottom:10px;">
<button type="button" onclick="show_div('Detail_shop')" class="btn btn-warning"
style="background-color:#c8ac52;border:1px solid #c8ac52;">รายละเอียดร้านค้า</button>
</div>
<div id="Detail_shop" style="display:none;">
<div class="form-horizontal">
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">เบอร์โทร :</label>
<div class="col-sm-10"> <span> <?php echo $txt_phonenumber; ?> </span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">อีเมล์ :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['email']; ?> </span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">ไลน์ไอดี :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['lineid']; ?> </span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">เฟชบุ๊ค :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['facebook']; ?> </span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">Instagram :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['ig']; ?></span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">Twwiter :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['twitter']; ?></span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">เว็บไซด์ :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['web']; ?></span> </div>
</div>
</div>
<div class="form-horizontal">
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">ที่อยู่ :</label>
<div class="col-sm-10"> <span style="font-size:14px;"> <?php echo $row_sh['addressshop']; ?> </span>
</div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">วิธีการชำระเงิน :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['payment']; ?> </span> </div>
</div>
<div class="mb-3 row">
<label for="inputEmail3" class="col-sm-2 control-label">วิธีการรับสินค้า :</label>
<div class="col-sm-10"> <span> <?php echo $row_sh['receiveProducts']; ?> </span> </div>
</div>
</div>
</div>
<style>
.Detail_shop_ber>.col-md-6 {
border: 0px solid #F00;
}
.Detail_shop_ber>.col-md-6>.box_ber {
border: 1px solid #F00;
max-width: 372px;
border: 2px solid #c8ac52;
height: 235px;
}
.Detail_shop_ber>.col-md-6>.box_ber>div {
border-bottom: 2px solid #c8ac52;
}
.Detail_shop_ber>.col-md-6>.box_ber>div>.row>.col-md-6 {
padding-bottom: 0px;
}
.div_nw {
border-left: 2px solid #c8ac52;
padding-top: 10px;
}
@media (max-width: 768px) {
.div_nw {
border-top: 2px solid #c8ac52;
padding-top: 0px;
margin-bottom: 10px;
border-left: 0px solid #c8ac52;
}
}
</style>
<div class="row Detail_shop_ber">
<?php
$list = array('table'=>'phonenumber','where'=>'phonenumber = "'.$_GET['p'].'"','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_totalnumber = $actiondata_db->q_one('totalnumber','number = "'.$row['total'].'"','title');
if($row_totalnumber==2){$row_totalnumber = '';}
$row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');
?>
<div class="col-md-6 col-lg-4" align="center">
<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['id'] ;?>')">
<span id="hidefavorite"></span>
<i class="fa fa-heart" style="font-size:24px;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-2"><?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">
<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-3 "> ราคา <?php echo number_format($row['price'])?> บาท </div>
</div>
<div class="row justify-content-center">
<div class="col-12 col-md-6 mb-3">
<button type="button" name="button" onclick="cart('<?php echo $row['id']; ?>')"
class="btn btn-danger-sim fs-5 fw-bold rounded-sim w-100 box-sim1 lh-sim">สั่งซื้อเบอร์</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function show_div(var1) {
var x = document.getElementById(var1);
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
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);
}
$("#alert-item-cart").show();
$("#alert-item-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');
}
};
xmlhttp.open("GET", "../include/ajax_cartlist.php", true);
xmlhttp.send();
}
});
}
</script>