-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (53 loc) · 1.66 KB
/
Copy pathindex.php
File metadata and controls
55 lines (53 loc) · 1.66 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
<?php include_once "functions.php"; ?>
<!DOCTYPE html>
<html>
<head>
<title>Search Script</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link href="css/main.css" rel="stylesheet" id="main-css">
<link href="css/awesomplete.css" rel="stylesheet" id="awesomplete-css">
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="js/awesomplete.min.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<div id="imaginary_container">
<form id="form1">
<div class="input-group stylish-input-group">
<input type="text" id="searchInput1" class="form-control awesomplete" data-list="#myKeyWords" data-maxitems="5" placeholder="Search" />
<span class="input-group-addon">
<button type="submit" id="submitBtn1">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="suggestionList">
<div class="loader">
<img src="images/loader.gif" />
</div>
<div id="suggestionListData">
</div>
</div>
</div>
</div>
<ul id="myKeyWords" style="display: none;">
<?php $keywords = $mainSite->getSearchableKeywords(); ?>
<?php foreach ($keywords as $key => $keyword) { ?>
<?php if (strlen($keyword) > 2) { ?>
<li><?php echo $keyword ?></li>
<?php } ?>
<?php } ?>
</ul>
</div>
</body>
</html>