-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
55 lines (50 loc) · 1.85 KB
/
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
50
51
52
53
54
55
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" >
<title>Belajar membuat web</title>
</head>
<body>
<!--
Author :Teknik Informatika
-->
<div class="content">
<header>
<h1 class="Judul"> IT PLN</h1>
<h3 class="Deskripsi">Membuat Halaman web Dinamis Dengan php</h3>
</header>
<div class="Menu">
<ul>
<li><a href="index.php?page=home">home</a></li>
<li><a href="index.php?page=tentang">tentang</a></li>
<li><a href="index.php?page=tutorial">tutorial</a></li>
</ul>
</div>
<div class="Badan">
<?php
if(isset($_GET['page']))
{
$page = $_GET['page'];
switch ($page) {
case 'home':
include "home.php";
break;
case 'tentang':
include "tentang.php";
break;
case 'tutorial':
include "tutorial.php";
break;
default:
echo "<center><h3>Maaf.
Halaman tidak di temukan! </h3><center>";
break;
}
}
else
{
include "home.php";
}
?>
</div>
</body>
</html>