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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="styles/contact.css" />
<title>WWW.PRINTOPUB.COM - Pour faire bonne impression</title>
<script type="text/javascript">
<!--
function CheckInput() {
test=true;
if((document.FormContact.EditNom.value == "") || (document.FormContact.EditPrenom.value == "") || (document.FormContact.EditEmail.value == "") || (document.FormContact.EditTelephone.value == "") || (document.FormContact.EditSujet.value == "") || (document.FormContact.TextareaMessage.value == ""))
{
alert("Veuillez remplir les champs obligatoires (*) !");
test=false;
}
return test;
}
//-->
</script>
</head>
<body onload="document.getElementById('EditNom').focus()">
<div class="conteneur">
<div class="bandeau">
<span class="pos-image-logo">
<img src="images/logo.gif" /></span></div>
<!-- fin bandeau -->
<div class="menu-haut">
<img src="images/menu-haut.jpg" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="262,20,387,54" href="index.php" />
<area shape="rect" coords="390,19,513,57" href="upload/applet_ftp.html" />
<area shape="rect" coords="516,19,638,56" href="info-prix.php" />
<area shape="rect" coords="641,18,766,56" href="contact.php" />
</map>
</div><!-- fin menu-haut -->
<div class="colonne-laterale">
<table width="185" border="0" align="center" style="border:1px solid #E62018; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;">
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">FLYERS</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="flyers-135gr.php">Flyers 135gr</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="flyers-250gr.php">Flyers 250gr</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">CARTES DE VISITE</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="cartes-express.php">Cartes express</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="cartes-luxe.php">Cartes luxe</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="cartes-promo.php">Cartes promo</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">AFFICHES</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="affiches-a1.php">Affiches A1</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="affiches-a2.php">Affiches A2</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="affiches-a3.php">Affiches A3</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">ENVELOPPES</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="enveloppes-strip.php">Enveloppes strip</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="enveloppes-strip-fenetre.php">Enveloppes strip fenêtre</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">ENTETES</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="entetes-quadri-recto-verso.php">Entêtes quadri R/V</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="entetes-quadri-recto.php">Entêtes quadri recto</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">ADHESIFS</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-adhesif-monomere.php">Adhésif Monomère blanc</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-oneway.php">One-Way-Vision</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">BACHES ET BANDEROLES</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-bache.php">Impression sur bâche</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-bache-cadre.php">Bâche imprimée + cadre</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-bache-cadre43.php">Bâche imprimée + cadre<br /> 4x3m</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-banderole-pieds.php">Banderole + pieds</a></td>
</tr>
<tr>
<td bgcolor="#E62018" align="center" style="color:#FFFFFF; font-weight:bold;">IMPRESSION SUR SUPPORT</td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-support-akilux.php">Support Akilux</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-support-dibond.php">Support Dibond/Reynobond</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-support-magnetique.php">Support Magnétique</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-support-pvc3mm.php">Support PVC 3mm</a></td>
</tr>
<tr>
<td class="style_liens_menu"><img src="images/fleche-bleu.gif" /> <a href="impression-support-pvc8mm.php">Support PVC 8mm</a></td>
</tr>
</table>
</div><!-- fin colonne-laterale -->
<div class="contenu">
<br />
<table width="550" border="0" style="font-family:Verdana; font-size:12px;" align="center">
<tr>
<td align="center">Complètez le formulaire de contact et appuyez ensuite sur le bouton 'Envoyer'.</td>
</tr>
</table>
<br /><br />
<form action="contact.php" method="post" name="FormContact" onSubmit="return CheckInput();">
<table width="550" border="0" align="center" style="font-family:Verdana; font-size:12px;">
<tr>
<td width="140">Votre nom : *</td>
<td width="10"> </td>
<td width="400"><input name="EditNom" id="EditNom" type="text" style="width:250px;" value="<?php echo (isset($_POST['EditNom'])) ? $nom : '' ?>" /></td>
</tr>
<tr>
<td>Votre prénom : *</td>
<td> </td>
<td><input name="EditPrenom" id="EditPrenom" type="text" style="width:250px;" value="<?php echo (isset($_POST['EditPrenom'])) ? $prenom : '' ?>" /></td>
</tr>
<tr>
<td>Votre email : *</td>
<td> </td>
<td><input name="EditEmail" id="EditEmail" type="text" style="width:250px;" value="<?php echo (isset($_POST['EditEmail'])) ? $email : '' ?> "/></td>
</tr>
<tr>
<td>Votre téléphone : *</td>
<td> </td>
<td><input name="EditTelephone" id="EditTelephone" type="text" style="width:250px;" value="<?php echo (isset($_POST['EditTelephone'])) ? $telephone : '' ?>" /></td>
</tr>
<tr>
<td>Le sujet : *</td>
<td> </td>
<td><input name="EditSujet" id="EditSujet" type="text" style="width:250px;" value="<?php echo (isset($_POST['EditSujet'])) ? $sujet : '' ?>" /></td>
</tr>
<tr>
<td>Votre message : *</td>
<td> </td>
<td><textarea name="TextareaMessage" id="TextareaMessage" cols="50" rows="8" value="<?php echo (isset($_POST['TextareaMessage'])) ? $message : '' ?>"></textarea></td>
</tr>
</table>
<br />
<table width="240" border="0" style="font-family:Verdana; font-size:12px;">
<tr>
<td>* Champs obligatoires</td>
</tr>
</table>
<br />
<table width="240" border="0" style="font-family:Verdana; font-size:12px;">
<tr>
<td><input name="BtnEnvoi" type="submit" value="Envoyer" style="font-family:Verdana; font-size:12px; cursor:pointer;"/><input name="BtnInitialiser" type="reset" value="Initialiser" style="font-family:Verdana; font-size:12px; cursor:pointer;"/></td>
</tr>
</table>
<?php
if (isset($_POST['BtnEnvoi']))
{
/* Récupération des valeurs des champs du formulaire */
if (get_magic_quotes_gpc())
{
$nom = stripslashes(trim($_POST['EditNom']));
$prenom = stripslashes(trim($_POST['EditPrenom']));
$email = stripslashes(trim($_POST['EditEmail']));
$telephone = stripslashes(trim($_POST['EditTelephone']));
$sujet = stripslashes(trim($_POST['EditSujet']));
$message = stripslashes(trim($_POST['TextareaMessage']));
}
else
{
$nom = trim($_POST['EditNom']);
$prenom = trim($_POST['EditPrenom']);
$email = trim($_POST['EditEmail']);
$telephone = trim($_POST['EditTelephone']);
$sujet = trim($_POST['EditSujet']);
$message = trim($_POST['TextareaMessage']);
}
/* Fin récupération des valeurs des champs du formulaire */
/* Expression régulière permettant de vérifier si le format d'une adresse e-mail est correct */
$regex_mail = '/^[-+.\w]{1,64}@[-.\w]{1,64}\.[-.\w]{2,6}$/i';
/* On vérifie que le format de l'e-mail est correct */
if (!preg_match($regex_mail, $email))
{
?>
<script>
alert ("L'adresse email entrée n'est pas valide !");
</script>
<?php
}
else
{
/* Destinataire (votre adresse e-mail) */
$to = 'philippe.anrys@gmail.com';
/* Construction du message */
$msg = 'Bonjour,'."\r\n\r\n";
$msg .= 'Ce mail a été envoyé depuis monsite.com par '.$nom.' '.$prenom."\r\n\r\n";
$msg .= 'Voici le message qui vous est adressé :'."\r\n";
$msg .= '***************************'."\r\n";
$msg .= 'Nom : ' .$nom."\r\n";
$msg .= 'Prénom : ' .$prenom."\r\n";
$msg .= 'Email : ' .$email."\r\n";
$msg .= 'Téléphone : ' .$telephone."\r\n";
$msg .= 'Sujet : ' .$sujet."\r\n";
$msg .= 'Message : ' .$message."\r\n";
$msg .= '***************************'."\r\n";
/* En-têtes de l'e-mail */
$headers = 'From: '.$nom.' '.$prenom.' <'.$email.'>'."\r\n\r\n";
/* Envoi de l'e-mail */
mail($to, $sujet, $msg, $headers);
?>
<script>
alert ("Votre message a bien été transmit à Printopub, nous vous contacterons dans les plus brefs délais.");
</script>
<?php
}
}
?>
</form>
</div>
<!-- fin contenu -->
</div>
<!-- fin conteneur -->
</body>
</html> |
Partager