-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-profile.php
284 lines (168 loc) · 7.14 KB
/
my-profile.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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?php
session_start();
//Database Configuration File
include('includes/config.php');
//error_reporting(0);
//verifying Session
if(strlen($_SESSION['jsid'])==0)
{
header('location:logout.php');
}
else{ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jobseekers | Profile </title>
<!--CUSTOM CSS-->
<link href="css/custom.css" rel="stylesheet" type="text/css">
<!--BOOTSTRAP CSS-->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<!--COLOR CSS-->
<link href="css/color.css" rel="stylesheet" type="text/css">
<!--RESPONSIVE CSS-->
<link href="css/responsive.css" rel="stylesheet" type="text/css">
<!--OWL CAROUSEL CSS-->
<link href="css/owl.carousel.css" rel="stylesheet" type="text/css">
<!--FONTAWESOME CSS-->
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--SCROLL FOR SIDEBAR NAVIGATION-->
<link href="css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css">
<!--FAVICON ICON-->
<!--GOOGLE FONTS-->
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,500,700,900' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="theme-style-1">
<!--WRAPPER START-->
<div id="wrapper">
<!--HEADER START-->
<?php include('includes/header.php');?>
<!--HEADER END-->
<!--INNER BANNER START-->
<section id="inner-banner">
<div class="container">
<h1><?php echo htmlentities($_SESSION['jsfname']);?>'s Profile</h1>
</div>
</section>
<!--INNER BANNER END-->
<!--MAIN START-->
<div id="main">
<!--RECENT JOB SECTION START-->
<section class="resumes-section padd-tb">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-8">
<div class="resumes-content">
<div class="box">
<div class="frame">
<?php
//Getting User Id
$jsid=$_SESSION['jsid'];
// Fetching User Details
$sql = "SELECT * from tbljobseekers where id=:jid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':jid', $jsid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
foreach($results as $result)
{
?><a href="#"> <?php if($row->ProfilePic==''): ?>
<img src="images/account.png" width="60" height="60" >
<?php else: ?>
<img src="images/<?php echo $row->ProfilePic;?>" width="100" height="100" >
<?php endif;?></a></div>
<div class="text-box">
<h2><a href="#"><?php echo htmlentities($_SESSION['jsfname']);?></a></h2>
<h4>Reg Date: <?php echo htmlentities($result->RegDate);?></h4>
<div class="clearfix"> <strong><i class="fa fa-envelope"></i><?php echo htmlentities($result->EmailId);?></strong> <strong>
<i class="fa fa-phone"></i><a href="#"><?php echo htmlentities($result->ContactNumber);?></a></strong> </div>
<div class="btn-row"> <a href="Jobseekersresumes/<?php echo htmlentities($result->Resume);?>" class="resume" target="_blank"><i class="fa fa-file-text-o"></i>Resume</a> <a href="profile.php" class="login">Edit Profile</a> <a href="add-education.php" class="login">Add Education</a><a href="add-experience.php" class="login">Add Experience</a></div>
</div>
</div>
<div class="summary-box">
<h4>Summary About Me</h4>
<p><?php echo htmlentities($result->AboutMe);?>.</p>
</div>
<?php } ?>
<div class="summary-box">
<h4>Qualifications</h4>
<?php
//Getting User Id
$uid=$_SESSION['jsid'];
// Fetching User Education Details
$sql = "SELECT * from tbleducation where UserID=:uid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':uid', $uid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
foreach($results as $result)
{
?>
<div class="outer"> <strong class="title"><?php echo htmlentities($result->Qualification);?></strong>
<div class="col"> <span><?php echo htmlentities($result->PassingYear);?></span>
<p><strong style="color: blue">College/ School Name</strong>: <?php echo htmlentities($result->ClgorschName);?></p>
<p><strong style="color: blue">Stream</strong>: <?php echo htmlentities($result->Stream);?></p>
<p><strong style="color: blue">CGPA</strong>: <?php echo htmlentities($result->CGPA);?></p>
<p><strong style="color: blue">Percentage</strong>: <?php
if($result->Percentage=='0'):
echo 'NA';
else:
echo htmlentities($result->Percentage);
endif;
?></p>
</div>
</div>
<?php } ?>
</div>
<div class="summary-box">
<h4>Work Experience</h4>
<?php
//Getting User Id
$uid=$_SESSION['jsid'];
// Fetching User Education Details
$sql = "SELECT * from tblexperience where UserID=:uid";
$query = $dbh -> prepare($sql);
$query-> bindParam(':uid', $uid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
foreach($results as $result)
{
?>
<div class="outer"> <strong class="title"><?php echo htmlentities($result->Designation);?> at <b>(<?php echo htmlentities($result->EmployerName);?>)</b></strong>
<div class="col"> <span><?php echo htmlentities($result->FromDate);?> - <?php echo htmlentities($result->ToDate);?></span>
<p><strong style="color: blue">Type of Employment: </strong>: <?php echo htmlentities($result->EmployementType);?></p>
<p><strong style="color: blue">CTC: </strong>: <?php echo htmlentities($result->Ctc);?>(per month)</p>
<!-- <p><strong style="color: blue">Skills: </strong>: <?php echo htmlentities($result->Skills);?></p> -->
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</section>
<!--RECENT JOB SECTION END-->
</div>
<!--MAIN END-->
<!--FOOTER START-->
<?php include('includes/footer.php');?>
<!--FOOTER END-->
</div>
<!--WRAPPER END-->
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.velocity.min.js"></script>
<script src="js/jquery.kenburnsy.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/form.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
<?php } ?>