<?php include('partie1_admin.php');?>
<div id="coverer" align="center">
<h2><img src="img/fleche.gif" style="margin-bottom:-10px;" height="40" width="40">&nbsp;Galerie Videos</h2>
<a href="liste_videos.php"><p class="bouton_design" style="display:inline-block; color:#fff;">Retour</p></a>

<?php
include('connexion_mysql.php');
if (isset($_GET['modifier_video'])) // Si on demande de modifier une news

{
$retourb = 'SELECT * FROM videos WHERE id=\'' .
$_GET['modifier_video'] . '\'';
$res = $conn->query($retourb);
$donnees = mysqli_fetch_array($res);

$video = $donnees['video'];
$description = $donnees['description'];
$id_news = $_GET['modifier_video']; // Cette variable va servir pour se souvenir que c'est une modification.




}



?>
<form action="liste_videos.php" method="post" enctype="multipart/form-data">
<p align="center"><span style="font-family:'Comic Sans MS', cursive";><?php echo $description; ?></span><br /><br />

<iframe width="200" height="180" src="<?php echo $video; ?>" frameborder="0" allowfullscreen></iframe>

</p>
<p>
Lien de Video youtube:&nbsp;
<input  style="width:400px;" type="text" name="video" value="<?php echo $video;
?>" /><br />
</p>
<input type="hidden" name="id_news" value="<?php echo $id_news;
?>" />
<input type="submit" value="Envoyer" name="modifier_video" />
</p>
</form>




<?php include('partie3_admin.php'); ?>