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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
<?php
require_once("connexion.php");
class circuit{
public $id_circuit;
public $Nomcircuit;
public $Villededepart;
public $Jourdedepart;
public $Jourderetour;
public $Duree;
public $Prix;
public $Supplementsingle;
public $Reductionenfant;
public $Description;
public function recherchedecircuit()
{ $y =$_POST['id_circuit'];
$requete ="select * from circuit where id_circuit LIKE '%".$y."%';";
if($result =mysql_query($requete))
{ $row=mysql_fetch_row($result);
echo "<table width='100%' height='500'>
<center>
<tr>
<td>
<font color='white'>id_circuit:</font>
</td>
<td>
<input name='id_circuit' type='text' value=$row[0] >
</td>
</tr>
<tr>
<td>
<font color='white'>Nom circuit</font>
</td>
<td>
<input name='Nomcircuit' type='text' value= $row[1] >
</td>
</tr>
<tr>
<td>
<font color='white'>Ville de départ:</font>
</td>
<td>
<input name='Villededépart' type='text' value=$row[2]>
</td>
</tr>
<tr>
<td>
<font color='white'>Jour de départ:</font>
</td>
<td>
<input name='Jourdedépart' type='text' value=$row[3] >
</td>
</tr>
<tr>
<td>
<font color='white'>Jour de retour:</font>
</td>
<td>
<input name='Jourderetour' type='text' value=$row[4] >
</td>
</tr>
<tr>
<td>
<font color='white'>Durée:</font>
</td>
<td>
<input name='Durée' type='text' value=$row[5] >
</td>
</tr>
<tr>
<td>
<font color='white'>Prix:</font>
</td>
<td>
<input name='Prix' type='text' value=$row[6] >
</td>
</tr>
<tr>
<td>
<font color='white'>Supplement Single:</font>
</td>
<td>
<input name='Supplementsingle' type='text' value=$row[7] >
</td>
</tr>
<tr>
<td>
<font color='white'>Reduction enfant:</font>
</td>
<td>
<input name='Reductionenfant' type='text' value=$row[8] >
</td>
</tr>
<tr>
<td>
<font color=white>Description:</font>
</td>
<td>
<textarea rows=10 cols=17 name='Description' value=$row[9] ></textarea>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<tr>
<td>
<a href='ajouter.html'><img src='précédent1.jpg' width='80'height='80'></a>
</td>
<td>
<center>
<a href='admini.html'><img src='accueil.jpg' width='80' height='80'></a>
</center>
</td>
<td>
<a href='sauvegardercircuit.php'><img src='sauvegarde.jpg' width='100' height='100'></a>
</td>
</tr>
</center>
</table>";
}}
?> |