-
Notifications
You must be signed in to change notification settings - Fork 0
/
employee-detail.php
741 lines (519 loc) · 27.7 KB
/
employee-detail.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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
<!doctype html>
<html lang="en">
<?php
require 'constants/settings.php';
require 'constants/check-login.php';
require 'constants/db_config.php';
if (isset($_GET['empid'])) {
$empid = $_GET['empid'];
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_users WHERE role = 'employee' AND member_no = :empid");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
header("location:./");
}else{
foreach($result as $row)
{
$myfname = $row['first_name'];
$mylname = $row['last_name'];
$bdate = $row['bdate'];
$bmonth = $row['bmonth'];
$byear = $row['byear'];
$mycountry = $row['country'];
$mycity = $row['city'];
$myphone = $row['phone'];
$about = $row['about'];
$empavatar = $row['avatar'];
$current_year = date('Y');
$myage = $current_year - $byear;
$myedu = $row['education'];
$mytitle = $row['title'];
$mymail = $row['email'];
}
}
}catch(PDOException $e)
{
}
}else{
header("location:./");
}
?>
<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>Bwire Jobs - <?php echo "$myfname"; ?> <?php echo "$mylname"; ?></title>
<meta name="description" content="Online Job Management / Job Portal" />
<meta name="keywords" content="job, work, resume, applicants, application, employee, employer, hire, hiring, human resource management, hr, online job management, company, worker, career, recruiting, recruitment" />
<meta name="author" content="BwireSoft">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:image" content="http://<?php echo "$actual_link"; ?>/images/banner.jpg" />
<meta property="og:image:secure_url" content="https://<?php echo "$actual_link"; ?>/images/banner.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="500" />
<meta property="og:image:height" content="300" />
<meta property="og:image:alt" content="Bwire Jobs" />
<meta property="og:description" content="Online Job Management / Job Portal" />
<link rel="shortcut icon" href="images/ico/favicon.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="images/ico/favicon.png">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css" media="screen">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/component.css" rel="stylesheet">
<link rel="stylesheet" href="icons/linearicons/style.css">
<link rel="stylesheet" href="icons/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="icons/simple-line-icons/css/simple-line-icons.css">
<link rel="stylesheet" href="icons/ionicons/css/ionicons.css">
<link rel="stylesheet" href="icons/pe-icon-7-stroke/css/pe-icon-7-stroke.css">
<link rel="stylesheet" href="icons/rivolicons/style.css">
<link rel="stylesheet" href="icons/flaticon-line-icon-set/flaticon-line-icon-set.css">
<link rel="stylesheet" href="icons/flaticon-streamline-outline/flaticon-streamline-outline.css">
<link rel="stylesheet" href="icons/flaticon-thick-icons/flaticon-thick.css">
<link rel="stylesheet" href="icons/flaticon-ventures/flaticon-ventures.css">
<link href="css/style.css" rel="stylesheet">
</head>
<style>
.autofit2 {
height:110px;
width:120px;
object-fit:cover;
}
</style>
<body class="not-transparent-header">
<div class="container-wrapper">
<header id="header">
<nav class="navbar navbar-default navbar-fixed-top navbar-sticky-function">
<div class="container">
<div class="logo-wrapper">
<div class="logo">
<a href="./"><img src="images/logo.png" alt="Logo" /></a>
</div>
</div>
<div id="navbar" class="navbar-nav-wrapper navbar-arrow">
<ul class="nav navbar-nav" id="responsive-menu">
<li>
<a href="./">Home</a>
</li>
<li>
<a href="job-list.php">Job List</a>
</li>
<li>
<a href="employers.php">Employers</a>
</li>
<li>
<a href="employees.php">Employees</a>
</li>
<li>
<a href="contact.php">Contact Us</a>
</li>
</ul>
</div>
<div class="nav-mini-wrapper">
<ul class="nav-mini sign-in">
<?php
if ($user_online == true) {
print '
<li><a href="logout.php">logout</a></li>
<li><a href="'.$myrole.'">Profile</a></li>';
}else{
print '
<li><a href="login.php">login</a></li>
<li><a data-toggle="modal" href="#registerModal">register</a></li>';
}
?>
</ul>
</div>
</div>
<div id="slicknav-mobile"></div>
</nav>
<div id="registerModal" class="modal fade login-box-wrapper" tabindex="-1" style="display: none;" data-backdrop="static" data-keyboard="false" data-replace="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title text-center">Create your account for free</h4>
</div>
<div class="modal-body">
<div class="row gap-20">
<div class="col-sm-6 col-md-6">
<a href="register.php?p=Employer" class="btn btn-facebook btn-block mb-5-xs">Register as Employer</a>
</div>
<div class="col-sm-6 col-md-6">
<a href="register.php?p=Employee" class="btn btn-facebook btn-block mb-5-xs">Register as Employee</a>
</div>
</div>
</div>
<div class="modal-footer text-center">
<button type="button" data-dismiss="modal" class="btn btn-primary btn-inverse">Close</button>
</div>
</div>
</header>
<div class="main-wrapper">
<div class="breadcrumb-wrapper">
<div class="container">
<ol class="breadcrumb-list booking-step">
<li><a href="employees.php">All Employees</a></li>
<li><span><?php echo "$myfname"; ?> <?php echo "$mylname"; ?></span></li>
</ol>
</div>
</div>
<div class="section sm">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="employee-detail-wrapper">
<div class="employee-detail-header text-center">
<div class="image">
<?php
if ($empavatar == null) {
print '<center><img class="img-circle autofit2" src="images/default.jpg" alt="image" /></center>';
}else{
echo '<center><img class="img-circle autofit2" alt="image" src="data:image/jpeg;base64,'.base64_encode($empavatar).'"/></center>';
}
?>
</div>
<h2 class="heading mb-15"><?php echo "$myfname"; ?> <?php echo "$mylname"; ?></h2>
<p class="location"><i class="fa fa-map-marker"></i> <?php echo "$mycountry"; ?>, <?php echo "$mycity"; ?><span class="mh-5">|</span> <i class="fa fa-phone"></i> <?php echo "$myphone"; ?></p>
<ul class="meta-list clearfix">
<li>
<h4 class="heading">Birth Day:</h4>
<?php echo "$bdate"; ?>/<?php echo "$bmonth"; ?>/<?php echo "$byear"; ?>
</li>
<li>
<h4 class="heading">Age:</h4>
<?php echo "$myage"; ?>-year-old
</li>
<li>
<h4 class="heading">Education:</h4>
<?php echo "$myedu"; ?> in <?php echo "$mytitle"; ?>
</li>
<li>
<h4 class="heading">Email: </h4>
<?php echo "$mymail"; ?>
</li>
</ul>
</div>
<div class="employee-detail-company-overview mt-40 clearfix">
<h3>Introduce my self</h3>
<p><?php echo "$about"; ?></p>
<div class="row">
<div class="col-sm-12">
<h3>Education</h3>
<ul class="employee-detail-list">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_academic_qualification WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
?>
<li>
<h5><?php echo $row['course']; ?> </h5>
<p class="text-muted font-italic">Level - <?php echo $row['level']; ?> , <?php echo $row['timeframe']; ?><span class="font600 text-primary"> <?php echo $row['institution']; ?></span> <?php echo $row['country']; ?></p>
<p><a target="_blank" class="btn btn-primary btn-sm mb-5 mb-0-sm" href="view-certificate.php?id=<?php echo $row['id']; ?>">View Certificate</a></p>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
</div>
</div>
<h3>Work Experience</h3>
<ul class="employee-detail-list">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_experience WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
?>
<li>
<h5><?php echo $row['title']; ?> </h5>
<p class="text-muted font-italic"><?php echo $row['start_date']; ?> to <?php echo $row['end_date']; ?><span class="font600 text-primary"> <?php echo $row['institution']; ?></span></p>
<p>Supervisor : <span class="font600 text-primary"> <?php echo $row['supervisor']; ?></span> , Phone : <span class="font600 text-primary"> <?php echo $row['supervisor_phone']; ?></span> <br><?php echo $row['duties']; ?></p>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
<h3>Training & Workshop</h3>
<ul class="employee-detail-list">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_training WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
$certificate = $row['certificate'];
?>
<li>
<h5><?php echo $row['training']; ?> </h5>
<p class="text-muted font-italic"><span class="font600 text-primary"> <?php echo $row['institution']; ?></span> <?php echo $row['timeframe']; ?></p>
<?php
if ($certificate == "") {
}else{
?>
<p><a target="_blank" class="btn btn-primary btn-sm mb-5 mb-0-sm" href="view-certificate-b.php?id=<?php echo $row['id']; ?>">View Certificate</a></p>
<?php
}
?>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
<h3>Professional Qualifications</h3>
<ul class="employee-detail-list">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_professional_qualification WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
$certificate = $row['certificate'];
?>
<li>
<h5><?php echo $row['title']; ?> </h5>
<p class="text-muted font-italic"><?php echo $row['timeframe']; ?><span class="font600 text-primary"> <?php echo $row['institution']; ?></span> <?php echo $row['country']; ?></p>
<p><a target="_blank" class="btn btn-primary btn-sm mb-5 mb-0-sm" href="view-certificate-c.php?id=<?php echo $row['id']; ?>">View Certificate</a></p>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
<h3>Other Attachments</h3>
<ul class="employee-detail-list">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_other_attachments WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
?>
<li>
<h5><?php echo $row['title']; ?> </h5>
<p class="font600 text-primary"><?php echo $row['issuer']; ?></p>
<p><a target="_blank" class="btn btn-primary btn-sm mb-5 mb-0-sm" href="view-attachment.php?id=<?php echo $row['id']; ?>">View Attachment</a></p>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
<h3>Language Proficiency</h3>
<ul class="employee-detail-list">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_language WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
?>
<li>
<h5><?php echo $row['language']; ?> </h5>
<p class="text-muted font-italic">Speaking <span class="font600 text-primary"> <?php echo $row['speak']; ?></span> , Reading <span class="font600 text-primary"> <?php echo $row['reading']; ?></span> , Writing <span class="font600 text-primary"> <?php echo $row['writing']; ?></span></p>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
<h3>Referees</h3>
<ul class="list-icon">
<?php
require 'constants/db_config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM tbl_referees WHERE member_no = :empid ORDER BY id");
$stmt->bindParam(':empid', $empid);
$stmt->execute();
$result = $stmt->fetchAll();
$rec = count($result);
if ($rec == "0") {
}else{
foreach($result as $row)
{
?>
<li>
<div class="icon">
<i class="flaticon-line-icon-set-user-1"></i>
</div>
<h5><?php echo $row['ref_name']; ?></h5>
<p><?php echo $row['ref_title']; ?> <span class="font600 text-primary"><?php echo $row['institution']; ?></span></p>
<p>Email : <a href="mailto:<?php echo $row['ref_mail']; ?>"><?php echo $row['ref_mail']; ?></a></p>
<p>Phone : <a href="tel:<?php echo $row['ref_phone']; ?>"><?php echo $row['ref_phone']; ?></a></p>
</li>
<?php
}
}
}catch(PDOException $e)
{
} ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer-wrapper">
<div class="main-footer">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="footer-about-us">
<h5 class="footer-title">About Bwire Jobs</h5>
<p>Bwire Jobs is a job portal, online job management system developed by Bwire C Mashauri in february 2018.</p>
</div>
</div>
<div class="col-sm-6 col-md-5 mt-30-xs">
<h5 class="footer-title">Quick Links</h5>
<ul class="footer-menu clearfix">
<li><a href="./">Home</a></li>
<li><a href="job-list.php">Job List</a></li>
<li><a href="employers.php">Employers</a></li>
<li><a href="employees.php">Employees</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="#">Go to top</a></li>
</ul>
</div>
</div>
</div>
<div class="col-sm-12 col-md-3 mt-30-sm">
<h5 class="footer-title">Bwire Jobs Contact</h5>
<p>Address : Dar es salaam, Tanzania PO.BOX 14859</p>
<p>Email : <a href="mailto:[email protected]">[email protected]</a></p>
<p>Phone : <a href="tel:+255689938643">+255 689 938 643</a></p>
</div>
</div>
</div>
</div>
<div class="bottom-footer">
<div class="container">
<div class="row">
<div class="col-sm-4 col-md-4">
<p class="copy-right">© Copyright <?php echo date('Y'); ?> BwireSoft</p>
</div>
<div class="col-sm-4 col-md-4">
<ul class="bottom-footer-menu">
<li><a >Developed by Bwire Charles Mashauri</a></li>
</ul>
</div>
<div class="col-sm-4 col-md-4">
<ul class="bottom-footer-menu for-social">
<li><a href="<?php echo "$tw"; ?>"><i class="ri ri-twitter" data-toggle="tooltip" data-placement="top" title="twitter"></i></a></li>
<li><a href="<?php echo "$fb"; ?>"><i class="ri ri-facebook" data-toggle="tooltip" data-placement="top" title="facebook"></i></a></li>
<li><a href="<?php echo "$ig"; ?>"><i class="ri ri-instagram" data-toggle="tooltip" data-placement="top" title="instagram"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
</div>
<div id="back-to-top">
<a href="#"><i class="ion-ios-arrow-up"></i></a>
</div>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-modalmanager.js"></script>
<script type="text/javascript" src="js/bootstrap-modal.js"></script>
<script type="text/javascript" src="js/smoothscroll.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.waypoints.min.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript" src="js/jquery.slicknav.min.js"></script>
<script type="text/javascript" src="js/jquery.placeholder.min.js"></script>
<script type="text/javascript" src="js/bootstrap-tokenfield.js"></script>
<script type="text/javascript" src="js/typeahead.bundle.min.js"></script>
<script type="text/javascript" src="js/bootstrap3-wysihtml5.min.js"></script>
<script type="text/javascript" src="js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="js/jquery-filestyle.min.js"></script>
<script type="text/javascript" src="js/bootstrap-select.js"></script>
<script type="text/javascript" src="js/ion.rangeSlider.min.js"></script>
<script type="text/javascript" src="js/handlebars.min.js"></script>
<script type="text/javascript" src="js/jquery.countimator.js"></script>
<script type="text/javascript" src="js/jquery.countimator.wheel.js"></script>
<script type="text/javascript" src="js/slick.min.js"></script>
<script type="text/javascript" src="js/easy-ticker.js"></script>
<script type="text/javascript" src="js/jquery.introLoader.min.js"></script>
<script type="text/javascript" src="js/jquery.responsivegrid.js"></script>
<script type="text/javascript" src="js/customs.js"></script>
</body>
</html>