mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-12-26 17:02:18 +01:00
Corrections
This commit is contained in:
parent
db9f3a7e3a
commit
7ef94d3b2f
@ -460,9 +460,7 @@ class Utilisateur extends CI_Controller {
|
||||
|
||||
$user_id = $this->session->userdata('user_id');
|
||||
$data['user'] = $this->Utilisateur_model->get_user_by_id($user_id);
|
||||
|
||||
$data['avis'] = $this->Utilisateur_model->get_avis_by_user($user_id);
|
||||
|
||||
$data['title']="Dashboard - Onzeur";
|
||||
$data['css']="assets/css/dashboard";
|
||||
|
||||
|
@ -78,9 +78,9 @@ class Model_music extends CI_Model {
|
||||
|
||||
public function get_album_by_id($id){
|
||||
$query = $this->db->query(
|
||||
"SELECT album.id, album.name, album.year, artist.name as artistName, genre.name as genreName, cover.jpeg
|
||||
"SELECT album.id, album.name, album.year, album.artistId, album.genreId, artist.name as artistName, genre.name as genreName, cover.jpeg
|
||||
FROM album
|
||||
JOIN artist ON album.artistid = artist.id
|
||||
JOIN artist ON album.artistId = artist.id
|
||||
JOIN genre ON album.genreid = genre.id
|
||||
JOIN cover ON album.coverid = cover.id
|
||||
WHERE album.id = ?", array($id)
|
||||
@ -99,7 +99,7 @@ class Model_music extends CI_Model {
|
||||
}
|
||||
|
||||
return $album;
|
||||
}
|
||||
}
|
||||
|
||||
public function getMusiques($limit, $offset, $order_by = 'name', $order_direction = 'ASC', $genre_id = null, $artist_id = null) {
|
||||
// Préparer la colonne de tri en fonction du paramètre $order_by
|
||||
|
@ -1,10 +1,9 @@
|
||||
|
||||
<div class="album-details">
|
||||
<h1><?php echo $album->name; ?></h1>
|
||||
|
||||
<p><strong>Artiste :</strong> <?php echo $album->artistName; ?></p>
|
||||
<p><strong>Artiste :</strong> <a href="<?php echo site_url('artiste/index/' . $album->artistId); ?>"><?php echo $album->artistName; ?></a></p>
|
||||
<p><strong>Année :</strong> <?php echo $album->year; ?></p>
|
||||
<p><strong>Genre :</strong> <?php echo $album->genreName; ?></p>
|
||||
<p><strong>Genre :</strong> <a href="<?php echo base_url('index.php/musiques/index?genre_id='.$album->genreId); ?>"><?php echo $album->genreName; ?></a></p>
|
||||
<img src="data:image/jpeg;base64,<?php echo base64_encode($album->jpeg); ?>" alt="Image d'album">
|
||||
|
||||
<?php if (!empty($album->tracks)): ?>
|
||||
|
@ -28,7 +28,6 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<section class="list">
|
||||
<?php foreach($musiques as $musique): ?>
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user