-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch_result.php
161 lines (144 loc) · 6.73 KB
/
search_result.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
set_include_path($_SERVER['DOCUMENT_ROOT'].'/raw/controller');
require_once('Search.php');
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Search Result Page</title>
<meta name="description" content="Creative CV is a HTML resume template for professionals. Built with Bootstrap 4, Now UI Kit and FontAwesome, this modern and responsive design template is perfect to showcase your portfolio, skils and experience."/>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
<link href="css/aos.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="styles/main.css" rel="stylesheet">
<style>
input[type=searchtext] {
width: 130px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
font-size: 16px;
background-color: transparent;
background-image: url('searchicon.png');
background-position: 10px 10px;
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
-webkit-transition: width 0.4s ease-in-out;
transition: width 0.4s ease-in-out;
}
input[type=searchtext]:focus {
width: 100%;
}
::placeholder {
color: white;
opacity: 1; /* Firefox */
</style>
</head>
<body id="top">
<header>
<div class="profile-page sidebar-collapse">
<nav class="navbar navbar-expand-lg fixed-top navbar-transparent bg-primary" color-on-scroll="400">
<div class="container">
<div class="navbar-translate"><a class="navbar-brand" href="#" rel="tooltip">HOME</a>
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-bar bar1"></span><span class="navbar-toggler-bar bar2"></span><span class="navbar-toggler-bar bar3"></span></button>
</div>
<div class="navbar-translate"><a class="navbar-brand" href="#" rel="tooltip">About Us</a>
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-bar bar1"></span><span class="navbar-toggler-bar bar2"></span><span class="navbar-toggler-bar bar3"></span></button>
</div>
<div class="navbar-translate"><a class="navbar-brand" href="#" rel="tooltip">Achievements</a>
<button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-bar bar1"></span><span class="navbar-toggler-bar bar2"></span><span class="navbar-toggler-bar bar3"></span></button>
</div>
<div class="collapse navbar-collapse justify-content-end" id="navigation">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link smooth-scroll" href="#"></a></li>
<li class="nav-item"><a class="nav-link smooth-scroll" href="#"></a></li>
</ul>
</div>
</div>
</nav>
</div>
</header>
<div class="page-content">
<div>
<div class="profile-page">
<div class="wrapper">
<div class="page-header page-header-small" filter-color="black">
<div class="page-header-image" data-parallax="true" style="background-image: url('images/home-background.jpg');"></div>
<div class="container">
<div class="content-center">
<div class="h2 text-center mb-2 title">Search for Profiles/ Blogs....</div>
<form action="./search_result.php" method="post" >
<input type="searchtext" name="search" placeholder="Search A Member.." style=" color:white">
</form>
</div>
</div>
</div>
</div>
</div>
<div class="section" id="notifications">
<div class="container cc-experience">
<div class="h4 text-center mb-4 title">Search Result</div>
<?php
$index=0;
while($index<$memberResult)
{
echo
'<div class="card">
<div class="row">
<div class="col-md-3 bg-primary" data-aos="fade-right" data-aos-offset="50" data-aos-duration="500">
<div class="card-body cc-experience-header">'.
'<div class="cc-profile-image"><a href="PublicProfile.php?srp='.$member[$index]['MemberID'].'">'.'<img src="'.$member[$index]['ProPic'].'" alt="Image"/></a></div>'.
'</div>
</div>
<div class="col-md-9" data-aos="fade-left" data-aos-offset="50" data-aos-duration="500">
<div class="card-body">'.
'<div class="h5">Result Type: Profile</div>'.
'<div class="h5">'.$member[$index]['Name'].'</div>'.
'<p><b>'.'Position in BAC:'.$member[$index]['Position'].'</b></p>'.
'<footer> click on the photo to go to the persons profile </footer>
</div>
</div>
</div>
</div>';
$index=$index+1;
}
$index=0;
while ($index<$blogResult)
{
echo
'<div class="card">
<div class="row">
<div class="col-md-3 bg-primary" data-aos="fade-right" data-aos-offset="50" data-aos-duration="500">
<div class="card-body cc-experience-header">'.
'<div class="cc-profile-image"><a href="blog-post.php?pid='.$blogs[$index]['PostId'].'">'.'<img src="'.$blogs[$index]['File1'].'" alt="Image"/></a></div>'.
'</div>
</div>'.
'<div class="col-md-9" data-aos="fade-left" data-aos-offset="50" data-aos-duration="500">
<div class="card-body">'.
'<div class="h5">Result Type: Blog</div>'.
'<div class="h5">'.$blogs[$index]['Name'].'</div>'.
'<div class="h6">'.$blogs[$index]['Date'].'</div>'.
'<div class="h6">'.$blogs[$index]['Email'].'</div>'.
'</div>'.
'</div>
</div>
</div>';
$index=$index+1;
}
?>
</div>
</div>
</div>
</div>
<script src="js/core/jquery.3.2.1.min.js"></script>
<script src="js/core/popper.min.js"></script>
<script src="js/core/bootstrap.min.js"></script>
<script src="js/now-ui-kit.js?v=1.1.0"></script>
<script src="js/aos.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>