optimisation du code

This commit is contained in:
Marco ORFAO 2024-05-30 13:49:35 +02:00
parent 046f3ed2e2
commit e390e7b393
34 changed files with 169 additions and 248 deletions

View File

@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own. | a PHP script and you can easily do that on your own.
| |
*/ */
$config['base_url'] = 'https://dwarves.iut-fbleau.fr/~stiti/SAE_2.02/CodeIgniter-3.1.13/'; $config['base_url'] = 'https://dwarves.iut-fbleau.fr/~orfao/SAE/SAE_2.02/CodeIgniter-3.1.13/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -28,22 +28,27 @@ class Albums extends CI_Controller {
$data['order_by'] = $order_by; $data['order_by'] = $order_by;
$data['genre_id'] = $genre_id; $data['genre_id'] = $genre_id;
$data['artist_id'] = $artist_id; $data['artist_id'] = $artist_id;
$data['title']= 'Albums - Onzeur';
$data['css']='assets/css/style';
// Récupérer les genres et les artistes pour les filtres // Récupérer les genres et les artistes pour les filtres
$data['genres'] = $this->model_music->getGenres(); $data['genres'] = $this->model_music->getGenres();
$data['artists'] = $this->model_music->getArtists(); $data['artists'] = $this->model_music->getArtists();
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('albums_list', $data); $this->load->view('albums_list',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
public function view($id){ public function view($id){
$album = $this->model_music->get_album_by_id($id); $album = $this->model_music->get_album_by_id($id);
$data['album'] = $album; $data['album'] = $album;
$data['title'] = $album->name." - Details";
$data['css']='assets/css/album_view';
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('album_view', $data); $this->load->view('album_view');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -24,8 +24,10 @@ class Artiste extends CI_Controller {
$data['artiste'] = $artiste; $data['artiste'] = $artiste;
$data['albums'] = $albums; $data['albums'] = $albums;
$data['mostUsedGenre'] = $mostUsedGenre; // Passer $mostUsedGenre à la vue $data['mostUsedGenre'] = $mostUsedGenre; // Passer $mostUsedGenre à la vue
$data['title']="Détails de l'artiste - Onzeur ".$artiste->name;
$data['css'] = 'assets/css/artiste_details';
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('artiste_details', $data); $this->load->view('artiste_details', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
@ -46,8 +48,10 @@ class Artiste extends CI_Controller {
// Charger la vue avec la liste des artistes // Charger la vue avec la liste des artistes
$data['artists'] = $artists; $data['artists'] = $artists;
$data['current_order'] = $order; $data['current_order'] = $order;
$data['title']="Détails de l'artiste - Onzeur ";
$data['css'] = 'assets/css/artists_list.css';
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark',$data);
$this->load->view('artists_list', $data); $this->load->view('artists_list', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -17,7 +17,11 @@ class Contact extends CI_Controller {
} }
public function index() { public function index() {
$this->load->view('layout/header_dark');
$data['title']='Nous contacter - Onzeur';
$data['css']='assets/css/nous-contacter';
$this->load->view('layout/header_dark', $data);
$this->load->view('nous-contacter'); $this->load->view('nous-contacter');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -110,11 +114,19 @@ class Contact extends CI_Controller {
</html>'; </html>';
$mail->send(); $mail->send();
$this->load->view('layout/header_dark');
$data['title']="Confirmation d'envoi - Onzeur";
$data['css']="assets/css/confirmation_mail";
$this->load->view('layout/header_dark',$data);
$this->load->view('confirmation_mail.php'); $this->load->view('confirmation_mail.php');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} catch (Exception $e) { } catch (Exception $e) {
$this->load->view('layout/header_dark');
$data['title']="Erreur d'envoi - Onzeur";
$data['css']="assets/css/erreur_mail";
$this->load->view('layout/header_dark', $data);
$this->load->view('erreur_mail.php'); $this->load->view('erreur_mail.php');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -217,11 +229,19 @@ class Contact extends CI_Controller {
} }
$mail->send(); $mail->send();
$this->load->view('layout/header_dark');
$data['title']="Confirmation d'envoi - Onzeur";
$data['css']="assets/css/confirmation_mail";
$this->load->view('layout/header_dark',$data);
$this->load->view('confirmation_mail.php'); $this->load->view('confirmation_mail.php');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} catch (Exception $e) { } catch (Exception $e) {
$this->load->view('layout/header_dark');
$data['title']="Erreur d'envoi - Onzeur";
$data['css']="assets/css/erreur_mail";
$this->load->view('layout/header_dark', $data);
$this->load->view('erreur_mail.php'); $this->load->view('erreur_mail.php');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -9,7 +9,11 @@ class Errors extends CI_Controller {
public function error_404() { public function error_404() {
$this->output->set_status_header('404'); $this->output->set_status_header('404');
$this->load->view('layout/header_dark');
$data['title'] = '404 - Page non trouvée';
$data['css']='assets/css/error_404.css';
$this->load->view('layout/header_dark', $data);
$this->load->view('error_404'); $this->load->view('error_404');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -15,6 +15,9 @@ class Home extends CI_Controller {
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html'); $this->load->helper('html');
$data['title']='Accueil - Onzeur';
$data['css']='assets/css/accueil';
// Appeler la fonction pour récupérer les couvertures d'albums // Appeler la fonction pour récupérer les couvertures d'albums
$data['covers'] = $this->Cover_model->get_covers(); $data['covers'] = $this->Cover_model->get_covers();
@ -23,8 +26,8 @@ class Home extends CI_Controller {
$data['avis'] = $this->Utilisateur_model->get_recent_avis(); $data['avis'] = $this->Utilisateur_model->get_recent_avis();
// Charger la vue avec les données récupérées // Charger la vue avec les données récupérées
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('accueil', $data); $this->load->view('accueil',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -11,7 +11,10 @@ class MentionsLegales extends CI_Controller {
public function index() public function index()
{ {
$this->load->view('layout/header_dark'); $data['title']="Mentions Légales";
$data['css']="assets/css/mention-legals";
$this->load->view('layout/header_dark',$data);
$this->load->view('mentions-legals'); $this->load->view('mentions-legals');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');

View File

@ -35,10 +35,13 @@ class Musiques extends CI_Controller {
$data['total_pages'] = $total_pages; $data['total_pages'] = $total_pages;
$data['current_page'] = $current_page; $data['current_page'] = $current_page;
$data['sort'] = $sort; // Passer la valeur de tri à la vue $data['sort'] = $sort; // Passer la valeur de tri à la vue
$data['title']="Musiques - Onzeur";
$data['css']="assets/css/musiques_list";
// Charger la vue // Charger la vue
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('musiques_list', $data); $this->load->view('musiques_list',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -19,8 +19,12 @@ class Playlists extends CI_Controller {
// Vérifier si l'utilisateur est connecté // Vérifier si l'utilisateur est connecté
if ($user_id) { if ($user_id) {
$data['playlists'] = $this->Model_playlist->get_user_playlists($user_id); $data['playlists'] = $this->Model_playlist->get_user_playlists($user_id);
$this->load->view('layout/header_dark');
$this->load->view('playlists_list', $data); $data['title']="Liste des Playlists - Onzeur";
$data['css']="assets/css/playlists_list.css";
$this->load->view('layout/header_dark', $data);
$this->load->view('playlists_list',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} else { } else {
redirect('utilisateur/connexion'); redirect('utilisateur/connexion');
@ -69,7 +73,11 @@ class Playlists extends CI_Controller {
redirect('utilisateur/connexion'); redirect('utilisateur/connexion');
} }
} else { } else {
$this->load->view('layout/header_dark');
$data['title']="Créer une Nouvelle Playlist";
$data['css']="assets/css/playlist_create";
$this->load->view('layout/header_dark', $data);
$this->load->view('playlist_create'); $this->load->view('playlist_create');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -125,8 +133,12 @@ class Playlists extends CI_Controller {
// Récupérer toutes les musiques disponibles // Récupérer toutes les musiques disponibles
$data['songs'] = $this->Model_music->get_all_songs(); $data['songs'] = $this->Model_music->get_all_songs();
$data['playlist_id'] = $playlist_id; $data['playlist_id'] = $playlist_id;
$this->load->view('layout/header_dark');
$this->load->view('playlist_add_song', $data); $data['title']="Ajouter une Chanson à la Playlist";
$data['css']="assets/css/playlist_add_song";
$this->load->view('layout/header_dark', $data);
$this->load->view('playlist_add_song',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
} }
@ -234,8 +246,12 @@ class Playlists extends CI_Controller {
} else { } else {
$data['albums'] = $this->Model_music->get_all_albums(); $data['albums'] = $this->Model_music->get_all_albums();
$data['playlist_id'] = $playlist_id; $data['playlist_id'] = $playlist_id;
$this->load->view('layout/header_dark');
$this->load->view('playlist_add_album', $data); $data['title']="Ajouter un Album à la Playlist";
$data['css']="assets/css/playlist_add_song";
$this->load->view('layout/header_dark', $data);
$this->load->view('playlist_add_album',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
} }
@ -248,9 +264,14 @@ class Playlists extends CI_Controller {
// Charger les chansons de la playlist spécifique // Charger les chansons de la playlist spécifique
$data['songs'] = $this->Model_playlist->get_songs_by_playlist($playlist_id); $data['songs'] = $this->Model_playlist->get_songs_by_playlist($playlist_id);
$data['title']="Détails de la Playlist - Onzeur";
$data['css']="assets/css/playlist_view";
// Charger la vue pour afficher les détails de la playlist // Charger la vue pour afficher les détails de la playlist
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('playlist_view', $data); $this->load->view('playlist_view', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -293,8 +314,12 @@ class Playlists extends CI_Controller {
// Récupérer tous les artistes disponibles // Récupérer tous les artistes disponibles
$data['artists'] = $this->Model_music->get_all_artists(); $data['artists'] = $this->Model_music->get_all_artists();
$data['playlist_id'] = $playlist_id; $data['playlist_id'] = $playlist_id;
$this->load->view('layout/header_dark');
$this->load->view('playlist_add_artist', $data); $data['title']="Ajouter les musiques d'un Artiste à la Playlist";
$data['css']="assets/css/playlist_add_song";
$this->load->view('layout/header_dark', $data);
$this->load->view('playlist_add_artist',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
} }

View File

@ -24,8 +24,11 @@ class Search extends CI_Controller {
$data['artistes'] = []; $data['artistes'] = [];
$data['error'] = "La requête de recherche ne peut pas être vide."; $data['error'] = "La requête de recherche ne peut pas être vide.";
$this->load->view('layout/header_dark'); $data['title']="Résultats de la recherche";
$this->load->view('search_results', $data); $data['css']="assets/css/search_results";
$this->load->view('layout/header_dark', $data);
$this->load->view('search_results',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
return; return;
} }
@ -42,9 +45,12 @@ class Search extends CI_Controller {
$data['albums'] = $albums; $data['albums'] = $albums;
$data['genres'] = $genres; $data['genres'] = $genres;
$data['artistes'] = $artistes; $data['artistes'] = $artistes;
$data['title']="Résultats de la recherche";
$data['css']="assets/css/search_results";
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('search_results', $data); $this->load->view('search_results',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
} }

View File

@ -29,8 +29,12 @@ class Utilisateur extends CI_Controller {
)); ));
if ($this->form_validation->run() == FALSE) { if ($this->form_validation->run() == FALSE) {
$data['title']="Inscription";
$data['css']="assets/css/inscription";
// Charger la vue avec les erreurs // Charger la vue avec les erreurs
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark',$data);
$this->load->view('inscription'); $this->load->view('inscription');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} else { } else {
@ -51,8 +55,12 @@ class Utilisateur extends CI_Controller {
redirect('utilisateur/connexion'); redirect('utilisateur/connexion');
} else { } else {
$data['error'] = 'Une erreur est survenue. Veuillez réessayer.'; $data['error'] = 'Une erreur est survenue. Veuillez réessayer.';
$this->load->view('layout/header_dark');
$this->load->view('inscription', $data); $data['title']="Inscription";
$data['css']="assets/css/inscription";
$this->load->view('layout/header_dark',$data);
$this->load->view('inscription',$data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
} }
@ -392,8 +400,12 @@ class Utilisateur extends CI_Controller {
$this->form_validation->set_rules('password', 'Mot de passe', 'required'); $this->form_validation->set_rules('password', 'Mot de passe', 'required');
if ($this->form_validation->run() == FALSE) { if ($this->form_validation->run() == FALSE) {
$data['title']="Connexion";
$data['css']="assets/css/inscription";
// Charger la vue avec les erreurs // Charger la vue avec les erreurs
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('connexion'); $this->load->view('connexion');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} else { } else {
@ -418,7 +430,11 @@ class Utilisateur extends CI_Controller {
redirect('utilisateur/dashboard'); redirect('utilisateur/dashboard');
} else { } else {
$data['error'] = 'Email ou mot de passe incorrect.'; $data['error'] = 'Email ou mot de passe incorrect.';
$this->load->view('layout/header_dark');
$data['title']="Connexion";
$data['css']="assets/css/inscription";
$this->load->view('layout/header_dark',$data);
$this->load->view('connexion', $data); $this->load->view('connexion', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -446,8 +462,11 @@ class Utilisateur extends CI_Controller {
$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['css']="assets/css/dashboard";
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark', $data);
$this->load->view('dashboard', $data); $this->load->view('dashboard', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -484,8 +503,11 @@ class Utilisateur extends CI_Controller {
// Récupérer à nouveau les données d'avis pour cet utilisateur // Récupérer à nouveau les données d'avis pour cet utilisateur
$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['css']="assets/css/dashboard";
$this->load->view('layout/header_dark'); $this->load->view('layout/header_dark',$data);
$this->load->view('dashboard', $data); $this->load->view('dashboard', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -521,7 +543,11 @@ class Utilisateur extends CI_Controller {
} }
$data['user'] = $this->Utilisateur_model->get_user_by_id($user_id); $data['user'] = $this->Utilisateur_model->get_user_by_id($user_id);
$this->load->view('layout/header_dark');
$data['title']="Dashboard - Onzeur";
$data['css']="assets/css/dashboard";
$this->load->view('layout/header_dark', $data);
$this->load->view('dashboard', $data); $this->load->view('dashboard', $data);
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }
@ -551,7 +577,11 @@ class Utilisateur extends CI_Controller {
} }
public function non_autorisee(){ public function non_autorisee(){
$this->load->view('layout/header_dark');
$data['title']="Accès non autorisé - Onzeur";
$data['css']="assets/css/style.css";
$this->load->view('layout/header_dark', $data);
$this->load->view('non_autorisee'); $this->load->view('non_autorisee');
$this->load->view('layout/footer_dark'); $this->load->view('layout/footer_dark');
} }

View File

@ -1,8 +1,5 @@
<head>
<link rel="stylesheet" href="<?php echo base_url('assets/css/accueil'); ?>">
<title>Accueil - Onzeur</title>
</head>
<body>
<div class="hero"> <div class="hero">
<h1>Bienvenue sur Onzeur !</h1> <h1>Bienvenue sur Onzeur !</h1>
<p>Le service de création de playlist musical numéro 1 en France.</p> <p>Le service de création de playlist musical numéro 1 en France.</p>

View File

@ -1,12 +1,4 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/album_view'); ?>">
<title><?php echo $album->name; ?> - Details</title>
</head>
<body>
<div class="album-details"> <div class="album-details">
<h1><?php echo $album->name; ?></h1> <h1><?php echo $album->name; ?></h1>
@ -29,4 +21,3 @@
<?php endif; ?> <?php endif; ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,13 +1,4 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/style'); ?>">
<link rel="icon" type="image/x-icon" href="<?php echo base_url('assets/img/Logo_ONZEUR.png'); ?>">
<title>Albums - Onzeur</title>
</head>
<body>
<h1 class="title">Listes des albums</h1> <h1 class="title">Listes des albums</h1>
<div class="filters"> <div class="filters">
@ -66,4 +57,3 @@
<?php endif; ?> <?php endif; ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,12 +1,4 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/artiste_details'); ?>">
<title>Détails de l'artiste - Onzeur <?php echo $artiste->name; ?></title>
</head>
<body>
<div class="artist-details"> <div class="artist-details">
<h1>Détails de l'artiste <?php echo $artiste->name; ?></h1> <h1>Détails de l'artiste <?php echo $artiste->name; ?></h1>
<p><strong>Genre le plus utilisé :</strong> <?php echo $mostUsedGenre->genreName; ?></p> <p><strong>Genre le plus utilisé :</strong> <?php echo $mostUsedGenre->genreName; ?></p>
@ -40,4 +32,3 @@
</ul> </ul>
</div> </div>
</body> </body>
</html>

View File

@ -1,12 +1,4 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?= link_tag('assets/css/artists_list.css') ?>
<title>Liste des Artistes - Onzeur</title>
</head>
<body>
<div class="artist-list-container"> <div class="artist-list-container">
<h1>Liste des Artistes</h1> <h1>Liste des Artistes</h1>
<div class="sort-options"> <div class="sort-options">
@ -30,4 +22,3 @@
</ul> </ul>
</div> </div>
</body> </body>
</html>

View File

@ -1,10 +1,3 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="<?php echo base_url('assets/css/confirmation_mail'); ?>">
<title>Confirmation d'envoi - Onzeur</title>
</head>
<body>
<div class="hero"> <div class="hero">
<h1>Confirmation d'envoi</h1> <h1>Confirmation d'envoi</h1>
<p>Merci ! Votre message a été envoyé avec succès.</p> <p>Merci ! Votre message a été envoyé avec succès.</p>
@ -25,4 +18,4 @@
</div> </div>
</div> </div>
</body> </body>
</html>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Connexion</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/inscription'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h2>Connexion</h2> <h2>Connexion</h2>
@ -50,4 +41,3 @@
} }
</script> </script>
</body> </body>
</html>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - Onzeur</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/dashboard'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h2>Bienvenue, <?php echo $user->prenom; ?> 👋 !</h2> <h2>Bienvenue, <?php echo $user->prenom; ?> 👋 !</h2>
@ -95,5 +86,4 @@
<p>Vous n'avez écrit aucun avis.</p> <p>Vous n'avez écrit aucun avis.</p>
<?php endif; ?> <?php endif; ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,10 +1,3 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="<?php echo base_url('assets/css/erreur_mail'); ?>">
<title>Erreur d'envoi - Onzeur</title>
</head>
<body>
<div class="hero"> <div class="hero">
<h1>Erreur d'envoi</h1> <h1>Erreur d'envoi</h1>
<p>Une erreur s'est produite lors de l'envoi de votre message.</p> <p>Une erreur s'est produite lors de l'envoi de votre message.</p>
@ -18,4 +11,4 @@
</div> </div>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>404 - Page non trouvée</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/error_404.css'); ?>">
</head>
<body>
<h1>Erreur 404 🤖 - Cette page n'existe pas<h1> <h1>Erreur 404 🤖 - Cette page n'existe pas<h1>
<p>Ne partez pas si vite, pourquoi ne pas rester pour jouer à Flappy Onzeur ?</p> <p>Ne partez pas si vite, pourquoi ne pas rester pour jouer à Flappy Onzeur ?</p>
<canvas id="flappyBirdCanvas" width="400" height="600"></canvas> <canvas id="flappyBirdCanvas" width="400" height="600"></canvas>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inscription</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/inscription'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h2>Inscription</h2> <h2>Inscription</h2>
@ -60,5 +51,4 @@
} }
} }
</script> </script>
</body> </body>
</html>

View File

@ -3,24 +3,32 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<?=link_tag('assets/css/header_dark.css')?> <?=link_tag('assets/css/header_dark.css')?>
<?=link_tag('assets/img/Logo_ONZEUR.png')?> <?=link_tag('assets/img/Logo_ONZEUR.png')?>
<?=link_tag(array( <?=link_tag(array(
'href'=>'assets/img/Logo_ONZEUR.png', 'href'=>'assets/img/Logo_ONZEUR.png',
'rel'=>'icon', 'rel'=>'icon',
'type'=>'image/x-icon' 'type'=>'image/x-icon'
))?> )
)?>
<?=link_tag('assets/css/footer_dark.css')?> <?=link_tag('assets/css/footer_dark.css')?>
<?=link_tag($css)?>
<title><?php echo $title;?> </title>
</head> </head>
<body> <body>
<?php if (get_cookie('user_logged_in')): ?> <?php if (get_cookie('user_logged_in')): ?>
<!-- Utilisateur connecté --> <!-- Utilisateur connecté -->
<?php $this->load->view('layout/header_logged_dark'); ?> <?php $this->load->view('layout/header_logged_dark'); ?>
<?php else: ?> <?php else: ?>
<!-- Utilisateur non connecté --> <!-- Utilisateur non connecté -->
<?php $this->load->view('layout/header_not_logged_dark'); ?> <?php $this->load->view('layout/header_not_logged_dark'); ?>
<?php endif; ?> <?php endif; ?>
<!-- Contenu de la page --> <!-- Contenu de la page -->
</body>
</html>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/mention-legals'); ?>">
<title>Mentions Légales</title>
</head>
<body>
<header> <header>
<h1>Mentions Légales</h1> <h1>Mentions Légales</h1>
</header> </header>
@ -39,4 +30,3 @@
<p>Cette page de mentions légales est conforme aux exigences légales en vigueur. Dernière mise à jour : 22 mai 2024.</p> <p>Cette page de mentions légales est conforme aux exigences légales en vigueur. Dernière mise à jour : 22 mai 2024.</p>
</footer> </footer>
</body> </body>
</html>

View File

@ -1,13 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/musiques_list'); ?>">
<link rel="icon" type="image/x-icon" href="<?php echo base_url('assets/img/Logo_ONZEUR.png'); ?>">
<title>Musiques - Onzeur</title>
</head>
<body>
<h1 class="title">Liste des musiques</h1> <h1 class="title">Liste des musiques</h1>
<div class="filters"> <div class="filters">
@ -66,4 +56,3 @@
<?php endif; ?> <?php endif; ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,13 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>Accès non autorisé - Onzeur</title>
</head>
<body>
<div> <div>
<h2>Accès non autorisé ! </h2> <h2>Accès non autorisé ! </h2>
<p>Désolé, vous n'êtes pas autorisé à accéder à cette page.</p> <p>Désolé, vous n'êtes pas autorisé à accéder à cette page.</p>
<p>Veuillez vous connecter avec un compte autorisé à visualiser ce contenu ou contacter l'administrateur du site.</p> <p>Veuillez vous connecter avec un compte autorisé à visualiser ce contenu ou contacter l'administrateur du site.</p>
</div> </div>
</body> </body>
</html>

View File

@ -1,10 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="<?php echo base_url('assets/css/nous-contacter'); ?>">
<title>Nous contacter - Onzeur</title>
</head>
<body>
<div class="hero"> <div class="hero">
<h1>Nous contacter</h1> <h1>Nous contacter</h1>
<p>N'hésitez pas à nous contacter pour toute question ou demande.</p> <p>N'hésitez pas à nous contacter pour toute question ou demande.</p>
@ -23,4 +17,3 @@
</div> </div>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Ajouter un Album à la Playlist</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_add_song'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h1>Ajouter un Album à la Playlist</h1> <h1>Ajouter un Album à la Playlist</h1>
<?php echo form_open('playlists/add_album/'.$playlist_id); ?> <?php echo form_open('playlists/add_album/'.$playlist_id); ?>
@ -21,4 +13,3 @@
<?php echo form_close(); ?> <?php echo form_close(); ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Ajouter les musiques d'un Artiste à la Playlist</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_add_song'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h1>Ajouter les musiques d'un Artiste à la Playlist</h1> <h1>Ajouter les musiques d'un Artiste à la Playlist</h1>
<?php echo form_open('playlists/add_artist/'.$playlist_id); ?> <?php echo form_open('playlists/add_artist/'.$playlist_id); ?>
@ -21,4 +13,3 @@
<?php echo form_close(); ?> <?php echo form_close(); ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Ajouter une Chanson à la Playlist</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_add_song'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h1>Ajouter une Chanson à la Playlist</h1> <h1>Ajouter une Chanson à la Playlist</h1>
<?php echo form_open('playlists/add_song/'.$playlist_id); ?> <?php echo form_open('playlists/add_song/'.$playlist_id); ?>
@ -21,4 +13,3 @@
<?php echo form_close(); ?> <?php echo form_close(); ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Créer une Nouvelle Playlist</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_create'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h1>Créer une Nouvelle Playlist</h1> <h1>Créer une Nouvelle Playlist</h1>
<?php echo form_open('playlists/create'); ?> <?php echo form_open('playlists/create'); ?>
@ -21,4 +13,4 @@
<?php echo form_close(); ?> <?php echo form_close(); ?>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Détails de la Playlist - Onzeur</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_view'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<!-- Messages Flash --> <!-- Messages Flash -->
<?php if($this->session->flashdata('success')): ?> <?php if($this->session->flashdata('success')): ?>
@ -71,5 +63,4 @@
<a href="<?php echo site_url('playlists/add_artist/' . $playlist->id); ?>" class="btn btn-primary">Ajouter les musiques d'un artiste</a> <a href="<?php echo site_url('playlists/add_artist/' . $playlist->id); ?>" class="btn btn-primary">Ajouter les musiques d'un artiste</a>
<a href="<?php echo site_url('playlists'); ?>" class="btn btn-secondary">Retour</a> <a href="<?php echo site_url('playlists'); ?>" class="btn btn-secondary">Retour</a>
</div> </div>
</body> </body>
</html>

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Liste des Playlists - Onzeur</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlists_list.css'); ?>">
</head>
<body>
<div class="container"> <div class="container">
<h1>Liste des Playlists</h1> <h1>Liste des Playlists</h1>
<a href="<?php echo site_url('playlists/create'); ?>" class="btn btn-primary">Créer une Nouvelle Playlist</a> <a href="<?php echo site_url('playlists/create'); ?>" class="btn btn-primary">Créer une Nouvelle Playlist</a>
@ -39,5 +31,4 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</body> </body>
</html>

View File

@ -1,12 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/search_results'); ?>">
<title>Résultats de la recherche</title>
</head>
<body>
<h2 class="search-title">Résultats de la recherche pour "<?php echo htmlspecialchars($query, ENT_QUOTES, 'UTF-8'); ?>"</h2> <h2 class="search-title">Résultats de la recherche pour "<?php echo htmlspecialchars($query, ENT_QUOTES, 'UTF-8'); ?>"</h2>
<?php if (!empty($error)): ?> <?php if (!empty($error)): ?>
@ -79,4 +70,3 @@
<?php endif; ?> <?php endif; ?>
</body> </body>
</html>