ajout temps

This commit is contained in:
2024-06-11 15:08:29 +02:00
parent ffd3f5dd39
commit 906c5abf52
4 changed files with 16 additions and 6 deletions

View File

@@ -1,10 +1,15 @@
<section class="list">
<?php
$i = 0;
echo '<img src="data:image/jpeg;base64,' . base64_encode($album->jpeg) . '" alt="' . $album->name . '" />';
echo "<footer class='short-text'>{$album->year} - {$album->artistName}</footer>";
foreach($songs as $song){
echo "<div><article>";
echo "<header class='short-text'>";
echo "{$song->name} ";
$i = $i+1;
$minutes = floor($song->duration/60);
$secondes = $song->duration %60;
echo "{$i} - {$song->name} : {$minutes} min {$secondes} sec";
if ($this->session->userdata('logged')):
echo "<form action='" . base_url("index.php/playlist/addSongToPlaylist") . "' method='post'>";
echo "<select name='playlist'>";