-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtabel.php
More file actions
94 lines (94 loc) · 2.78 KB
/
Copy pathtabel.php
File metadata and controls
94 lines (94 loc) · 2.78 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tabel Actions</title>
<style>
table {
width: 60%;
border-collapse: collapse;
float: left;
margin: 20px auto;
}
table, th, td {
border: 1px solid black;
text-align: center;
}
th, td {
padding: 8px;
}
.actions {
display: flex;
justify-content: center;
gap: 10px;
}
.icon{
width: 15px;
height: 15px;
}
.button {
background-color: forestgreen;
padding: 5px 10px;
color: white;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 5px;
}
.btn-edit {
background-color: yellow;
padding: 5px 10px;
border-radius: 5px;
display: inline-flex;
align-items: center;
gap: 5px;
text-decoration: none;
}
.btn-delete {
background-color: red;
padding: 5px 10px;
border-radius: 5px;
display: inline-flex;
align-items: center;
gap: 5px;
text-decoration: none;
}
.btn-edit img, .btn-delete img {
width: 15px;
height: 15px;
}
</style>
</head>
<body>
<h2>Employe <strong>Details</strong></h2>
<div class="col-md-8">
<a href="tambah.php" class="button">
<img src="https://cdn-icons-png.flaticon.com/512/1828/1828919.png" alt="Add Icon" class="icon"> Tambah
</a>
</div>
<table border="1">
<tr>
<th>Name</th>
<th>Email</th>
<th>No Hp</th>
<th>Actions</th>
</tr>
<tbody>
<tr>
<td><?php echo $_POST['name']; ?></td>
<td><?php echo $_POST['email']; ?></td>
<td><?php echo $_POST['phone']; ?></td>
<td>
<div class="actions">
<a href="edit.php?id=<?php echo $row['id']; ?>" title="Edit" class="btn-edit">
<img class="icon" src="https://cdn-icons-png.flaticon.com/512/1159/1159633.png" alt="Edit">
</a>
<a href="delete.php?id=<?php echo $row['id']; ?>" title="Delete" class="btn-delete" onclick="return confirm('Are you sure you want to delete this item?');">
<img class="icon" src="https://cdn-icons-png.flaticon.com/512/1214/1214428.png" alt="Delete">
</a>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>