-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
103 lines (74 loc) · 3.15 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
session_start();
include("includes/db.php");
if(!isset($_SESSION['admin_email'])){
echo "<script>window.open('login.php','_self')</script>";
}else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Smart Search Optimization for B2b Ecommerce</title>
<link rel="stylesheet" href="css/bootstrap-337.min.css">
<link rel="stylesheet" href="font-awsome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="wrapper"><!-- #wrapper begin -->
<?php include("includes/sidebar.php"); ?>
<div id="page-wrapper"><!-- #page-wrapper begin -->
<div class="container-fluid"><!-- container-fluid begin -->
<?php
if(isset($_GET['dashboard'])){
include("dashboard.php");
}
else if(isset($_GET['orders'])){
include("orders.php");
}
else if(isset($_GET['view_products']))
{
include("product_view.php");
}
else if(isset($_GET['insert_product']))
{
include("product_insert.php");
}
else if(isset($_GET['insert_cat']))
{
include("insert_category.php");
}
else if(isset($_GET['view_cats']))
{
include("view_category.php");
}
else if(isset($_GET['view_customers']))
{
include("customer.php");
}
else if(isset($_GET['view_payments']))
{
include("payment.php");
}
else if(isset($_GET['delete_order']))
{
include("delete_order.php");
}
else if(isset($_GET['insert_user']))
{
include("insert_user.php");
}
else if(isset($_GET['delete_product']))
{
include("delete_product.php");
}
?>
</div><!-- container-fluid finish -->
</div><!-- #page-wrapper finish -->
</div><!-- wrapper finish -->
<script src="js/jquery-331.min.js"></script>
<script src="js/bootstrap-337.min.js"></script>
</body>
</html>
<?php } ?>