1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<html>
<head></head>
<body>
<center>
<h1>Mise en ligne</h1>
</center>
<?php
//récupération des donnees
$E=$_POST['entr']; //je récupère l'entreprise selectionnée dans le formulaire
//connection avec la BD
require_once("../bd/connectbd.php");
$reponse = mysql_query("SELECT * FROM image where Nom_Entr='$E'");
// Requête SQL selectionnant uniquement les image de l'entreprise selectionnée
$rep= mysql_query("SELECT * FROM image where Nom_Entr='$E'");
//je répéte car je veux afficher deux fois
?>
<form method="POST" action="Afichimage.php">
<center>
Voici les images disponibles pour l'entreprise <input name="Entr" type="text" value="<?php echo $E;?>"><br><br>
<table>
<tr>
<td colspan="2"><b>Selectionner l'image a mettre en page d'accueil</b></td>
</tr>
<tr>
<?php
while ($donnees = mysql_fetch_array($reponse) )
{
?>
<td>
<input name="Accueil" type="radio" value="<?php echo $donnees['Nom_image']; ?>"><img src="../../images/<?php echo $donnees['Nom_image']; ?>" width="220" height="160"></input>
<?php
}
?>
</td></tr>
<tr>
<td colspan="2"><b>selectionner l'image a mettre en page de présentation </b></td>
</tr>
<tr>
<?php
while ($donnees = mysql_fetch_array($rep) )
{
?>
<td>
<input name="Pres" type="radio" value="<?php echo $donnees['Nom_image']; ?>"><img src="../../images/<?php echo $donnees['Nom_image']; ?>" width="220" height="160"></input>
<?php
}
?>
</td></tr>
</table>
<br><br>
<input type="submit" Name="val" value="Valider">
<br>
<A href="../administrateur/gereradress.html">Retour au menu précédent</A>
</center>
</form>
</body>
</html> |