-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
99 lines (73 loc) · 1.92 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
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
<?php
require("function.php");
$penduduk = query("SELECT * FROM datapenduduk");
?>
<!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">
<title>HTML</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
<div class="brand"></div>
<div class="wadahMenu">
<div class="menu"></div>
</div>
</nav>
<br />
<div class="breadcrumb">
<a href="#">Home</a>
<a>⟩</a>
<a href="#">Admin</a>
</div>
<br />
<h4>Data siswa</h4>
<table border="1">
<tr>
<th>No</th>
<th>Nama</th>
<th>Umur</th>
<th>Gender</th>
<th>Pendidikan</th>
<th>Setting</th>
</tr>
<?php $i = 1; ?>
<?php foreach ($penduduk as $pdk) : ?>
<tr class="isiTabel">
<td><?= $i ?></td>
<td><?= $pdk["Nama"] ?></td>
<td><?= $pdk["Umur"] ?></td>
<td><?= $pdk["Gender"] ?></td>
<td><?= $pdk["Pendidikan"] ?></td>
<td><a class="edit" href="ubah.php?id= <?= $pdk['No'] ?>">Edit</a><a class="hapus" href="hapus.php?No= <?= $pdk['No'] ?>" onclick="return confirm('anda yakin ingin menghapus data?')">Hapus</a></td>
</tr>
<?php $i++; ?>
<?php endforeach; ?>
</table>
<br />
<br />
<a class="tambah" href="tambah.php">Tambah data</a>
<footer>
<div class="container-footer">
<img width="60px" height="60px" src="image/logo-transp.png" alt="image/logo-transp.png">
<br />
<div class="footer-menu">
<p>Mufni,<br>51254, Indonesia</p>
<ul>
<li>About</li>
<li>Contact</li>
<li>Project</li>
<li>Privacy and policy</li>
</ul>
</div>
<br />
<p>© Copyright 2022, By mufni</p>
</div>
</footer>
<script src="main.js"></script>
</body>
</html>