Correction de bugs

This commit is contained in:
stiti
2024-05-25 19:13:36 +02:00
parent fb03d5b832
commit 82d46c251d
10 changed files with 206 additions and 80 deletions

View File

@@ -1,64 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
color: #640875;
}
.container {
width: 80%;
margin: 0 auto;
padding: 20px;
}
h1, h2, h3 {
color: #444;
}
.hero h1 {
color: #9f23b5;
}
.hero {
background-color: #2d1c30;
color: #fff;
padding: 50px 20px;
text-align: center;
}
.contact-form {
margin: 20px 0;
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.contact-form h2 {
margin-top: 0;
}
.contact-form input, .contact-form textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 4px;
}
.contact-form button {
padding: 10px 20px;
background-color: #333;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
</style>
<link rel="stylesheet" href="<?php echo base_url('assets/css/nous-contacter'); ?>">
<title>Nous contacter - Onzeur</title>
</head>
<body>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Ajouter un Album à la Playlist</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/style.css'); ?>">
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_add_song'); ?>">
</head>
<body>
<div class="container">

View File

@@ -0,0 +1,24 @@
<!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">
<h1>Ajouter les musiques d'un Artiste à la Playlist</h1>
<?php echo form_open('playlists/add_artist/'.$playlist_id); ?>
<div class="form-group">
<label for="artist_id">Sélectionner un Artiste :</label>
<select name="artist_id" class="form-control" required>
<?php foreach ($artists as $artist): ?>
<option value="<?php echo $artist->id; ?>"><?php echo $artist->name; ?></option>
<?php endforeach; ?>
</select>
</div>
<button type="submit" class="btn btn-primary">Ajouter les musiques de l'artiste</button>
<?php echo form_close(); ?>
</div>
</body>
</html>

View File

@@ -3,10 +3,23 @@
<head>
<meta charset="UTF-8">
<title>Détails de la Playlist</title>
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_view'); ?>">
<link rel="stylesheet" href="<?php echo base_url('assets/css/playlist_view.css'); ?>">
</head>
<body>
<div class="container">
<!-- Messages Flash -->
<?php if($this->session->flashdata('success')): ?>
<div class="alert alert-success mt-3">
<?php echo $this->session->flashdata('success'); ?>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error')): ?>
<div class="alert alert-danger mt-3">
<?php echo $this->session->flashdata('error'); ?>
</div>
<?php endif; ?>
<h1><?php echo htmlspecialchars($playlist->name, ENT_QUOTES, 'UTF-8'); ?></h1>
<form action="<?php echo site_url('playlists/update/' . $playlist->id); ?>" method="post">
<div class="form-group">
@@ -48,6 +61,7 @@
<a href="<?php echo site_url('playlists/add_song/' . $playlist->id); ?>" class="btn btn-primary">Ajouter une musique</a>
<a href="<?php echo site_url('playlists/add_album/' . $playlist->id); ?>" class="btn btn-primary">Ajouter un album</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>
</div>
</body>