2024-05-22 23:26:06 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Résultats de la recherche</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-05-23 09:59:04 +02:00
|
|
|
<h2>Résultats de la recherche pour "<?php echo htmlspecialchars($query, ENT_QUOTES, 'UTF-8'); ?>"</h2>
|
|
|
|
|
|
|
|
<?php if (!empty($error)): ?>
|
|
|
|
<p><?php echo $error; ?></p>
|
|
|
|
<?php endif; ?>
|
2024-05-22 23:26:06 +02:00
|
|
|
|
|
|
|
<?php if (!empty($musiques)): ?>
|
|
|
|
<h3>Musiques</h3>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($musiques as $musique): ?>
|
2024-05-23 10:08:20 +02:00
|
|
|
<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>
|
2024-05-22 23:26:06 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if (!empty($albums)): ?>
|
|
|
|
<h3>Albums</h3>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($albums as $album): ?>
|
2024-05-23 10:08:20 +02:00
|
|
|
<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>
|
2024-05-22 23:26:06 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if (!empty($genres)): ?>
|
|
|
|
<h3>Genres</h3>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($genres as $genre): ?>
|
2024-05-23 09:59:04 +02:00
|
|
|
<li><?php echo htmlspecialchars($genre->name, ENT_QUOTES, 'UTF-8'); ?></li>
|
2024-05-22 23:26:06 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if (!empty($artistes)): ?>
|
|
|
|
<h3>Artistes</h3>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($artistes as $artiste): ?>
|
2024-05-23 10:08:20 +02:00
|
|
|
<li>
|
|
|
|
<a href="<?php echo site_url('artiste/'.$artiste->id); ?>">
|
|
|
|
<?php echo htmlspecialchars($artiste->name, ENT_QUOTES, 'UTF-8'); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
2024-05-22 23:26:06 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if (empty($musiques) && empty($albums) && empty($genres) && empty($artistes)): ?>
|
|
|
|
<p>Aucun résultat trouvé.</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|