mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-11-09 21:11:40 +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');
|
$user_id = $this->session->userdata('user_id');
|
||||||
$data['user'] = $this->Utilisateur_model->get_user_by_id($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['avis'] = $this->Utilisateur_model->get_avis_by_user($user_id);
|
||||||
|
|
||||||
$data['title']="Dashboard - Onzeur";
|
$data['title']="Dashboard - Onzeur";
|
||||||
$data['css']="assets/css/dashboard";
|
$data['css']="assets/css/dashboard";
|
||||||
|
|
||||||
|
@ -78,9 +78,9 @@ class Model_music extends CI_Model {
|
|||||||
|
|
||||||
public function get_album_by_id($id){
|
public function get_album_by_id($id){
|
||||||
$query = $this->db->query(
|
$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
|
FROM album
|
||||||
JOIN artist ON album.artistid = artist.id
|
JOIN artist ON album.artistId = artist.id
|
||||||
JOIN genre ON album.genreid = genre.id
|
JOIN genre ON album.genreid = genre.id
|
||||||
JOIN cover ON album.coverid = cover.id
|
JOIN cover ON album.coverid = cover.id
|
||||||
WHERE album.id = ?", array($id)
|
WHERE album.id = ?", array($id)
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
|
|
||||||
<div class="album-details">
|
<div class="album-details">
|
||||||
<h1><?php echo $album->name; ?></h1>
|
<h1><?php echo $album->name; ?></h1>
|
||||||
|
<p><strong>Artiste :</strong> <a href="<?php echo site_url('artiste/index/' . $album->artistId); ?>"><?php echo $album->artistName; ?></a></p>
|
||||||
<p><strong>Artiste :</strong> <?php echo $album->artistName; ?></p>
|
|
||||||
<p><strong>Année :</strong> <?php echo $album->year; ?></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">
|
<img src="data:image/jpeg;base64,<?php echo base64_encode($album->jpeg); ?>" alt="Image d'album">
|
||||||
|
|
||||||
<?php if (!empty($album->tracks)): ?>
|
<?php if (!empty($album->tracks)): ?>
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<section class="list">
|
<section class="list">
|
||||||
<?php foreach($musiques as $musique): ?>
|
<?php foreach($musiques as $musique): ?>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user