-
Notifications
You must be signed in to change notification settings - Fork 0
/
expanded-query.php
39 lines (30 loc) · 995 Bytes
/
expanded-query.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
<?php
require_once dirname(__FILE__) .'/config/config.php';
require_once dirname(__FILE__) . '/Model/SearchBuilder.php';
require_once dirname(__FILE__) . '/Model/TrackActivity.php';
$query='';
$expanquery='';
if(isset($_GET['q'])){
$query = $_GET['q'];
$expanquery = $_SESSION['synonym'];
}
$pageTitle = $query;
?>
<?php include dirname(__FILE__) . '/views/header.php'; ?>
<div class="container">
<?php include dirname(__FILE__) . '/views/breadcrumb.php'; ?>
<div class="row">
<h3>Synonyms of "<?php echo htmlspecialchars($query); ?>"</h3>
</div>
<div class="panel-body">
<ol class="no-disk">
<?php foreach ($expanquery as $item):
?>
<li>
<span><?php echo $item; ?></span>
</li>
<?php endforeach; ?>
</ol>
</div>
</div>
<?php include dirname(__FILE__) . '/views/footer.php'; ?>