403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hocthongminh.net-bk/public_html/site/components/khuyenmai/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hocthongminh.net-bk/public_html/site/components/khuyenmai/views/viewcart.php
<style type="text/css">
.subtotla {
}
.tongphu {
}
.tongcong {
}
</style>
<!--<script language="javascript">
function change_quantity()
{
	var cur_qty = $('#updates').val();
}
</script>-->
<section id="breadcrumb-wrapper">
    <div class="breadcrumb-content">
        <div class="wrapper">
            <div class="inner">
                <div class="breadcrumb-small"> <a href="<?=site?>" title="Kho máy văn phòng">Trang chủ</a> <span aria-hidden="true">/</span><span>Giỏ hàng</span> </div>
            </div>
        </div>
    </div>
</section>
<div id="PageContainer" class="is-moved-by-drawer">
    <main class="main-content" role="main">
    <section id="page-wrapper">
    <div class="wrapper">
			<?php
            if($cart){
            ?>
            <div class="inner">
                <form action="<?=site?>thanh-toan.html" method="post" class="col col-divided large-8 pb-0">
                <div class="cart-wrapper sm-touch-scroll">
                    <h1>Giỏ hàng</h1>
                    <table class="cart-table full table--responsive">
                        <thead class="cart__row cart__header-labels">
                            <tr>
                                <th class="text-center">Hình ảnh</th>
                                <th class="text-center">Thông tin sản phẩm</th>
                                <th class="text-center">Đơn giá</th>
                                <th class="text-center">Số lượng</th>
                                <th class="text-right">Tổng giá</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php
                            $i 			= 0;
                            $total 		= 0;
                            $tongphu 	= 0 ;
                            foreach ($cart as $rs) : 
                                $link = site.'san-pham/'.alias($rs['pro_name']).'-'.$rs['proid'].'.html';
                                $subtotal = $rs['nb_order']*$rs['pro_price'] ;
                                $tongphu = $tongphu + $subtotal ;
                                $total = $total + $subtotal;
                        ?>
                        <tr class="cart__row table__section">
                            <td data-label="Sản phẩm"><a href="<?=$link?>" class="cart__image"><img src="<?=urlimg?>products/100/<?=$rs['pro_img']?>" alt="<?=$rs['pro_name']?>"></a></td>
                            <td class="cart-product-title"><a href="<?=$link?>" class="h4" title="<?=$rs['pro_name']?>"> <?=$rs['pro_name']?> </a>
                                <!--<p>Phiên bản: Đỏ / 128GB</p>
                                <p>Thương hiệu: Apple</p>-->
                                <a href="<?=site?>ajax/removecart/<?=$i?>/<?=$rs['proid']?>" class="cart__remove"> <small>Xóa</small> </a></td>
                            <td class="cart-product-price" data-label="Đơn giá"><span class="h3"> <?=pricevn($rs['pro_price'])?> ₫ </span></td>
                            <td data-label="Số lượng"><div class="js-qty"><?=$rs['nb_order']?>
                                <!--<button type="button" class="js-qty__adjust js-qty__adjust--minus icon-fallback-text" data-id="<?=$rs['proid']?>" data-type="minus" data-qty="1"> 
                                    <span class="icon icon-minus" aria-hidden="true"></span> 
                                    <span class="fallback-text" aria-hidden="true">−</span> 
                                    <span class="visually-hidden">Giảm số lượng sản phẩm đi 1</span> 
                                </button>
                                <input type="number" class="js-qty__num" value="<?=$rs['nb_order']?>" min="1" data-id="<?=$rs['proid']?>" aria-label="quantity" pattern="[0-9]*" name="updates[]" id="soluong_<?=$rs['proid']?>">
                                <button type="button" class="js-qty__adjust js-qty__adjust--plus icon-fallback-text" data-id="<?=$rs['proid']?>" data-type="plus" data-qty="21"> 
                                    <span class="icon icon-plus" aria-hidden="true"></span> 
                                    <span class="fallback-text" aria-hidden="true">+</span> 
                                    <span class="visually-hidden">Tăng số lượng sản phẩm lên 1</span> 
                                </button>-->
                            </div></td>
                            <td data-label="Tổng giá" class="cart-product-price text-right"><span class="h3"> <?=pricevn($subtotal)?> ₫ </span></td>
                        </tr>
                        <?php 
                            $i++;
                            endforeach ;
                        ?>
                        </tbody>
                    </table>
                    <div class="grid cart__row">
                        <div class="grid__item two-thirds small--one-whole">
                            <!--<label for="CartSpecialInstructions">Chú thích cho chủ cửa hàng</label>
                            <textarea name="note" class="input-full" id="CartSpecialInstructions"></textarea>-->
                        </div>
                        <div class="grid__item text-right one-third small--one-whole">
                            <p> <span class="cart__subtotal-title">Tổng tiền</span> <span class="h3 cart__subtotal">
                                <?=pricevn($total)?>
                                ₫</span> </p>
                            <!--<button type="submit" name="update" class="btnCart update-cart">Cập nhật</button>-->
                            <button type="submit" name="checkout" id="checkout" class="btnCart">Thanh toán</button>
                        </div>
                    </div>
                </div>
                </form>
            </div>
        <?php 
		}
		else
		{
		?>
        <div class="large-12 col">
            <div class="col-inner">
                <div class="woocommerce">
                    <div class="text-center pt pb">
                        <p class="cart-empty lead"> Chưa có sản phẩm nào trong giỏ hàng. </p>
                        <p class="return-to-shop"> <a class="button primary wc-backward" href="<?=site?>san-pham.html"> Quay lại cửa hàng </a> </p>
                    </div>
                </div>
            </div>
            <!-- .col-inner --> 
        </div>
        <? } ?>
    </div>
    <!--end inner--> 
