-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail_informasi.php
58 lines (49 loc) · 1.68 KB
/
detail_informasi.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
<?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_informasi WHERE id = $id");
$artikel = mysqli_fetch_assoc($query);
$aktif = 'informasi';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Detail Informasi</title>
<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>
<?php include 'header.php'; ?>
<!-- HOME -->
<section id="tentang-home">
<h2>Detail Informasi SMAN 9 Kupang</h2>
</section>
<!-- content -->
<div class="row p-3">
<div class="col-md-8">
<div class="title mb-3">
<?= $artikel['judul'] ?> (<?= date('d M y', strtotime($artikel['tanggal'])) ?>)
</div>
<div class="artikel">
<img src="images/informasi/<?= $artikel['foto'] ?>" alt="" width="100%" class="float-left mb-3 img-thumbnail">
<?= $artikel['isi'] ?>
</div>
</div>
<?php require_once 'sidebar_informasi.php'; ?>
</div>
<script src="https://code.jquery.com/jquery-3.6.3.js" integrity="sha256-nQLuAZGRRcILA+6dMBOvcRh5Pe310sBpanc6+QBmyVM=" crossorigin="anonymous"></script>
<script>
$('#menu-btn').click(function () {
$('nav .navigation ul').addClass('active');
});
$('#menu-close').click(function () {
$('nav .navigation ul').removeClass('active');
});
</script>
</body>
</html>