mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-11-09 21:11:40 +01:00
Correction du CSS + bugs
This commit is contained in:
parent
b28413726c
commit
8e46a70b25
@ -124,10 +124,11 @@ class Playlists extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function generate_random() {
|
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(
|
$new_playlist = array(
|
||||||
'name' => 'Random Playlist ' . date('Y-m-d H:i:s'),
|
'name' => 'Playlist aléatoire du ' . date('Y-m-d H:i:s'),
|
||||||
'description' => 'A randomly generated playlist',
|
'description' => 'Une playlist avec ' . $nbrMusiqueAleatoire . ' musiques aléatoires.',
|
||||||
'utilisateur_id' => $this->session->userdata('user_id')
|
'utilisateur_id' => $this->session->userdata('user_id')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Détails de la Playlist</title>
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<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_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/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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -67,3 +67,51 @@ p {
|
|||||||
background-color: #545b62;
|
background-color: #545b62;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Style pour le conteneur principal */
|
||||||
|
.container {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style pour le titre de la playlist */
|
||||||
|
.container h1 {
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Style pour les labels */
|
||||||
|
label {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style pour les champs de texte */
|
||||||
|
input[type="text"],
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style pour le bouton Enregistrer */
|
||||||
|
.btn-primary {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px 20px;
|
||||||
|
background-color: #7700ff;
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style pour le bouton Enregistrer au survol */
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: #3c0c72;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user