-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
49 lines (36 loc) · 931 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<?php
include_once ('./config/constant.php');
include_once ('./utils/http.php');
include_once ('./src/templates/header.php');
?>
<body class="bg-gray-400 font-sans leading-normal tracking-normal">
<?php
// routing single app
if(isset($_GET['page'])) {
$page = $_GET['page'];
if ($page == "edit_buku") {
include_once("src/buku/form_edit_buku.php");
}
if ($page == "tambah_buku") {
include_once("src/buku/form_tambah_buku.php");
}
if ($page == "penulis") {
include_once("src/penulis/view_penulis.php");
}
if ($page == "tambah_penulis") {
include_once("src/penulis/form_tambah_penulis.php");
}
if ($page == "kategori") {
include_once("src/kategori/view_kategori.php");
}
if ($page == "tambah_kategori") {
include_once("src/kategori/form_tambah_kategori.php");
}
} else {
include_once("src/buku/view_buku.php");
}
?>
</body>
</html>