-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
211 lines (188 loc) · 9.38 KB
/
header.php
File metadata and controls
211 lines (188 loc) · 9.38 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php
include 'conn.php';
// session_start();
?>
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/Candidates_specific.css">
<link rel="stylesheet" href="./css/candidate_list.css">
<link rel="stylesheet" href="css/contact_list.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<nav class="sidebar_main">
<ul class="sidebar_main-list">
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/Menu.png" class="menuForSidebar" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-1.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-2.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-3.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-4.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-5.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-6.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-7.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-8.png" />
</a>
</li>
<li class="sidebar_main-listItems">
<a href="#" class="sidebar_main-listlinks">
<img src="./img/nav-ele-9.png" />
</a>
</li>
</ul>
</nav>
<div class="container">
<img src="./img/hamburger-menu-icon.svg" alt="" class="hamburger">
<nav class="nav_main">
<h2 class="logo_heading">Analysed</h2>
<form action="" method="post">
<div class="input-field">
<input type="text" name="searchForJobs" id="inputSearch" class="searchForJobs"
placeholder="Search for Jobs" />
<button class="searchButton">
<img src="./img/search-icon-blue.png" />
</button>
</div>
</form>
<div class="profileInNav">
<div class="notificationsDiv">
<ul>
<li>
<?php
// contact_list
if(isset($_POST['searchForJobs'])){
$search = $_POST['searchForJobs'];
$search = preg_replace("#[^0-9a-z]#i","",$search);
$sql= "select * from addcontact WHERE fname like '%$search%' OR lname like '%$search%' ";
$run = mysqli_query($con,$sql);
$i= 1;
while($row =mysqli_fetch_assoc($run)) {
?>
<div class="singletask_myTasks">
<input type="checkbox" name="checkBoxItem" style="border: 1px solid #3598db;">
<img src="upload/<?php echo $row['image']; ?>" width="65" height="65">
<span>
<p id="k1"><?php echo $row['fname'] ; ?></p>
<p id="k2">Company Name</p>
</span>
     
<span>
<p class="sub_1"><?php echo $row['job_title'] ; ?></p>
<p id="k2"><?php echo $row['company_name'];?></p>
</span> 
<span>
<p class="sub_1"><?php echo $row['phone'];?></p>
<p class="sub_1" style="line-height: 0.5;"><?php echo $row['email'];?></p>
</span>  
<span style="color:#979797">
<p><img src="img/location-pin.png" width="15" height="16"><?php echo $row['city'];?></p>
</span>  
<span>
<p id="k2">Added on
<span style="color:#333333"> 05-05-2020</span></o>
<div class="button-div_myTasks">
<p style="color:#3598DB"> Edit <i class="fa fa-edit" aria-hidden="true"></i>
<span style="font-size:14px;color:#EC4551">     Delete
<i class="fa fa-trash" aria-hidden="true"></i></span>
</p>
</div>
</span>
</div>
<?php }} ?>
</li>
<li>
<?php
// candidates_list
//checking for the condition to meet
if(isset($_POST['searchForJobs'])){
//if the condition is met assingnig value of search to variable
$search = $_POST['searchForJobs'];
$search = preg_replace("#[^0-9a-z]#i","",$search);
//sql query to check all the rows with required value
$sql= "select * from candidates WHERE firstname like '%$search%' OR lastname like '%$search%' ";
$run = mysqli_query($con,$sql);
$i= 1;
//printing values of all the rows with required parameter
while($row =mysqli_fetch_assoc($run)) {
?>
<div class="list">
<input type="checkbox">
<div class="added"><span style="color:979797">05-05-2020</span> <br>#JB13069</div>
<img src="upload/<?php echo $row['image']; ?>" width="70" height="70" alt="">
<div class="uploaded">Uploaded by<br>
<?php echo $row['firstname']; ?></div>
<div class="added1"><span
style="color:979797"><?php echo $row['companyName'] ; ?></span><br><?php echo $row['currentTitle'];?>
</div><br>
<div class="added2"><span
style="color:979797">Status</span><br><?php echo $row['Industry'] ; ?></div>
<p href="#"> Peek <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15"
fill="currentColor" class="bi bi-eye-fill" viewBox="0 0 16 16">
<path d="M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z" />
<path
d="M0 8s3-5.5 8-5.5S16 8 16 8s-3 5.5-8 5.5S0 8 0 8zm8 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z" />
</svg></p>
</div>
<?php }} ?>
</li>
</ul>
</div>
<img src="./img/mail-icon-blue.png" alt="" class="notificationProfileInNav" />
<img src="./img/notif-icon-blue.png" alt="" class="notificationProfileInNavNoti" />
<section class="profileInfoInNav">
<img src="./img/Profile-pic.png" alt="" class="profilePicInNav" />
<span class="nameInNav">John Doe</span>
<a href="#" class="dropDownMenu_nav">
<i class="fa fa-angle-down" aria-hidden="true"></i>
</a>
<div class="dropDownDiv_nav">
<ul>
<li>
<a href="profile.php">Profile</a>
</li>
<li>
<a href="#" style="color: #51C46D">Logout</a>
</li>
</ul>
</div>
</section>
</div>
</nav>
</div>
<script src="./js/index.js"></script>