Skip to content
Extraits de code Groupes Projets
Valider 5d5d2422 rédigé par Paul's avatar Paul
Parcourir les fichiers

Merge branch 'dev' of https://git.iiens.net/thibaud2017/BingeWatcher into dev

parents 5dad20bb fffe486d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -111,7 +111,7 @@ $array=getBestMovieArray(); ...@@ -111,7 +111,7 @@ $array=getBestMovieArray();
{ {
echo('<tr>'); echo('<tr>');
for ($i = (0+5*$k); $i < (5+5*$k); $i++) { for ($i = (0+5*$k); $i < (5+5*$k); $i++) {
echo('<td><a href="fiche_film?id='.$array[$i]['id'].'" onclick="$(\'.loading\').fadeIn(1);"><b><center>'.($i+1).'- '.$array[$i]['title'].'</center></b><br/><img class="img-fluid img-thumbnail" width="100%" src="https://image.tmdb.org/t/p/w500/'.$array[$i]['poster_path'].'" alt="affiche du film"></a> <br/></td>'); echo('<td><br/><a href="fiche_film?id='.$array[$i]['id'].'" onclick="$(\'.loading\').fadeIn(1);"><img class="img-fluid img-thumbnail" width="100%" src="https://image.tmdb.org/t/p/w500/'.$array[$i]['poster_path'].'" alt="affiche du film"> <br/><br/><b><center>'.($i+1).'- '.$array[$i]['title'].'</center></b></a> </td>');
} }
echo('</tr>'); echo('</tr>');
} }
......
...@@ -50,7 +50,7 @@ function getMovieRecommendationArray($id) ...@@ -50,7 +50,7 @@ function getMovieRecommendationArray($id)
function getBestMovieArray() function getBestMovieArray()
{ {
$tmdb_url='https://api.themoviedb.org/3/discover/movie?api_key=7ac6810245f15284418f2a15b9b22225&language=fr-FR&sort_by=vote_average.desc&vote_count.gte=12000'; $tmdb_url='https://api.themoviedb.org/3/discover/movie?api_key=7ac6810245f15284418f2a15b9b22225&language=fr-FR&sort_by=vote_average.desc&vote_count.gte=10000';
$movie_json = file_get_contents($tmdb_url); $movie_json = file_get_contents($tmdb_url);
$movie_array = json_decode($movie_json, true); $movie_array = json_decode($movie_json, true);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter