Correction du CSS + bugs
This commit is contained in:
@@ -124,10 +124,11 @@ class Playlists extends CI_Controller {
|
||||
}
|
||||
|
||||
public function generate_random() {
|
||||
$songs = $this->Model_music->get_random_songs(10); // 10 chansons aléatoires
|
||||
$nbrMusiqueAleatoire = 10;
|
||||
$songs = $this->Model_music->get_random_songs($nbrMusiqueAleatoire); // 10 chansons aléatoires
|
||||
$new_playlist = array(
|
||||
'name' => 'Random Playlist ' . date('Y-m-d H:i:s'),
|
||||
'description' => 'A randomly generated playlist',
|
||||
'name' => 'Playlist aléatoire du ' . date('Y-m-d H:i:s'),
|
||||
'description' => 'Une playlist avec ' . $nbrMusiqueAleatoire . ' musiques aléatoires.',
|
||||
'utilisateur_id' => $this->session->userdata('user_id')
|
||||
);
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Détails de la Playlist</title>
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_view.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_view'); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
<a href="<?php echo site_url('playlists/add_song/' . $playlist->id); ?>" class="btn btn-primary">Ajouter une musique</a>
|
||||
<a href="<?php echo site_url('playlists/add_album/' . $playlist->id); ?>" class="btn btn-primary">Ajouter un album</a>
|
||||
<a href="<?php echo site_url('playlists'); ?>" class="btn btn-secondary">Retour à la Liste des Playlists</a>
|
||||
<a href="<?php echo site_url('playlists'); ?>" class="btn btn-secondary">Retour</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user