Ejemplo n.º 1
0
$soluong = isset($_GET["soluong"]) ? $_GET["soluong"] : 1;
$masanpham = isset($_GET["masanpham"]) ? $_GET["masanpham"] : "";
$ac = isset($_GET["ac"]) ? $_GET["ac"] : "";
if ($ac == "add") {
    $cart->Add($masanpham, $soluong);
}
if ($ac == "del") {
    $cart->remove($masanpham);
}
if ($ac == "delAll") {
    $cart->removeAll();
}
?>
<div id="ng">
	<?php 
if ($cart->getNumItem() > 0) {
    ?>
		<div id="ct_link">
     		<div id="ct">
				<?php 
    $cart->show($giohang);
    ?>
    		 </div>
	    
            <div id="link">
                <a class="a" href="<?php 
    echo BASE_URL;
    ?>
/index.php">Tiếp tục mua hàng</a>
                <a class="a" href="<?php 
    echo BASE_URL;
Ejemplo n.º 2
0
?>
                </ul>
            </li>
            <li><a href="index.php?mod=lienhe">Liên Hệ</a></li>
         
        </ul>
        <div class="search_box">
				<form action="index.php?mod=timkiem" method="post">
        <input type="text" name="timkiem" value="Nhập nội dung cần tìm" onblur="if(this.value=='') this.value='Nhập nội dung cần tìm'" onfocus="if(this.value=='Nhập nội dung cần tìm') this.value=''">
        <input type="submit" value="">
			    </form>
			</div>
        </div>
   
  <div id="cart"><a href="?mod=giohang">Giỏ Hàng(<?php 
echo $cart->getNumItem();
?>
)</a></div>
        
  	
    </div>          
   </div>
    
    <div id="header">
		<?php 
include "jq/jquery.php";
?>
	
    </div>
    
	<div id="hinhnen"><img src="images/12242192_623022827835749_1941150849_n.jpg"  width="100%" height="100%" /></div>