47 lines
2.1 KiB
PHP
47 lines
2.1 KiB
PHP
|
|
<div class="content">
|
|
<section id="about" class="box">
|
|
<div class="box-content">
|
|
<img src=<?= base_url('assets/img/musique.png') ?> alt="Description de l'image 2">
|
|
<div class="text-content">
|
|
<h2>Créer une nouvelle Playlist</h2>
|
|
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
|
|
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
|
|
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
|
|
<button type="submit" name="submit" class="playlist-button">Créer</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section id="product" class="box">
|
|
<div class="box-img">
|
|
<img src=<?= base_url('assets/img/musique1.png') ?> alt="Description de l'image 2">
|
|
<div class="text-content">
|
|
<h2>Créer une playlist aléatoire</h2>
|
|
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
|
|
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
|
|
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
|
|
<button type="submit" name="submit" class="playlist-button">Créer</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div id="header"> </div>
|
|
</form>
|
|
<?php
|
|
foreach($playlists as $playlist){
|
|
echo "<div class='playlist-item'>";
|
|
echo "<header class='short-text'>";
|
|
echo anchor("playlist/SongPlaylist/{$playlist->id}","<h3>{$playlist->name}</h3>");
|
|
echo "<form action='" . base_url("index.php/playlist/delete/{$playlist->id}") . "' method='post'>";
|
|
echo "<button type='submit' class='delete-button'>supprimer</button>";
|
|
echo "</form>";
|
|
echo "<form action='" . base_url("index.php/playlist/duplicate/{$playlist->id}") . "' method='post'>";
|
|
echo "<button type='submit' class='delete-button'>dupliquer</button>";
|
|
echo "</form>";
|
|
echo "</header>";
|
|
echo "</div>";
|
|
}
|
|
echo "</div>";
|
|
?>
|