css pour playlist + php
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
<h5>Créer une nouvelle Playlist</h5>
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post">
|
||||
<label for="name_playlist">Nom de la Playlist:</label>
|
||||
<input type="text" name="name_playlist" id="name_playlist" required>
|
||||
<button type="submit" name="submit">Créer</button>
|
||||
</form>
|
||||
<h5 class="playlist-title">Créer une nouvelle Playlist</h5>
|
||||
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
|
||||
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
|
||||
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
|
||||
<button type="submit" name="submit" class="playlist-button">Créer</button>
|
||||
</form>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title>MUSIC APP</title>
|
||||
<link rel="stylesheet" href="<?= base_url('assets/style.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/playlist.css') ?>">
|
||||
</head>
|
||||
<body>
|
||||
<footer class="footer">
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<link rel="stylesheet" href="<?= base_url('assets/song.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/artiste.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/album.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/playlist.css') ?>">
|
||||
</head>
|
||||
<body>
|
||||
<main class='contain'>
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<h5>Playlist List</h5>
|
||||
<?php
|
||||
|
||||
echo "<form action='" . base_url("index.php/playlist/MenuCreate/") . "' method='post'>";
|
||||
echo "<button type='Créer Playlist'>Create</button>";
|
||||
echo "<button type='submit' class='create-button'>Create</button>";
|
||||
echo "</form>";
|
||||
echo "<div class='playlist-container'>";
|
||||
|
||||
foreach($playlists as $playlist){
|
||||
echo "<div><article>";
|
||||
echo "<div class='playlist-item'>";
|
||||
echo "<header class='short-text'>";
|
||||
echo anchor("playlist/SongPlaylist/{$playlist->id}","{$playlist->name}");
|
||||
echo anchor("playlist/SongPlaylist/{$playlist->id}","<h3>{$playlist->name}</h3>");
|
||||
echo "<form action='" . base_url("index.php/playlist/delete/{$playlist->id}") . "' method='post'>";
|
||||
echo "<button type='Supprimer Playlist'>Delete</button>";
|
||||
echo "<button type='submit' class='delete-button'>Delete</button>";
|
||||
echo "</form>";
|
||||
echo "</header>";
|
||||
echo "</article></div>";
|
||||
// If you want to add an image, you can add it here
|
||||
echo "</div>";
|
||||
}
|
||||
echo "</div>";
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
<section class="list">
|
||||
<?php
|
||||
foreach($songs as $song){
|
||||
@@ -12,3 +11,4 @@ foreach($songs as $song){
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user