-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume-database.php
135 lines (116 loc) · 5.49 KB
/
resume-database.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
<?php
//To Handle Session Variables on This Page
session_start();
//If user Not logged in then redirect them back to homepage.
if(empty($_SESSION['id_company'])) {
header("Location: dashboard_company.php");
exit();
}
require_once("db.php");
?>
<!doctype html>
<html lang="en">
<head>
<title>Company Dashboard</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/vendor/linearicons/style.css">
<link rel="stylesheet" href="assets/vendor/chartist/css/chartist-custom.css">
<link rel="stylesheet" href="dashboard.css">
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/demo.css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">
</head>
<body>
<div id="wrapper">
<div id="sidebar-nav" class="sidebar">
<div class="sidebar-scroll">
<nav>
<ul class="nav">
<li><a href="dashboard_company.php" class="active"><i class="lnr lnr-home"></i> <span>Dashboard</span></a></li>
<li><a href="edit-company.php" class=""><i class="lnr lnr-pencil"></i>Edit Profile</span></a></li>
<li><a href="create-job-post.php" class=""><i class="lnr lnr-calendar-full"></i></span>Create Job</span></a></li>
<li><a href="my-job-post.php" class=""><i class="lnr lnr-briefcase"></i> <span>My Job Posts</span></a></li>
<li><a href="job-applications.php" class=""><i class="lnr lnr-envelope"></i> <span>Job Application</span></a></li>
<li class="active"><a href="resume-database.php"><i class="lnr lnr-user"></i> Resumes</a></li>
<li class="active"><a href="company-settings.php"><i class="lnr lnr-cog"></i> Settings</a></li>
<li><a href="logout.php"><i class="lnr lnr-arrow-right-circle"></i> Logout</span></a></li>
</ul>
</nav>
</div>
</div>
<div class="main">
<div class="col-md-9 bg-white padding-2">
<h2>Talent Database</h2>
<p>In this section you can download resume of all candidates who applied to your job posts</p>
<div class="row margin-top-20">
<div class="col-md-12">
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<th>Candidate</th>
<th>Highest Qualification</th>
<th>Skills</th>
<th>City</th>
<th>State</th>
<th>Download Resume</th>
</thead>
<tbody>
<?php
$sql = "SELECT users.* FROM job_post INNER JOIN apply_job_post ON job_post.id_jobpost=apply_job_post.id_jobpost INNER JOIN users ON users.id_user=apply_job_post.id_user WHERE apply_job_post.id_company='$_SESSION[id_company]' GROUP BY users.id_user";
$result = $conn->query($sql);
if($result->num_rows > 0) {
while($row = $result->fetch_assoc())
{
$skills = $row['skills'];
$skills = explode(',', $skills);
?>
<tr>
<td><?php echo $row['firstname'].' '.$row['lastname']; ?></td>
<td><?php echo $row['qualification']; ?></td>
<td>
<?php
foreach ($skills as $value) {
echo ' <span class="label label-success">'.$value.'</span>';
}
?>
</td>
<td><?php echo $row['city']; ?></td>
<td><?php echo $row['state']; ?></td>
<td><a href="uploads/resume/<?php echo $row['resume']; ?>" download="<?php echo $row['firstname'].' Resume'; ?>"><i class="fa fa-file-pdf-o"></i></a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END MAIN -->
<div class="clearfix"></div>
<footer>
<div class="container-fluid">
<p class="copyright">© 2018 <a href="#" target="_blank">Job-Portal</a>. All Rights Reserved.</p>
</div>
</footer>
</div>
<!-- END WRAPPER -->
<!-- Javascript -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/vendor/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="assets/vendor/jquery.easy-pie-chart/jquery.easypiechart.min.js"></script>
<script src="assets/vendor/chartist/js/chartist.min.js"></script>
<script src="assets/scripts/klorofil-common.js"></script>
</body>
</html>