-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
95 lines (76 loc) · 2.56 KB
/
Copy pathindex.php
File metadata and controls
95 lines (76 loc) · 2.56 KB
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
<!DOCTYPE html>
<?php
include 'model/connect.php';
include 'model/main.php';
include 'model/user.php';
?>
<html lang="en">
<header>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo ucfirst($ctrl);?></title>
</header>
<body>
<?php
if ($ctrl != 'login') {
?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./assets/css/style.css" />
<div id="main">
<!-- header -->
<?php
include "view/include/header.php";
?>
<!-- header end -->
<div id="body">
<?php
/* Including the controller file. */
include 'controller/' . $ctrl . '.php';
?>
</div>
<?php
/* Including the footer.php file. */
include 'view/include/footer.php';
?>
</div>
<div class="modal fade" id="Modal-search">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<!-- Modal body -->
<div class="modal-body" style="border: none">
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
<div class="container p-5">
<h1>Search Products</h1>
<form action="">
<div class="row">
<div class="col-4">
<select name="typeSearch" id="typeSearch" class="w-100">
<option value="Product">Product</option>
<option value="Docs">Docs</option>
<option value="Blog">Blog</option>
</select>
</div>
<div class="col-8">
<input id="Modal-input-search" type="text" placeholder="Start typing and press Enter to search" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="./assets/js/script.js"></script>
<?php
} else {
include 'controller/' . $ctrl . '.php';
}
?>
</body>
</html>