-
Notifications
You must be signed in to change notification settings - Fork 1
/
pelamar.php
103 lines (92 loc) · 3.38 KB
/
pelamar.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
<?php
// panggil koneksi db
require "db.php";
// panggil file functions.php
require "functions.php";
// aktifkan session
session_start();
// ambil id
$id = $_GET["id"];
$pelamar = mysqli_fetch_assoc(mysqli_query($db,"SELECT * from pelamar where id = $id"));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Pelamar - <?= $pelamar["nama"] ?></title>
<?php require "headtags.php" ?>
</head>
<body>
<!-- navbar -->
<?php require "navbar.php" ?>
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card shadow-lg mt-5">
<div class="card-header">
<h3 class="text-center">Profil Pengguna</h3>
</div>
<div class="card-body ml-4 p-4">
<div class="row">
<div class="col-md-4 text-center my-auto">
<img src="assets/pelamar/<?= $pelamar['foto']?>" class="img-fluid" style="max-width:80%;height:auto" alt="">
</div>
<div class="col-md-8">
<table cellpadding=10px>
<tr>
<td>ID Pelamar</td>
<td>:</td>
<td><?= $pelamar["id"] ?></td>
</tr>
<tr>
<td>Nama</td>
<td>:</td>
<td><?= $pelamar["nama"] ?></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><?= $pelamar["email"] ?></td>
</tr>
<tr>
<td>Nomor Telp</td>
<td>:</td>
<td><?= $pelamar["telp"] ?></td>
</tr>
<tr>
<td>Jenis Kelamin</td>
<td>:</td>
<td><?= $pelamar["gender"] ?></td>
</tr>
<tr>
<td>Alamat</td>
<td>:</td>
<td><?= $pelamar["alamat"] ?></td>
</tr>
<td>CV</td>
<td>:</td>
<td><a href="assets/cv/<?= $pelamar['cv'] ?>"><?= $pelamar['cv'] ?></a></td>
<tr>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer -->
<?php require "footer.php" ?>
</body>
</html>
<?php
if (!isset($_GET["id"])){
echo "
<script>
Swal.fire('Halaman Error !','Halaman Tidak Menerima Informasi Pelamar','error').then(function(){
window.location = 'index.php';
});
</script>
";
}
?>