-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail_guru.php
119 lines (102 loc) · 3.02 KB
/
detail_guru.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
<?php
require_once 'koneksi.php';
if(!isset($_GET['id']) || $_GET['id'] == '') header('Location: index.php');
$id = $_GET['id'];
$query = mysqli_query($koneksi, "SELECT * FROM tbl_guru WHERE id = $id");
$row = mysqli_fetch_assoc($query);
$aktif = 'siswa';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Detail Guru </title>
<link rel="stylesheet" href="resources/datatables/datatables.min.css">
<link rel="stylesheet" href="resources/fonts/stylesheet.css">
<link rel="stylesheet" href="resources/css/bootstrap.min.css">
<link rel="stylesheet" href="resources/css/style.css">
</head>
<body>
<div class="container mt-3">
<div class="row">
<div class="col">
<div class="card shadow">
<div class="card-header">
<div class="clearfix">
<div class="float-left">
Detail Guru - <strong><?= $row['nama'] ?></strong>
</div>
</div>
</div>
<div class="card-body">
<table class="table table-stripped">
<tr>
<td width="225px"><b>Nama</b></td>
<td>:</td>
<td><?= $row['nama'] ?></td>
</tr>
<tr>
<td><b>NIP</b></td>
<td>:</td>
<td><?= $row['nip'] ?></td>
</tr>
<tr>
<td><b>Jenis Kelamin</b></td>
<td>:</td>
<td>
<?= $row['jenis_kelamin'] == 'L' ? 'Laki Laki' : '' ?>
<?= $row['jenis_kelamin'] == 'P' ? 'Perempuan' : '' ?>
</td>
</tr>
<tr>
<td><b>No Handphone</b></td>
<td>:</td>
<td><?= $row['no_hp'] ?></td>
</tr>
<tr>
<td><b>Tempat Tanggal Lahir</b></td>
<td>:</td>
<td><?= $row['tempat_lahir'] ?>, <?= $row['tanggal_lahir'] ?></td>
</tr>
<tr>
<td><b>Pangkat dan Golongan</b></td>
<td>:</td>
<td><?= $row['jenis_pangkatgol'] ?></td>
</tr>
<tr>
<td><b>Mata Pelajaran</b></td>
<td>:</td>
<td><?= $row['mata_pelajaran'] ?></td>
</tr>
<tr>
<td><b>Alamat</b></td>
<td>:</td>
<td><?= $row['alamat'] ?></td>
<tr>
<td><b>Foto</b></td>
<td>:</td>
<td><img src="images/guru/<?= $row['foto'] ?>" alt="<?= $row['nama'] ?>" width="25%" class="img-thumbnail"></td>
</tr>
<tr>
<td><b></td>
<td></td>
<td><a href="profilguru.php" class="btn btn-secondary btn-sm">Kembali</a></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="../../resources/js/jquery.js"></script>
<script src="../../resources/js/bootstrap.min.js"></script>
<script src="../../resources/datatables/datatables.min.js"></script>
<script src="../../resources/datatables/datatable.js"></script>
<script>
$(document).ready(function () {
$('#example').DataTable();
});
</script>
</body>
</html>