forked from beisong7/career
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
67 lines (54 loc) · 1.91 KB
/
search.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
<?php
$script['file'] = 'public/js/vendor/search.js';
$active = null;
include_once ('config/director.php');
include_once('layout/header.php');
include_once ('core/alldata.php');
include_once ('core/functionality.php');
?>
<br>
<?php
$jobs = allJobs();
//sort by interview date
usort($jobs, function($a,$b){
return $b['idate'] <=> $a['idate']; // <=> or - depending on your php engine version
});
//sort by when added
?>
<div class="">
<div class="banner text-center" >
<h2>Search for Jobs or Clients <span id="cname"></span></h2>
</div>
</div>
<br>
<div class="row" >
<div style="min-height: 680px; margin: 0 15px;">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-xs-12">
<span class="searchtitle">Search Options </span>
<br>
<span>
<input class="radio-inline radjobs" type="radio" name="searchopt" value="job" checked> Jobs<input class="radio-inline radclient" type="radio" name="searchopt" value="client"> Clients
<br>
</span>
</div>
<br>
<hr>
<div class="col-sm-12">
<input id="searchfield" type="search" class="form-control" placeholder="Enter search keyword like Name, Location, Job title, Job Industry, Salary, Position ..." autofocus>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="well" id="sres"> <span id="sresult">Please Enter a value to search</span> </div>
<div class="panel-body ">
<ul class="findings">
</ul>
</div>
</div>
</div>
</div>
<?php
include_once 'layout/footer.php';
?>