-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct-not-found.php
127 lines (77 loc) · 3.63 KB
/
product-not-found.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
include_once __DIR__ . "/assets/php/app.php";
if ( !empty( $_GET["product-slug"] ) )
{
$id = $_GET["product-slug"];
$message ='<h1 class="text-uppercase">Product Not Found</h1>'.
'<h2 class="mt-4" >The requested Product <b class="text-success" >' . $id .'</b> was not found.</h2>'.
'<h3>Check the URL <b class="text-success" >OR</b> check back later. </h3>';
$title = "Product Not Found";
}
elseif ( !empty( $_GET["product-id"] ) )
{
$id = $_GET["product-id"];
$message ='<h1 class="text-uppercase">Product Not Found</h1>'.
'<h2 class="mt-4" >The requested Product <b class="text-success" >' . $id .'</b> was not found.</h2>'.
'<h3>Check the URL <b class="text-success" >OR</b> check back later. </h3>';
$title = "Product Not Found";
}
elseif ( isset( $_GET["category-slug"] ) && !empty( $_GET["category-slug"] ) )
{
$id = $_GET["category-slug"];
$message ='<h1 class="text-uppercase">Category Not Found</h1>'.
'<h2 class="mt-4" >The requested Category <b class="text-success" >' . $id .'</b> has no products under this category.</h2>'.
'<h3>Check the URL <b class="text-success" >OR</b> check back later. </h3>';
$title = "Category Not Found";
}
elseif ( isset( $_GET["user-id"] ) && !empty( $_GET["user-id"] ) )
{
$id = $_GET["category-slug"];
$message = "USER NOT FOUND";
}
else
{
$message ='<h1 class="text-uppercase">Products Not Found</h1>'.
'<h2 class="mt-4" >There are No Products Yet. Check Back Soon.</h2>'
;
$title = "Products Not Found";
}
?>
<?php require_once 'assets/pages/head.php' ?>
<title> <?php echo $title ?> - <?php echo $_SESSION['site_title'] ?></title>
</head>
<body>
<div class="container-fluid">
<?php require_once 'assets/pages/navigation.php' ?>
<div class="contents container-fluid" >
<div class="page-contents w-100">
<div class="page-not-found-container">
<div class="title text-center">
<?php echo $message; ?>
<div class="mt-4" >
<a href="index.php" class="btn mx-3 mb-3 btn-success text-white">
<div class="icon"> <i class="fas fa-home"></i> </div>
<div class="text">Go Home</div>
</a>
<?php if( chechkIfLoggedIn() ): ?>
<a href="add-product.php" class="btn mx-3 mb-3 btn-success text-white">
<div class="icon"> <i class="fas fa-plus"></i> </div>
<div class="text">Create a New Product</div>
</a>
<a href="dashboard.php" class="btn mx-3 mb-3 btn-success text-white">
<div class="icon"> <i class="fas fa-dashboard"></i> </div>
<div class="text">Go to Dashboard</div>
</a>
<a href="add-category.php" class="btn mx-3 mb-3 btn-success text-white">
<div class="icon"> <i class="fas fa-tag"></i> </div>
<div class="text">Create a New Category</div>
</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>