Ejemplo n.º 1
0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php 
include "../class/gh.class.php";
$a = new GH();
$hinhthuc = $_GET["hinhthuc"];
$txtHT = $_GET["txtHT"];
$txtDT = $_GET["txtDT"];
$txtDC = $_GET["txtDC"];
if ($hinhthuc == 1) {
    ?>
<p><h3>Thanh Toán Thành Công</h3></p>
      <p>Đơn hàng của bạn: <?php 
    echo "{$txtHT}";
    ?>
</p>
      <p>Mã đơn hàng:</p><!--code php để lấy mã đơn hàng từ csdl -->
      <p>Tổng tiền: <?php 
    echo $a->getTongTien();
    ?>
</p><!--code php để lấy thành tiền từ bảng hóa đơn từ csdl -->
      <p>Ngày đặt hàng:</p><!--code php để lấy ngày đặt hàng từ bảng hóa đơn từ csdl -->
      <hr>
      <p>Thông tin giao hàng</p>
      <p>Người nhận: <?php 
    echo "{$txtHT}";
    ?>
</p>
      <p>Số Điện Thoai: <?php 
    echo "{$txtDT}";
    ?>
</p>
Ejemplo n.º 2
0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php 
//define("BASE_URL", "http://localhost:8080/WEBSITE");
//include "../../class/gh.class.php";
//include "class/gh.class.php";
$cart = new GH();
if (!isset($_SESSION)) {
    session_start();
}
//khỏi động session
$giohang = isset($_GET["giohang"]) ? $_GET["giohang"] : "";
$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>	
				<?php 
    $cart->show($giohang);
Ejemplo n.º 3
0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php 
//define("BASE_URL", "http://localhost:8080/WEBSITE");
//include "../../class/gh.class.php";
//include "class/gh.class.php";
$cart = new GH();
if (!isset($_SESSION)) {
    session_start();
}
//khỏi động session
$giohang = isset($_GET["giohang"]) ? $_GET["giohang"] : "";
$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 
Ejemplo n.º 4
0
<?php

if (!isset($_SESSION)) {
    session_start();
}
//khởi động session
define("BASE_URL", "http://localhost:8080/WEBSITE");
//khởi tạo một biến cố định có tên BASE_URL tương đương http://localhost:8080/WEBSITE
include "class/b.class.php";
//vì gần như tất cả các file đều được nhúng vào index nên gọi cả 2 file class vô 1 lần trong index, những file chỉ cần sử dụng mà k cần gọi
include "class/gh.class.php";
$b = new B();
$cart = new GH();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="style/style.css" rel="stylesheet" />
<script type="text/javascript" src="jq/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jq/js/jssor.slider.debug.js"></script>
<script type="text/javascript" src="jq/js/jssor.slider.min.js"></script>
<script type="text/javascript" src="jq/js/jssor.slider.mini.js"></script>

<title>Space</title>
</head>


<body>
  <div id="menu1">
  	<div id="menu">