-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadvancedSearch.php
More file actions
127 lines (92 loc) · 6.07 KB
/
advancedSearch.php
File metadata and controls
127 lines (92 loc) · 6.07 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
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> HelpHub</title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="./advancestyle.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
</head>
<body>
<div class="col-12">
<div class="row">
<div class="col-12">
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Advanced search
</button>
<!-- Modal -->
<div class="modal fade modal-lg" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5 h" id="exampleModalLabel">Advanced Search</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="col-12">
<div class="row">
<div class="col-12">
<div class="row">
<div class="d-grid input-group d-md-flex justify-content-md-center mt-2 mb-2">
<input type="text" class="form-control border-danger" placeholder="Type Keyword to search....." id="basic_search_txt">
<span class="input-group-text border-danger" style="cursor: pointer;" id="basic-addon1"><i class="bi bi-search " style="color: gray;"></i></span>
</div>
<div class="d-grid mt-4 mb-3">
<select class="form-select border-danger" aria-label="Default select example" id="basic_search_select">
<option value="0" selected>Select Category</option>
<?php
require "connection.php";
$category_rs = Database::search("SELECT * FROM `category`");
$category_num = $category_rs->num_rows;
for ($x = 0; $x < $category_num; $x++) {
$category_data = $category_rs->fetch_assoc();
?>
<option value="<?php echo $category_data["id"]; ?>"><?php echo $category_data["c_name"]; ?></option>
<?php
}
?>
</select>
</div>
</div>
</div>
<div class="col-12">
<div class="row">
<div class="d-grid mt-4 mb-4">
<button class="btn text-light fw-bold" style="background-color: #f5683d;" type="button" onclick="advanceSearch(0);">Search</button>
</div>
</div>
</div>
<div class="col-12">
<hr class="border border-3 border-danger" />
</div>
<div class="col-12" id="advanceSearchResult">
<div class="row">
<div class="row ">
<div class="col-12 text-center">
<div class="row" id="view_area">
<div class="offset-5 col-2 mt-5">
<span class="fw-bold text-black-50"><i class="bi bi-search" style="font-size: 100px;"></i></span>
</div>
<div class="offset-3 col-6 mt-3 mb-5">
<span class="h4 text-black-50 fw-bold">No Items Searched Yet...</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="bootstrap.bundle.js"></script>
<script src="bootstrap.js"></script>
<script src="advance_script.js"></script>
</body>