Ajout de liens clickable dans la recherche

This commit is contained in:
stiti 2024-05-23 10:08:20 +02:00
parent f4c70a8ab7
commit 53b4895d89

View File

@ -16,7 +16,12 @@
<h3>Musiques</h3> <h3>Musiques</h3>
<ul> <ul>
<?php foreach($musiques as $musique): ?> <?php foreach($musiques as $musique): ?>
<li><?php echo htmlspecialchars($musique->name, ENT_QUOTES, 'UTF-8'); ?> - <?php echo htmlspecialchars($musique->artistName, ENT_QUOTES, 'UTF-8'); ?></li> <li>
<?php echo htmlspecialchars($musique->name, ENT_QUOTES, 'UTF-8'); ?> -
<a href="<?php echo site_url('artiste/'.$musique->artist_id); ?>">
<?php echo htmlspecialchars($musique->artistName, ENT_QUOTES, 'UTF-8'); ?>
</a>
</li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
@ -25,7 +30,15 @@
<h3>Albums</h3> <h3>Albums</h3>
<ul> <ul>
<?php foreach($albums as $album): ?> <?php foreach($albums as $album): ?>
<li><?php echo htmlspecialchars($album->name, ENT_QUOTES, 'UTF-8'); ?> by <?php echo htmlspecialchars($album->artistName, ENT_QUOTES, 'UTF-8'); ?></li> <li>
<a href="<?php echo site_url('albums/view/'.$album->id); ?>">
<?php echo htmlspecialchars($album->name, ENT_QUOTES, 'UTF-8'); ?>
</a>
-
<a href="<?php echo site_url('artiste/'.$musique->artist_id); ?>">
<?php echo htmlspecialchars($musique->artistName, ENT_QUOTES, 'UTF-8'); ?>
</a>
</li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
@ -43,7 +56,11 @@
<h3>Artistes</h3> <h3>Artistes</h3>
<ul> <ul>
<?php foreach($artistes as $artiste): ?> <?php foreach($artistes as $artiste): ?>
<li><?php echo htmlspecialchars($artiste->name, ENT_QUOTES, 'UTF-8'); ?></li> <li>
<a href="<?php echo site_url('artiste/'.$artiste->id); ?>">
<?php echo htmlspecialchars($artiste->name, ENT_QUOTES, 'UTF-8'); ?>
</a>
</li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>