Merge branch 'main' of grond.iut-fbleau.fr:keraudre/SAE_DEV2.2_2024
This commit is contained in:
commit
2e8d69d46b
codeigniter
@ -35,17 +35,17 @@ class Artistes extends CI_Controller {
|
||||
}
|
||||
|
||||
public function search(){
|
||||
$query = $this->input->get('query');
|
||||
$artistes = $this->model_music_artistes->searchArtistes($query);
|
||||
$num_results = count($artistes);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('artistes_list', [
|
||||
'artistes' => $artistes,
|
||||
'num_results' => $num_results,
|
||||
'is_search' => true
|
||||
]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
$query = $this->input->get('query');
|
||||
$artistes = $this->model_music_artistes->searchArtistes($query);
|
||||
$num_results = count($artistes);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('artistes_list', [
|
||||
'artistes' => $artistes,
|
||||
'sort' => $this->sort,
|
||||
'num_results' => $num_results,
|
||||
'is_search' => true
|
||||
]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
</form>
|
||||
</ul>
|
||||
<form action="<?= site_url('Artistes/search'); ?>" method="get" class="search-form">
|
||||
<input type="text" name="query" placeholder="Chercher des albums" class="search-input">
|
||||
<input type="text" name="query" placeholder="Chercher des artistes" class="search-input">
|
||||
<button type="submit" class="search-button">Rechercher</button>
|
||||
</form>
|
||||
|
||||
|
@ -237,7 +237,9 @@ section.playlists {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
|
||||
.btn.btn-secondary {
|
||||
margin-left: 50px;
|
||||
}
|
||||
/* bouton ajouter sur les albums et musique */
|
||||
|
||||
.ajout-albums {
|
||||
|
Loading…
x
Reference in New Issue
Block a user