correction beug header + footer + css & php pour les playlist
This commit is contained in:
@@ -21,7 +21,7 @@ class Albums extends CI_Controller {
|
||||
$songs = [];
|
||||
}
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('song_album_list', ['songs' => $songs, 'album' => $album]);
|
||||
$this->load->view('song_album_list', ['songs' => $songs]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,14 +10,14 @@ class Playlist extends CI_Controller {
|
||||
|
||||
public function index(){
|
||||
$playlists = $this->model_music->getPlaylist();
|
||||
// $this->load->view('layout/header');
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('playlist_list', ['playlists' => $playlists]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
public function view(){
|
||||
$playlists = $this->model_music->deletePlaylist();
|
||||
//$this->load->view('layout/header_album');
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('playlist_list', ['playlists' => $playlists]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
@@ -35,7 +35,7 @@ class Playlist extends CI_Controller {
|
||||
}
|
||||
|
||||
public function MenuCreate() {
|
||||
//$this->load->view('layout/header_album');
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('create_playlist');
|
||||
$this->load->view('layout/footer');
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title>SpotiFly</title>
|
||||
<link rel="stylesheet" href="<?= base_url('assets/style.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/connexion.css') ?>">
|
||||
</head>
|
||||
<body>
|
||||
<main class='container'>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<link rel="stylesheet" href="<?= base_url('assets/album.css') ?>">
|
||||
</head>
|
||||
<body>
|
||||
<main class='contain'>
|
||||
<main class='container'>
|
||||
<header class="navbar">
|
||||
<div class="logo">
|
||||
<img src="../assets/img/Logo1.png" alt="SpotiFly">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
echo "<div class='playlist-container'>";
|
||||
echo "<form action='" . base_url("index.php/playlist/MenuCreate/") . "' method='post'>";
|
||||
echo "<button type='submit' class='create-button'>Create</button>";
|
||||
echo "</form>";
|
||||
echo "<div class='playlist-container'>";
|
||||
|
||||
foreach($playlists as $playlist){
|
||||
echo "<div class='playlist-item'>";
|
||||
echo "<header class='short-text'>";
|
||||
@@ -12,7 +12,6 @@ foreach($playlists as $playlist){
|
||||
echo "<button type='submit' class='delete-button'>Delete</button>";
|
||||
echo "</form>";
|
||||
echo "</header>";
|
||||
// If you want to add an image, you can add it here
|
||||
echo "</div>";
|
||||
}
|
||||
echo "</div>";
|
||||
|
||||
Reference in New Issue
Block a user