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
|
// içi on crée le fichier de caractéristiques techniques plus précise du véhicule qu'on vient d'ajouter à la base de données
$fp = fopen("ftp://mylogin:mypassword@garage-botton-villard.com/web/fich_tech/$leNewIdAnnonce.html","w"); //---> écriture depuis début du fichier avec le W
// on met ça en commentaire car on est plus en LOCAL ---> $fp = fopen("C:\\Program Files\\EasyPHP1-8\\www\\site garage php sql\\fich_tech\\$leNewIdAnnonce.html","w"); //---> écriture depuis début du fichier avec le W
fputs($fp, "<html>
<head>
<title>
Fiche Technique Véhicule
</title>
</head>
<body>
<table border='2' bordercolor='#000000'>
<tr>
<td bgcolor='#FF0000' width='60%'>MARQUE</td>
<td align='center' width='40%'>$theMarque</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>MODELE</td>
<td align='center' width='40%'>$theModele</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>ANNEE MODELE</td>
<td align='center' width='40%'>$theAnnee</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>CARROSSERIE</td>
<td align='center' width='40%'>$theListeCarross</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>ENERGIE</td>
<td align='center' width='40%'>$theListeEnergie</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>KILOMETRAGE</td>
<td align='center' width='40%'>$theKm Kms</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>PRIX</td>
<td align='center' width='40%'>$thePrix </td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>MENSUALITES</td>
<td align='center' width='40%'>$theMensua </td>
</tr>
<tr>
<td width='60%'> </td>
<td width='40%'> </td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>DATE DE MISE EN CIRCULATION</td>
<td align='center' width='40%'>$maDateDMCTab</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>COULEUR</td>
<td align='center' width='40%'>$theCouleur</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>PUISSANCE</td>
<td align='center' width='40%'>$thePuiss cv</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>GARANTIE</td>
<td align='center' width='40%'>$theListeGarantie</td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>EQUIPEMENTS</td>
<td align='center' width='40%'>$theEquipmts</td>
</tr>
<tr>
<td width='60%'> </td>
<td width='40%'> </td>
</tr>
<tr>
<td bgcolor='#FF0000' width='60%'>PHOTO</td>
<td align='center' width='40%'><a href=\"#\" onClick=\"open('imag_vehic/FAUT_MODIF_ICI.JPG', 'Nix', 'width=660,height=508,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no')\">Voir</a></td>
</tr>
</body>
</html>"); // on met le tableau de caractéristiques dans le fichier correspondant au nouveau véhicule ajouté dans la table VOITURE
fclose($fp); |
Partager