2024-06-06 11:16:03 +02:00
|
|
|
<body>
|
|
|
|
<h1>Générer une playlist</h1>
|
|
|
|
<form action="<?php echo site_url('playlists/generate_random'); ?>" method="post" class="formulaire">
|
|
|
|
<label for="nbrMusiqueAleatoire">Nombre de musiques :</label>
|
2024-06-07 13:59:30 +02:00
|
|
|
<input type="number" name="nbrMusiqueAleatoire" id="nbrMusiqueAleatoire" value="5" min="1" max="10"><br><br>
|
2024-06-06 11:16:03 +02:00
|
|
|
|
|
|
|
<label for="genre">Genre :</label>
|
|
|
|
<select name="genre" id="genre">
|
|
|
|
<option value="">Tous les genres</option>
|
|
|
|
<?php foreach ($genres as $genre): ?>
|
|
|
|
<option value="<?php echo $genre; ?>"><?php echo $genre; ?></option>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</select><br><br>
|
|
|
|
|
|
|
|
<label for="artist">Artiste :</label>
|
|
|
|
<select name="artist" id="artist">
|
|
|
|
<option value="">Tous les artistes</option>
|
|
|
|
<?php foreach ($artists as $artist): ?>
|
|
|
|
<option value="<?php echo $artist; ?>"><?php echo $artist; ?></option>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</select><br><br>
|
|
|
|
|
|
|
|
<input type="submit" value="Générer la playlist">
|
|
|
|
</form>
|