-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsearch_results.php
50 lines (39 loc) · 1.5 KB
/
search_results.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
<?php
$ini_array = parse_ini_file("config.ini");
$path = $ini_array['path'];
//echo $_SESSION['userid'];
// ONLY USED FOR TESTING PURPOSES AND SHOULD BE REMOVED
//$_SESSION['user_id'] = 1;
//$_SESSION['full_name'] = 'Karim Elawaad';
//////////////////////////////////////////////////////
?>
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].$path.'/includes/notifications.html.php'; ?>
<script type="text/javascript" src="js/search_results.js"></script>
<link rel="stylesheet" href="css/search_results.css">
<link rel="stylesheet" type="text/css" href="css/navbar.css">
<meta charset='utf-8'>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].$path.'/includes/header.inc.html.php'; ?>
<form autocomplete="off" id="search-form" action="search.php" method="post">
<input type="text" id="search-query" name="query"><br>
</form>
<div class="tab">
<button class="tablinks" id="tab1" onclick="changeTab(event, 'name')">Name</button>
<button class="tablinks" id="tab2" onclick="changeTab(event, 'email')">Email</button>
<button class="tablinks" id="tab3" onclick="changeTab(event, 'hometown')">Hometown</button>
<button class="tablinks" id="tab4" onclick="changeTab(event, 'posts')">Posts</button>
</div>
<div id="name" class="tabcontent">
</div>
<div id="email" class="tabcontent">
</div>
<div id="hometown" class="tabcontent">
</div>
<div id="posts" class="tabcontent">
</div>
</body>
</html>