-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcontents.php
114 lines (104 loc) · 3.17 KB
/
contents.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
<?php
require 'user/config/function.php';
$peserta = getPeserta($_GET['id']);
$data = getGelombang($peserta['id_kejuruan']);
$tanggal = $data['gelombangDibuka'];
$day = date('D', strtotime($data['gelombangDibuka']));
$dayList = array(
'Sun' => 'Minggu',
'Mon' => 'Senin',
'Tue' => 'Selasa',
'Wed' => 'Rabu',
'Thu' => 'Kamis',
'Fri' => 'Jumat',
'Sat' => 'Sabtu'
);
$mon = date('m', strtotime($data['gelombangDibuka']));
$monList = array(
'01' => 'Januari',
'02' => 'Februari',
'03' => 'Maret',
'04' => 'April',
'05' => 'Mei',
'06' => 'Juni',
'07' => 'Juli',
'08' => 'Agustus',
'09' => 'September',
'10' => 'Oktober',
'11' => 'November',
'12' => 'Desember'
);
// $gelobangDibuka = strtotime($data['gelombangDibuka']);
// $gelobangDitutup = strtotime('+2 weeks', $gelobangDibuka);
$gelobangDibuka = new DateTime($data['gelombangDibuka']);
$gelobangDitutup = $gelobangDibuka->modify('+2 weeks');
$tutup = $gelobangDitutup->format('Y-m-d');
?>
<!DOCTYPE html>
<html>
<head>
<title>Bukti Pendaftaran</title>
<link rel="stylesheet" href="http://localhost/project_blk/v.1.0.3/node_modules/bootstrap/dist/css/bootstrap.min.css">
<style>
body{
font-size: 11px;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="text-center">
<class style="font-size:16px;" class="text-center">
PEMERINTAH KABUPATEN MAGELANG <br>
DINAS TENAGA KERJA SOSIAL DAN TRANSMIGRASI BALAI LATIHAN KERJA
</class>
</div>
<address style="font-size:11px;" class="text-center">
<br>
<i> Jalan Magelang - Purworejo KM. 11, Tempuran, Sidoagung, Tempuran Magelang, Jawa Tengah
<br> Kode Pos (56172) Telepon (0293) 335092</i>
</address>
<hr>
<div class="text-center">
<b>TANDA PESERTA UJIAN</b><br>
<b>( <?= $data['nama'] ?> )</b>
</div>
<div class="text-justify" style="font-size:11px;">
<span class="pull-right"><i>Magelang, <?= str_replace('-','/',$peserta['tanggalDaftar']) ?></i></span>
<table class="table-condensed" style="width:75%;">
<tr>
<th style="width:35%;">No Test</th>
<td style="width:65%;">: <?= __generatorID($peserta['id_kejuruan']).'-'.$peserta['id_peserta'] ?></td>
</tr>
<tr>
<th style="width:35%;">Kejuruan</th>
<td style="width:65%;">: <?= namaKejuruan($peserta['id_kejuruan']); ?></td>
</tr>
<tr>
<th style="width:35%;">Nama Peserta</th>
<td style="width:65%;">: <?= $peserta['nama'] ?></td>
</tr>
<tr>
<th style="width:35%;">Alamat</th>
<td style="width:65%;">: <?= $peserta['alamat'] ?></td>
</tr>
<tr>
<th style="width:35%;">Waktu Ujian</th>
<td style="width:65%;">: <?= $dayList[date('D', strtotime($tutup))] . ', '. date('d', strtotime($tutup)) .' - '. $monList[date('m', strtotime($tutup))] . ' - ' . date('Y', strtotime($tutup)) ?></td>
</tr>
<tr>
<th style="width:35%;"> </th>
<td style="width:65%;">: 08 : 00 WIB - Selesai</td>
</tr>
</table>
<br>
<br><br>
<span class="pull-right text-center">
<b>Tertanda</b>
<br><br>
<i><?= $peserta['nama'] ?></i>
</span>
</div>
</div>
</body>
</html>