-
Notifications
You must be signed in to change notification settings - Fork 0
/
playlist-by-all-songs.php
134 lines (100 loc) · 4.87 KB
/
playlist-by-all-songs.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
$data = file_get_contents('playlist-lagu.json');
$lagu = json_decode($data,true);
$lagu = $lagu["lagu"];
// echo $menu[0]["nama"];
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<title>My Playlist - All Songs</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="playlist-main.php"><b>My Playlist</b></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link" href="playlist-main.php">Home</a>
<a class="nav-link active" aria-current="page" href="playlist-by-all-songs.php">All Songs</a>
<a class="nav-link" href="playlist-by-genre.php">Genre</a>
<a class="nav-link" href="playlist-by-mood.php">Mood</a>
<a class="nav-link" href="playlist-by-artist.php">Artists</a>
</div>
</div>
</div>
</nav>
<div class="container">
<!-- <div class="row">
<a href="playlist-main.php">
<button onclick="goBack()">Go Back</button>
</a>
</div> -->
<div class="row">
<h1>All Songs</h1>
</div>
<div class="row">
<?php foreach($lagu as $row): ?>
<div class="col-md-4">
<div class="card">
<img src="img-lagu/artist/<?= $row["gambar"] ?>" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title"><?= $row["lagu"] ?></h5>
<p class="card-text">Artis: <?= $row["artis"] ?></p>
<p class="card-text">Album: <?= $row["album"] ?></p>
<p class="card-text">Genre: <?= $row["genre"] ?></p>
<p class="card-text">Durasi: <?= $row["durasi"] ?></p>
<a href="<?= $row["link"] ?>" target="_blank" class="btn btn-primary">Putar Lagu</a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- footer -->
<div class="container">
<footer class="py-3 my-4">
<ul class="nav justify-content-center border-bottom pb-3 mb-3">
<li class="nav-item">
<a href="playlist-main.php" class="nav-link px-2 text-muted">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link px-2 text-muted">All Songs</a>
</li>
<li class="nav-item">
<a href="playlist-by-genre.php" class="nav-link px-2 text-muted">Genre</a>
</li>
<li class="nav-item">
<a href="playlist-by-mood.php" class="nav-link px-2 text-muted">Mood</a>
</li>
<li class="nav-item">
<a href="playlist-by-artist.php" class="nav-link px-2 text-muted">Artists</a>
</li>
</ul>
<p class="text-center text-muted">© copyright 2021 | Rahmat Zaki Muharom</p>
</footer>
</div>
<!-- end footer -->
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-W8fXfP3gkOKtndU4JGtKDvXbO53Wy8SZCQHczT5FMiiqmQfUpWbYdTil/SxwZgAN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/" crossorigin="anonymous"></script>
-->
<!-- <script>
function goBack() {
window.history.back();
}
</script> -->
</body>
</html>