résolution d'un bug
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<?php $page = preg_split('/[\/]/', $_SERVER['REQUEST_URI']);
|
||||
if ($page[count($page)-2] != 'view'): ?>
|
||||
<h5>Filter Chansons</h5>
|
||||
<button type="button" onclick="toggleFilterOptions()">Filter</button>
|
||||
|
||||
@@ -64,6 +66,7 @@
|
||||
<button type="button" onclick="sortAlbums('genreName', 'asc')">Sort by Genre Asc</button>
|
||||
<button type="button" onclick="sortAlbums('genreName', 'desc')">Sort by Genre Desc</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h5>Chansons list</h5>
|
||||
<section class="list">
|
||||
@@ -103,9 +106,9 @@ foreach($chansons_for_current_page as $chanson): ?>
|
||||
<h6> <?php echo $chanson->name; ?> </h6>
|
||||
<?php if($this->session->userdata('logged_in')): ?>
|
||||
<?php if($this->model_music->SongInPlaylist($chanson->trackId)): ?>
|
||||
<?= anchor("chansons/deleteSongtoPlaylist/{$chanson->trackId}?page={$url}", "<i class='fa fa-trash'></i>"); ?>
|
||||
<?= anchor("chansons/deleteSongtoPlaylist/{$chanson->trackId}?page=$url", "<i class='fa fa-trash'></i>"); ?>
|
||||
<?php endif; ?>
|
||||
<?= anchor("chansons/addSongtoPlaylist/{$chanson->trackId}?page={$url}", "<i class='fa fa-plus'></i>"); ?>
|
||||
<?= anchor("chansons/addSongtoPlaylist/{$chanson->trackId}?page=$url", "<i class='fa fa-plus'></i>"); ?>
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
<nav class='short-text'>Nom album: <?= $chanson->albumName; ?></nav>
|
||||
|
||||
Reference in New Issue
Block a user