-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchbyfunction.php
68 lines (66 loc) · 1.7 KB
/
searchbyfunction.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
<style type="text/css">
#content {
min-height: 500px;
}
#content .panel {
padding: 10px;
}
.panel-body label {
font-size: 20px;
}
.panel-body input {
font-size: 15px;
}
.panel-body > .row {
margin-bottom:10px;
}
</style>
<form action="index.php?q=result&searchfor=byfunction" method="POST">
<section id="content">
<div class="container content">
<div class="col-sm-2"></div>
<div class="col-sm-8">
<div class="panel">
<div class="panel-header"></div>
<div class="panel-body">
<div class="row">
<div class="col-sm-12 search1">
<label class="col-sm-3">SEARCH:</label>
<div class="col-sm-9">
<input class="form-control" type="" name="SEARCH" placeholder="Search For">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 search1">
<label class="col-sm-3">FUNCTION:</label>
<div class="col-sm-9">
<select class="form-control" name="CATEGORY">
<option value="">All</option>
<?php
$sql = "SELECT * FROM `tblcategory`";
$mydb->setQuery($sql);
$res = $mydb->loadResultList();
foreach ($res as $row) {
echo '<option>'.$row->CATEGORY.'</option>';
}
?>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 search1">
<label class="col-sm-3"></label>
<div class="col-sm-9">
<input type="submit" name="submit" class="btn btn-success">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-2"></div>
</div>
</section>
</form>