problème résolu

This commit is contained in:
2024-06-17 21:06:19 +02:00
parent 4258186b14
commit 0b4dde90ac
10 changed files with 37 additions and 48 deletions

View File

@@ -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 &raquo;</a>
<?php endif; ?>
<?php if ($current_page < $total_pages): ?>
<a href="?page=<?= $current_page + 1 ?>">Next &raquo;</a>
<?php endif; ?>
<?php } ?>
</div>