Corrections

This commit is contained in:
stiti 2024-06-04 15:05:19 +02:00
parent db9f3a7e3a
commit 7ef94d3b2f
4 changed files with 5 additions and 9 deletions

View File

@ -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";

View File

@ -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)

View File

@ -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)): ?>

View File

@ -28,7 +28,6 @@
</form>
</div>
<section class="list">
<?php foreach($musiques as $musique): ?>
<div>