-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdetail-loker.php
106 lines (93 loc) · 4.21 KB
/
detail-loker.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
<?php
// panggil koneksi db
require "db.php";
// panggil file functions.php
require "functions.php";
// aktifkan session
session_start();
// ambil data loker
$id = $_GET["id"];
$loker = mysqli_query($db, "SELECT * FROM loker where id = $id");
$loker = mysqli_fetch_assoc($loker);
// ambil data perusahaan yang mempunyai loker
$idPerusahaan = $loker["idPerusahaan"];
$perusahaan = mysqli_query($db,"SELECT * from perusahaan where id = $idPerusahaan");
$perusahaan = mysqli_fetch_assoc($perusahaan);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- judul -->
<title><?= "Loker " . $loker["posisi"] . " di " . $perusahaan["nama"] ?></title>
<!-- headtags -->
<?php require "headtags.php" ?>
</head>
<body>
<!-- navbar -->
<?php require "navbar.php" ?>
<!-- form -->
<div class="container mt-5">
<div class="row">
<div class="col">
<div class="card shadow-lg">
<div class="card-header text-center">
<h3><?= "Loker " . $loker["posisi"] . " di " . $perusahaan["nama"] ?></h3>
</div>
<div class="card-body">
<div class="row mb-2">
<div class="container">
<div class="row no-gutters border rounded overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative">
<div class="col-auto d-none d-lg-block">
<img src="assets/perusahaan/<?= $perusahaan['foto'] ?>" width="200" height="205 alt="">
</div>
<div class="col p-4 d-flex flex-column position-static">
<h3 class="mb-0"><?= $perusahaan["nama"] ?></h3>
<div class="mb-1 text-muted"><?= $perusahaan["alamat"] ?></div>
<div class="mb-1 text-muted"><?= $perusahaan["email"] ?> | <?= $perusahaan["telp"] ?></div>
<p class="card-text mb-auto"><?= $perusahaan["deskripsi"] ?></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10 offset-md-1">
<table class="table">
<tr>
<th>Posisi</th>
<td><?= $loker["posisi"] ?></td>
</tr>
<tr>
<th>Minimal Lulusan</th>
<td><?= $loker["lulusan"] ?></td>
</tr>
<tr>
<th>Jobdesk</th>
<td><?= $loker["jobdesk"]; ?></td>
</tr>
<tr>
<th>Keterangan</th>
<td><?= $loker["keterangan"] ?></td>
</tr>
</table>
</div>
</div>
<!-- jika login sebagai pelamar, munculkan tombol buat lamaran -->
<?php if (isset($_SESSION["pelamar"]) && $loker["status"] == "Aktif") : ?>
<div class="row my-5">
<div class="col text-center">
<a href="buat-lamaran.php?id=<?= $id ?>" class="btn btn-danger btn-lg shadow-lg">Buat Lamaran</a>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<!-- end form -->
<!-- footer -->
<?php require "footer.php" ?>
</body>
</html>