-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (57 loc) · 2.11 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
session_start();
// session_destroy();
ob_start();
include_once "includes/header.php";
?>
<!-- Topbar Start -->
<?php
include_once 'Controller/Customer/Customer_c.php';
$customer = new Customer_c();
$customer->Customerava();
?>
<!-- end Topbar -->
<?php
if (isset($_GET['page'])) {
$page = $_GET['page'];
}else{
$page = 'index';
}
switch ($page) {
case 'index':
include_once 'includes/banner.php';
include_once 'includes/service.php';
include_once 'includes/brand.php';
include_once 'Controller/Product/Product_c.php';
$product = new Product_c();
$product->Product();
include_once 'includes/middle-banner.php';
include_once 'includes/news.php';
include_once 'includes/showroom.php';
break;
case 'login':
include_once 'Controller/Login_c.php';
$login = new Logincus_c();
$login->LoginC();
break;
case 'logout':
include_once 'View/logout.php';
break;
case 'profile':
include_once 'Controller/Customer/Customer_c.php';
$customer = new Customer_c();
$customer->Customer();
break;
case 'product':
include_once 'Controller/Product/Product_c.php';
$product = new Product_c();
$product->ProductDetail();
break;
default:
echo "Error 404, Page is not exists";
echo "<a href='index.php'>Go back</a>";
break;
}
?>
<?php include_once 'includes/footer.php'; ?>
<script src="assets/js/myScript.js?<?php echo fileatime('assets/js/myScript.js') ?>"></script>