problème résolu
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
</div>
|
||||
|
||||
<section class="list">
|
||||
<form method="post" action="your_form_action_url.php">
|
||||
<form method="post">
|
||||
<?php foreach ($playlists as $playlist): ?>
|
||||
<div class="playlist-option">
|
||||
<label>
|
||||
<input type="radio" name="playlist_id" value="<?=$playlist->playlistid ?>">
|
||||
<input type="radio" name="playlist_id" value="<?=$playlist->playlistId ?>">
|
||||
<?= $playlist->name ?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<?php foreach ($playlists as $playlist): ?>
|
||||
<div class="playlist-option">
|
||||
<label>
|
||||
<input type="radio" name="playlist_id" value="<?=$playlist->playlistid ?>">
|
||||
<input type="radio" name="playlist_id" value="<?=$playlist->playlistId ?>">
|
||||
<?= $playlist->name ?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
<?php foreach ($playlists as $playlist): ?>
|
||||
<div class="playlist-option">
|
||||
<label>
|
||||
<?php if($this->model_music->SongInThisPlaylist($id,$playlist->playlistid) == false){ ?>
|
||||
<input type="radio" name="playlist_id" value="<?= $playlist->playlistid ?>">
|
||||
<?php if($this->model_music->SongInThisPlaylist($id,$playlist->playlistId) == false){ ?>
|
||||
<input type="radio" name="playlist_id" value="<?= $playlist->playlistId ?>">
|
||||
<?= $playlist->name ?>
|
||||
<?php } ?>
|
||||
</label>
|
||||
|
||||
@@ -67,9 +67,9 @@ foreach ($albums as $album):
|
||||
<article>
|
||||
<header class="short-text">
|
||||
<?= anchor("albums/viewMusique/{$album->albumId}", $album->name); ?>
|
||||
<?php if ($this->session->userdata('logged_in')): ?>
|
||||
<?= anchor("albums/addAlbumtoPlaylist/{$album->albumId}", "<i class='fa fa-plus'></i>"); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->userdata('logged_in')):
|
||||
echo anchor("albums/addAlbumtoPlaylist/{$album->albumId}", "<i class='fa fa-plus'></i>");
|
||||
endif; ?>
|
||||
</header>
|
||||
<img src="data:image/jpeg;base64,<?= base64_encode($album->jpeg); ?>" alt="cover de l'album" />
|
||||
<nav class="short-text">Genre: <?= $album->genreName; ?></nav>
|
||||
|
||||
@@ -139,15 +139,17 @@ foreach($chansons_for_current_page as $chanson): ?>
|
||||
$start_page = max(1, $total_pages - 4);
|
||||
}
|
||||
|
||||
for ($i = $start_page; $i <= $end_page; $i++): ?>
|
||||
<?php if ($i == $current_page): ?>
|
||||
<span><?= $i ?></span>
|
||||
<?php else: ?>
|
||||
<a href="?page=<?= $i ?>"><?= $i ?></a>
|
||||
<?php endif; ?>
|
||||
<?php endfor; ?>
|
||||
if ( $total_pages > 1){
|
||||
for ($i = $start_page; $i <= $end_page; $i++): ?>
|
||||
<?php if ($i == $current_page): ?>
|
||||
<span><?= $i ?></span>
|
||||
<?php else: ?>
|
||||
<a href="?page=<?= $i ?>"><?= $i ?></a>
|
||||
<?php endif; ?>
|
||||
<?php endfor; ?>
|
||||
|
||||
<?php if ($current_page < $total_pages): ?>
|
||||
<a href="?page=<?= $current_page + 1 ?>">Next »</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($current_page < $total_pages): ?>
|
||||
<a href="?page=<?= $current_page + 1 ?>">Next »</a>
|
||||
<?php endif; ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -10,10 +10,10 @@ echo"</div>";
|
||||
foreach($playlists as $playlist){
|
||||
echo "<div><article>";
|
||||
echo "<header class='short-text'>";
|
||||
echo anchor("chansons/view/{$playlist->playlistid}","{$playlist->name}");
|
||||
echo anchor("chansons/view/{$playlist->playlistId}","{$playlist->name}");
|
||||
if($this->session->userdata('logged_in')){
|
||||
echo anchor("playlist/deletePlaylist/{$playlist->playlistid}","<i class='fa fa-trash'></i>");
|
||||
echo anchor("playlist/duplicatePlaylist/{$playlist->playlistid}","<i class='fa fa-clone'></i>");
|
||||
echo anchor("playlist/deletePlaylist/{$playlist->playlistId}","<i class='fa fa-trash'></i>");
|
||||
echo anchor("playlist/duplicatePlaylist/{$playlist->playlistId}","<i class='fa fa-clone'></i>");
|
||||
}
|
||||
echo "</header>";
|
||||
echo "</article></div>";
|
||||
|
||||
Reference in New Issue
Block a user