ex3 ok
10
.gitattributes
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
* text=auto
|
||||
|
||||
*.blade.php diff=html
|
||||
*.css diff=css
|
||||
*.html diff=html
|
||||
*.md diff=markdown
|
||||
*.php diff=php
|
||||
|
||||
/.github export-ignore
|
||||
CHANGELOG.md export-ignore
|
34
.gitignore
vendored
@ -1,23 +1,15 @@
|
||||
/vendor/
|
||||
node_modules/
|
||||
/node_modules
|
||||
/public/hot
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/vendor
|
||||
.env
|
||||
.env.backup
|
||||
.phpunit.result.cache
|
||||
docker-compose.override.yml
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
|
||||
# Laravel 4 specific
|
||||
bootstrap/compiled.php
|
||||
app/storage/
|
||||
|
||||
# Laravel 5 & Lumen specific
|
||||
public/storage
|
||||
public/hot
|
||||
|
||||
# Laravel 5 & Lumen specific with changed public path
|
||||
public_html/storage
|
||||
public_html/hot
|
||||
|
||||
storage/*.key
|
||||
.env
|
||||
Homestead.yaml
|
||||
Homestead.json
|
||||
/.vagrant
|
||||
.phpunit.result.cache
|
||||
/.idea
|
||||
/.vscode
|
||||
|
86
.php
Normal file
@ -0,0 +1,86 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Sélection de Films</title>
|
||||
<link href="css/bluraycss.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!- Version améliorée de Exo4.php : un second formulaire permet d'entrer des critères de sélection le résultat est multilignes ->
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<?php require "includes/entete.php"; //ajoute le menu d'authentification ?>
|
||||
</div> <!-- end of header -->
|
||||
<div class="sidebar1">
|
||||
<?php require "includes/sidebar1.ssi"; ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
|
||||
<?php
|
||||
// On vérifie si la page a été appelée sans Paramètre
|
||||
if ($_SERVER['QUERY_STRING']=='')
|
||||
{ // il faut afficher le formulaire pour obtenir l'ID du film ou des critères de sélection
|
||||
echo '<form action="findidrange.php" method="get">';
|
||||
echo '<label>Saisissez le Numéro de film minimum ci-après ...</label>';
|
||||
echo '<input name="ID" type="text" value="" size="6" maxlength="5"><br>';
|
||||
echo '<label>Saisissez le Numéro de film maximum ci-après ...</label>';
|
||||
echo '<input name="ID2" type="text" value="" size="6" maxlength="5"><br>';
|
||||
echo '<label>Saisissez le nombre de films maximum à afficher ...</label>';
|
||||
echo '<input name="limit" type="text" value="10" size="3" maxlength="3"><br>';
|
||||
echo '<input name="valider" type="submit" value="Voir les fiches de ces film">';
|
||||
echo '</form>';
|
||||
// le formulaire rappelle la page en lui envoyant les parametres ID et Valider
|
||||
}
|
||||
else
|
||||
{
|
||||
$filmid1=$_SERVER['QUERY_STRING']; // on stocke le parametre dans une variable
|
||||
// verifier que le parametre est correct, protéger de l'injection SQL
|
||||
if (substr($filmid1,0,3) !== "ID=")
|
||||
{
|
||||
echo '<H2>'.' '.$filmid1.' '.' Parametres transmis Invalides !';
|
||||
}
|
||||
else
|
||||
{
|
||||
// on traite la page avec un numéro de film valide.
|
||||
$filmid1 = $_GET['ID'];
|
||||
$filmid2 = $_GET['ID2'];
|
||||
$limlist = $_GET['limit'];
|
||||
// echo $filmid1;
|
||||
require "includes/connectbdd.php";
|
||||
$query="SELECT ID_film, Titre, Réalisateur, Année, Miniature FROM t_films WHERE ID_film >=".$filmid1." AND ID_film <= ".$filmid2." limit " .$limlist.";";
|
||||
// echo $query;
|
||||
$result=$connexion->query($query) or die('Echec de la requête, <a href="findidrange.php"> Refaire un essai </a>');
|
||||
|
||||
if ($result->num_rows > 0)
|
||||
{
|
||||
echo "<H1>Liste des ".$result->num_rows." films trouvés entre ".$filmid1." et ".$filmid2." .</H1>";
|
||||
echo '<table class="blueTable"><TR><TH>ID</TH><TH>Titre</TH><TH>Réalisateur</TH><TH>Année</TH><TH>Miniature</TH></TR>';
|
||||
while ($fiche = $result->fetch_array())
|
||||
{
|
||||
// préparation pour insertion de la miniature
|
||||
$urlmini = str_replace('\\', '/', $fiche['Miniature']);
|
||||
echo '<TR><TD><a href=fichefilm.php?ID='.$fiche['ID_film'].'> '.$fiche['ID_film'].'</TD>
|
||||
<TD>'.$fiche['Titre'].'</TD>
|
||||
<TD>'.$fiche['Réalisateur'].'</TD>
|
||||
<TD>'.$fiche['Année'].'</TD>
|
||||
<TD><img src="'.$urlmini.'" height="80px"></TD></TR>';
|
||||
}
|
||||
echo "</table><BR>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'aucun résultat, <a href="exo4b.php" > Choisissez </a> un nouveau numéro de film ...';
|
||||
}
|
||||
$connexion->close();
|
||||
}
|
||||
// fin du traitement de la page appelée avec paramètre
|
||||
}
|
||||
?>
|
||||
<!-- end .content --></div>
|
||||
<div class="footer">
|
||||
<?php require "includes/footer.ssi"; ?>
|
||||
</div>
|
||||
<!-- end .container --></div>
|
||||
</body>
|
||||
</html>
|
BIN
Images/Affiche/1000020082815_p.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
Images/Affiche/127Heures.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
Images/Affiche/201220093388_p.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
Images/Affiche/3002007732_p.jpg
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
Images/Affiche/500JoursEnsemble20092384_p.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
Images/Affiche/Amadeus19841074_p.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Images/Affiche/AmericanBeauty19991769_p.jpg
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
Images/Affiche/AmericanBuffalo19961986_p.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
Images/Affiche/Arthur20112801_p.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
Images/Affiche/Australia20081102_p.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
Images/Affiche/Avatar20093316_p.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Images/Affiche/Avatar2009372_p.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Images/Affiche/BadTeacher20112592_p.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Images/Affiche/BarneysVersion2010741_p.jpg
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
Images/Affiche/BattleLosAngeles2011769_p.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
Images/Affiche/BloodDiamond2006518_p.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
Images/Affiche/BramStokersDracula19923469_p.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Images/Affiche/Brave2012701_p.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Images/Affiche/Brazil1985349_p.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Images/Affiche/Cars2006718_p.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
Images/Affiche/CedarRapids2011821_p.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
Images/Affiche/Centurion20102896_p.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Images/Affiche/Cloverfield20082606_p.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Images/Affiche/Colombiana20112627_p.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
Images/Affiche/DesNouvellesDuBonDieu1992103_p.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
Images/Affiche/DespicableMe20102905_p.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Images/Affiche/Dmineurs2009959_p.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
Images/Affiche/Dune19842049_p.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Images/Affiche/FallingInLoveAgain19802062_p.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
Images/Affiche/FastAndFurious420091149_p.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
Images/Affiche/FullMetalJacket19872832_p.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
Images/Affiche/GranTorino20081463_p.jpg
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
Images/Affiche/GreenLantern20113740_p.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Images/Affiche/GrownUps20103247_p.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
Images/Affiche/GulliversTravels20102966_p.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
Images/Affiche/HarryPotterAndTheHalfBloo840_p.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
Images/Affiche/HarryPotterAndTheOrderOf855_p.jpg
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
Images/Affiche/Home2009938_p.jpg
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
Images/Affiche/HowToTrainYourDragon20103350_p.jpg
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
Images/Affiche/Hulk20032096_p.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
Images/Affiche/IRobot2004397_p.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
Images/Affiche/Inception20103365_p.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
Images/Affiche/Insaisissables20132568_p.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
Images/Affiche/Interstellaire20143319_p.jpg
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
Images/Affiche/IntoTheWild2007498_p.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Images/Affiche/IronMan2008676_p.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Images/Affiche/IronMan220103259_p.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
Images/Affiche/IronMan320121624_p.jpg
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
Images/Affiche/ItinraireBis20113522_p.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Images/Affiche/Jumanji19952010_p.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
Images/Affiche/KingKong20051833_p.jpg
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
Images/Affiche/LaCrmeDeCamraCafVolum1979_p.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
Images/Affiche/LaFidlit20002027_p.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Images/Affiche/LawrenceOfArabia19621809_p.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Images/Affiche/LeChanonManquant19802115_p.jpg
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
Images/Affiche/LeChocDesTitans20101502_p.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
Images/Affiche/LeConcert20091170_p.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
Images/Affiche/LePasseDroit20113865_p.jpg
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
Images/Affiche/LePortraitDeDorianGray203295_p.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Images/Affiche/LeRoyaumeDesCieux20053404_p.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
Images/Affiche/LedZeppelinCelebrationDay1949_p.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Images/Affiche/LesAventuresExtraordinaires1190_p.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
Images/Affiche/LesNocesFunbres2005627_p.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Images/Affiche/LesSimpsonLeFilm20072876_p.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
Images/Affiche/LettresDiwoJima20061481_p.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
Images/Affiche/LextraordinaireSpiderMan23794_p.jpg
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
Images/Affiche/MadMaxLaRouteDuChaos203616_p.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
Images/Affiche/MadMaxLaRouteDuChaos203698_p.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
Images/Affiche/ManOfSteel20131645_p.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
Images/Affiche/MarginCall20112957_p.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Images/Affiche/MensongesDtat20081217_p.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
Images/Affiche/MinorityReport2002977_p.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
Images/Affiche/MmoiresDeNosPres20061519_p.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
Images/Affiche/Mobius20132858_p.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Images/Affiche/MoulinRouge2001781_p.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Images/Affiche/Netforce19992078_p.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
Images/Affiche/Nine20092836_p.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
Images/Affiche/NotreUniversImpitoyable2003272_p.jpg
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
Images/Affiche/Oceans2009266_p.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Images/Affiche/PIRATES.jpg
Normal file
After Width: | Height: | Size: 159 KiB |
BIN
Images/Affiche/Predators20103331_p.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
Images/Affiche/Prometheus20121408_p.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
Images/Affiche/PrsumCoupable20112936_p.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
Images/Affiche/QuantumOfSolace2008707_p.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
Images/Affiche/RobinHood20103297_p.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Images/Affiche/ScottPilgrimVsTheWorld23281_p.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
Images/Affiche/SexeNewYork220103553_p.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
Images/Affiche/SherlockHolmes20091124_p.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
Images/Affiche/Skyfall20121607_p.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Images/Affiche/StarTrekIntoDarkness20121663_p.jpg
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
Images/Affiche/StargateLaPorteDestoiles480_p.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Images/Affiche/SuckerPunch2011881_p.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
Images/Affiche/TheAvengers2012674_p.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Images/Affiche/TheCabinInTheWoods20111305_p.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Images/Affiche/TheCampaign2012888_p.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
Images/Affiche/TheDarkKnightLeChevalier759_p.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Images/Affiche/TheEagle20112881_p.jpg
Normal file
After Width: | Height: | Size: 57 KiB |