</div>
<!--end wrapper-->
</section>
</main>
</div>
<script language="javascript">
$(document).ready(function(e){
    $('.js-qty__adjust').click(function(e){
        var $this = $(this);
		var id = $this.data('id'); 
		var value = $('#soluong_'+ id).val();
		var type = $this.data('type'); 
		if(type=='minus')
		{
			value = parseInt(value) - 1 ;
			if(value==0) 
			{
				value = 1;
				alert("Chọn tối thiểu 1 sản phẩm");
			}
		}
		else
			value = parseInt(value) + 1;
			
		$('#soluong_'+ id).val(value);
    });
	$('#bt_submit').click(function(e){
        e.preventDefault();
		window.location = '<?=site?>thanh-toan.html';
    });
});
</script>
<!--<script id="AjaxQty" type="text/template">
<div class="ajaxcart__qty">
  <button type="button" class="ajaxcart__qty-adjust ajaxcart__qty--minus icon-fallback-text" data-id="{{key}}" data-qty="{{itemMinus}}">
	<span class="icon icon-minus" aria-hidden="true"></span>
	<span class="fallback-text" aria-hidden="true">&minus;</span>
	<span class="visually-hidden">Giảm số lượng sản phẩm đi 1</span>
  </button>
  <input type="text" class="ajaxcart__qty-num" value="{{itemQty}}" min="0" data-id="{{key}}" aria-label="quantity" pattern="[0-9]*">
  <button type="button" class="ajaxcart__qty-adjust ajaxcart__qty--plus icon-fallback-text" data-id="{{key}}" data-qty="{{itemAdd}}">
	<span class="icon icon-plus" aria-hidden="true"></span>
	<span class="fallback-text" aria-hidden="true">+</span>
	<span class="visually-hidden">Tăng số lượng sản phẩm lên 1</span>
  </button>
</div>
</script>-->
<!--<script id="JsQty" type="text/template">
    <div class="js-qty">
      <button type="button" class="js-qty__adjust js-qty__adjust--minus icon-fallback-text" data-id="{{key}}" data-qty="{{itemMinus}}">
        <span class="icon icon-minus" aria-hidden="true"></span>
        <span class="fallback-text" aria-hidden="true">&minus;</span>
        <span class="visually-hidden">Giảm số lượng sản phẩm đi 1</span>
      </button>
      <input type="number" class="js-qty__num" value="{{itemQty}}" min="1" data-id="{{key}}" aria-label="quantity" pattern="[0-9]*" name="{{inputName}}" id="{{inputId}}">
      <button type="button" class="js-qty__adjust js-qty__adjust--plus icon-fallback-text" data-id="{{key}}" data-qty="{{itemAdd}}">
        <span class="icon icon-plus" aria-hidden="true"></span>
        <span class="fallback-text" aria-hidden="true">+</span>
        <span class="visually-hidden">Tăng số lượng sản phẩm lên 1</span>
      </button>
    </div>
</script>-->

Youez - 2016 - github.com/yon3zu
LinuXploit