This commit is contained in:
2024-06-19 14:08:59 +02:00
parent 9436fd05cc
commit 6bfbf46dcc
21 changed files with 854 additions and 236 deletions

View File

@@ -19,11 +19,30 @@
<p><strong>Genre:</strong> <?= $album->genreName ?></p>
<p><strong>Year:</strong> <?= $album->year ?></p>
<h4 class="title is-6">Songs</h4>
<ul>
<?php foreach ($album->songs as $song): ?>
<li><?= anchor("music/view/{$song->trackId}", $song->songName) ?></li>
<?php endforeach; ?>
</ul>
<div class="table-container">
<table class="table is-striped is-fullwidth">
<thead>
<tr>
<th>Titre</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($album->songs as $song): ?>
<tr>
<td><?= anchor("music/view/{$song->trackId}", $song->songName) ?></td>
<td>
<form method="post" action="<?= site_url('playlist/selectPlaylist') ?>" style="display:inline;">
<input type="hidden" name="itemId" value="<?= $song->trackId ?>">
<input type="hidden" name="itemType" value="song">
<button type="submit" class="button is-link is-small">Ajouter à la playlist</button>
</form>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>