-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjobs.php
130 lines (119 loc) · 4.6 KB
/
jobs.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
<?php include "auth.php" ?>
<?php include "conn.php" ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.sidebar {
left: -25px;
position: fixed;
width: 315px;
height: 100%;
background-color: #042331;
transition: all .5s ease;
}
.sidebar header {
font-size: 22px;
color: white;
text-align: center;
line-height: 70px;
background-color: #063146;
}
.sidebar ul a {
display: block;
height: 100%;
width: 100%;
line-height: 65px;
font-size: 20px;
padding-left: 1px;
color: white;
box-sizing: border-box;
border-top: 1px solid rgba(255, 255, 255, .1);
border-bottom: 1px solid black;
transition: .4s;
}
ul li:hover a {
padding-left: 40px;
}
.sidebar ul a i {
margin-right: 16px;
}
section {
padding-top: 15px;
transition: all .5s ease;
margin-left: 310px;
}
</style>
</head>
<body>
<?php
$id = $_SESSION['unique_id'];
$q = "select * from jobs_post where unique_id=$id";
$r = mysqli_query($c, $q);
$roww = mysqli_fetch_array($r);
?>
<div class="sidebar">
<header>Job Portal</header>
<ul>
<li><a href="dashboard.php"><i class="fas fa-qrcode"></i>Dashboard</a></li>
<li><a href="candidates_applied.php"><i class="fa-solid fa-user-group"></i>Candidates Applied</a></li>
<li><a href="#"><i class="fas fa-calendar-week"></i>Events</a></li>
<li><a href="#"><i class="fas fa-question-circle"></i>About</a></li>
<li><a href="#"><i class="fas fa-sliders-h"></i>Services</a></li>
<li><a href="#"><i class="fas fa-envelope"></i>Contact</a></li>
<li><a href="logout.php"><i class="fa-solid fa-right-from-bracket"></i>Logout</a></li>
</ul>
</div>
<section>
<div class="description" style="text-align: center;">
<h5>Candidates Applied for this "<span style="text-decoration: underline;"><?php echo $roww['position']; ?></span>" Role</h5>
</div>
<hr>
<div class="content">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Candidate Name</th>
<th scope="col">Number</th>
<th scope="col">Mail ID</th>
<th scope="col">Resume</th>
</tr>
</thead>
<tbody>
<tr>
<?php
$query = "select * from jobs_applied where job_id = $id";
$res = mysqli_query($c, $query);
$counter = 0;
while ($row = mysqli_fetch_array($res)) {
$counter += 1; ?>
<tr>
<td><?php echo $counter; ?></td>
<td><?php echo $row["cand_name"]; ?></td>
<td><?php echo $row["contact"]; ?></td>
<td> <?php echo $row["mail"]; ?></td>
<td><a target="_blank" href="uploads\<?php echo $row["resume"] ?>">Resume</a></td>
</tr>
<?php } ?>
</tr>
</tbody>
</table>
</div>
</section>
</body>