-
Notifications
You must be signed in to change notification settings - Fork 1
/
surat-perusahaan.php
62 lines (53 loc) · 1.52 KB
/
surat-perusahaan.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
<?php
// panggil koneksi db
require "db.php";
// panggil file functions.php
require "functions.php";
// aktifkan session
session_start();
$id = $_GET["id"];
$lamaran = mysqli_query($db, "SELECT * FROM lamaran where id = $id");
$lamaran = mysqli_fetch_assoc($lamaran);
$idPelamar = $lamaran["idPelamar"];
$pelamar = mysqli_fetch_assoc(mysqli_query($db,"SELECT * from pelamar where id = $idPelamar"));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Surat Panggilan</title>
<?php require "headtags.php" ?>
</head>
<body>
<?php require "navbar.php" ?>
<div class="col-md-6 offset-md-3 card shadow-lg mt-5">
<div class="card-header text-center">
<h3>Surat Panggilan</h3>
</div>
<div class="card-body p-5">
<?= $lamaran["pesanPerusahaan"] ?>
</div>
</div>
<?php require "footer.php" ?>
</body>
</html>
<?php
if (!isset($_SESSION["pelamar"])){
echo "
<script>
Swal.fire('AKSES DITOLAK','Anda Tidak Dizinkan Untuk Mengakses Halaman Ini','warning').then(function(){
window.location = 'index.php';
});
</script>
";
}else if ($pelamar["email"] != $_SESSION["pelamar"]){
echo "
<script>
Swal.fire('AKSES DITOLAK','Anda Tidak Dizinkan Untuk Mengakses Halaman Ini','warning').then(function(){
window.location = 'index.php';
});
</script>
";
}
?>