Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $nom_ariane ="Contact";
- $fil_ariane="";
- include("haut.php");
- include("ariane.php");
- ?>
- <?
- if($_SESSION['lang'] == 'EN'){
- $membre = "Select a group member";
- $civilite = "Civility";
- $nom = "Last Name";
- $prenom = "First Name";
- $societe = "Company name";
- $cp = "Zip code";
- $ville = "City";
- $pays = "Country";
- $tel = "Phone number";
- $c1 = "Mr.";
- $c2 = "Mrs.";
- $c3 = "Miss";
- $champs = "Compulsory field";
- $btn ="images/bt_send.jpg";
- $interesse = "intereseting by";
- $interesse2 = "Subcontracting";
- $interesse3 = "Other";
- }else{
- $membre = "Sélectionner un membre du groupe";
- $civilite = "Civilité";
- $nom = "Nom";
- $prenom = "Prénom";
- $societe = "Société";
- $cp = "Code Postal";
- $ville = "Ville";
- $pays = "Pays";
- $tel = "Téléphone";
- $c1 = "M.";
- $c2 = "Mme.";
- $c3 = "Mlle";
- $champs = "Champs obligatoires";
- $btn ="images/bt_envoyer.jpg";
- $interesse = "Intéressé par";
- $interesse2 = "Sous-traitance";
- $interesse3 = "Autre";
- }
- ?>
- <script>
- function changeForm(id_groupe){
- if(id_groupe=='laser'){
- document.getElementById('interesse').style.display="";
- }
- else{
- document.getElementById('interesse').style.display="none";
- }
- }
- function verifForm(){
- testm=false ;
- for(var j=1;j<(document.mail.mail.value.length);j++){
- if (document.mail.mail.value.charAt(j)=='@'){
- if (j<(document.mail.mail.value.length-4)){
- for (var k=j;k<(document.mail.mail.value.length-2);k++){
- if (document.mail.mail.value.charAt(k)=='.')testm=true;
- }
- }
- }
- }
- a="0";
- societe = "Vous n\'avez pas indiqué votre société.";
- nom = "Vous n\'avez pas indiqué votre nom.";
- prenom = "Vous n\'avez pas indiqué votre prénom.";
- ville = "Vous n\'avez pas indiqué votre ville.";
- tel = "Vous n\'avez pas indiqué votre téléphone.";
- mail = "Vous n\'avez pas indiqué votre adresse e-mail.";
- mailko = "Votre adresse e-mail est incorrecte.";
- message = "Vous n\'avez pas indiqué votre message.";
- if(document.mail.groupe.value == 'fareast'){
- societe = "You haven\'t indicate your company name.";
- nom = "You haven\'t indicate your last name";
- prenom = "You haven\'t indicate your first name";
- ville = "You haven\'t indicate your city";
- tel = "You haven\'t indicate your phone Number";
- mail = "You haven\'t indicate your mail";
- mailko = "Your e-mail address is incorrect";
- message = "You haven\'t indicate your message";
- }
- if (document.mail.societe.value.length == 0) {alert(societe); a="1"; document.mail.societe.focus();}
- else if (document.mail.nom.value.length == 0) {alert(nom); a="1"; document.mail.nom.focus();}
- else if (document.mail.prenom.value.length == 0) {alert(prenom); a="1"; document.mail.prenom.focus();}
- else if (document.mail.ville.value.length == 0) {alert(ville); a="1"; document.mail.ville.focus();}
- else if (document.mail.tel.value.length == 0) {alert(tel); a="1"; document.mail.tel.focus();}
- else if (document.mail.mail.value.length == 0) {alert(mail); a="1"; document.mail.mail.focus();}
- else if ((testm==false) && (document.mail.mail.value.length != 0)) {alert(mailko); a="1"; document.mail.mail.focus();}
- else if (document.mail.message.value.length == 0) {alert(message); a="1"; document.mail.message.focus();}
- if (a == 0) {
- document.mail.submit();
- }
- }
- </script>
- <tr>
- <td height="325" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td style="padding-top:10px" height="377" valign="top"><table width="100%" height="335" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="98%" align="center" valign="top"><div align="center" class="textsimpleblanc">
- <h1>CONTACT</h1>
- <div style="float:left; width:460px;">
- <?
- $query = "SELECT * FROM page WHERE id = 1 ";
- $exec = mysql_query($query) or die(mysql_error());
- $data = mysql_fetch_assoc($exec);
- echo stripslashes($data['texte']);
- ?>
- </div>
- <!--
- <div style="float:left; width:460px;">
- <img style="float:left; margin-right:10px;" src="images/logo_paris_implants_c.jpg" /><p class="textsimpleblanc" style="width:380px; margin-left:0px; text-align:justify;">
- <strong>Paris Implants</strong><br />
- 6 Chemin des plantes<br />
- 70150 MARNAY<br />
- Tel : 03.84.31.79.21<br />
- Fax : 03.84.31.90.46<br />
- </p>
- <div style="clear:both;"></div>
- <br/>
- <div style="width:250px; height:1px; background-color:#666; margin:auto;"></div>
- <br/>
- <img style="float:left; margin-right:10px;" src="images/logo_laser_c.jpg" /><p class="textsimpleblanc" style="width:380px; margin-left:0px; text-align:justify;">
- <strong>Laser Cheval</strong><br />
- 5 Rue de la Louvrière<br />
- 25480 PIREY<br />
- Tel : + 33 (0)3.81.48.34.60<br />
- Fax : + 33 (0)3.81.34.60.34
- </p>
- <div style="clear:both;"></div>
- <br/>
- <div style="width:250px; height:1px; background-color:#666; margin:auto;"></div>
- <br/>
- <img style="float:left; margin-right:10px;" src="images/logo_freres_c.jpg" /><p class="textsimpleblanc" style="width:380px; margin-left:0px; text-align:justify;">
- <strong>Cheval Frères</strong><br />
- Rue des Bosquets<br />
- BP 3004 Ecole Valentin<br />
- 25000 BESANCON
- </p>
- <div style="clear:both;"></div>
- <br/>
- <div style="width:250px; height:1px; background-color:#666; margin:auto;"></div>
- <br/>
- <img style="float:left; margin-right:10px;" src="images/logo_hardex_c.jpg" /><p class="textsimpleblanc" style="width:380px; margin-left:0px; text-align:justify;">
- <strong>Hardex</strong><br />
- 6 Chemin des plantes<br />
- 70150 MARNAY<br />
- + 33 (0)3.84.31.95.40
- </p>
- <div style="clear:both;"></div>
- <br/>
- <div style="width:250px; height:1px; background-color:#666; margin:auto;"></div>
- <br/>
- <img style="float:left; margin-right:10px;" src="images/logo_imi_c.jpg" /><p class="textsimpleblanc" style="width:380px; margin-left:0px; text-align:justify;">
- <strong>IMI Swiss</strong><br />
- Adresse : Rue Jambe-Ducommun 6b<br />
- CH – 2400 LE LOCLE<br />
- Tel : +41.32.925.70.10<br />
- Fax : +41.32.925.70.19
- </p>
- <div style="clear:both;"></div>
- <br/>
- <div style="width:250px; height:1px; background-color:#666; margin:auto;"></div>
- <br/>
- <img style="float:left; margin-right:10px;" src="images/logo_east.jpg" /><p class="textsimpleblanc" style="width:380px; margin-left:0px; text-align:justify;">
- <strong>Cheval far east ltd</strong><br />
- </p>
- <div style="clear:both;"></div>
- <br/>
- <div style="width:250px; height:1px; background-color:#666; margin:auto;"></div>
- <br/>
- </div>
- -->
- <div style="width:1px; height:425px; float:left; background-color:#666; margin-left:20px;"></div>
- <div style="float:right; width:500px;">
- <?
- if(isset($_POST["ok"]) && $_POST["ok"] == 1){
- $civilite = "Civilité";
- $nom = "Nom";
- $prenom = "Prénom";
- $societe = "Société";
- $cp = "Code Postal";
- $ville = "Ville";
- $pays = "Pays";
- $tel = "Téléphone";
- $sujet = "Message depuis" ;
- $messageok= "Merci, votre demande a bien été envoyée !";
- $messageko = "Votre demande n'a pas pu être envoyée.";
- if($_POST["groupe"]=='paris'){
- $mail_site = "contact-site-groupe-paris@groupe-imi.fr";
- }else if($_POST["groupe"]=='laser'){
- $mail_site = "contact-site-groupe-laser@groupe-imi.fr";
- }else if($_POST["groupe"]=='cheval'){
- $mail_site = "t.dibiagio@cheval-freres.fr";
- }else if($_POST["groupe"]=='hardex'){
- $mail_site = "contact-site-groupe-hardex@groupe-imi.fr";
- }else if($_POST["groupe"]=='imis'){
- $mail_site = "contact-site-groupe-imis@groupe-imi.fr";
- }else if($_POST["groupe"]=='fareast'){
- $mail_site = "contact-site-groupe-fareast@groupe-imi.fr";
- $civilite = "Civility";
- $nom = "Last Name";
- $prenom = "First Name";
- $societe = "Company name";
- $cp = "Zip Code";
- $ville = "City";
- $pays = "Country";
- $tel = "phone Number";
- $sujet = "Message from";
- $messageok= "Thanks, your request has been send !";
- $messageko = "Your request hasn't been send";
- }
- if(envoi_mail($_POST["mail"],$mail_site, $sujet." ".$url_site2,
- $civilite." : ".htmlentities($_POST["civilite"])."<br>".
- $societe." : ".htmlentities($_POST["societe"])."<br>".
- $nom." : ".htmlentities($_POST["nom"])."<br>".
- $prenom." : ".htmlentities($_POST["prenom"])."<br>".
- $cp." : ".htmlentities($_POST["cp"])."<br>".
- $ville." : ".htmlentities($_POST["ville"])."<br>".
- $pays." : ".htmlentities($_POST["pays"])."<br>".
- $tel." : ".htmlentities($_POST["tel"])."<br>
- Mail : ".htmlentities($_POST["mail"])."<br><br>
- Message : ".nl2br(htmlentities($_POST["message"]))."<br>
- ")){
- echo "<br><br><div align='center' class='textsimpleblanc'><b>".$messageok."</b></div><br><br>";
- }else{
- echo "<br><br><div align='center' class='textsimpleblanc'><b>".$messageko."</b></div><br><br>";
- }
- }else{
- ?>
- <div style="width:374px; background:url(images/bg_contact.jpg) no-repeat;">
- <form action="" method="post" name="mail">
- <input type="hidden" name="ok" value="1"/>
- <table width="100%">
- <tr style="height:10px">
- <td></td>
- </tr>
- <tr >
- <td align="center" colspan="2"><strong><div id="membre"><?=$membre?></div></strong>
- <select name="groupe" onchange="changeForm(this.value)">
- <!-- <option value="imi">IMI</option> -->
- <option value="paris">Paris Implants</option>
- <option value="laser">Laser Cheval</option>
- <option value="cheval">Cheval Frères</option>
- <option value="hardex">Hardex</option>
- <option value="imis">IMI Swiss</option>
- <option value="fareast">Cheval Far East Ltd</option>
- </select>
- </td>
- </tr>
- <tr style="height:10px">
- <td></td>
- </tr>
- <tr>
- <td align="right" width="30%" id="civilite"><strong><?=$civilite?>* : </strong></td>
- <td align="left">
- <select name="civilite">
- <option id="c1" value="M." <?=(isset($civilite) && $civilite=="M." ? "selected" : "")?>><?=$c1?></option>
- <option id="c2" value="Mme" <?=(isset($civilite) && $civilite=="Mme" ? "selected" : "")?>><?=$c2?></option>
- <option id="c3" value="Melle" <?=(isset($civilite) && $civilite=="Melle" ? "selected" : "")?>><?=$c3?></option>
- </select>
- </td>
- </tr>
- <tr>
- <td align="right" id="societe"><strong><?=$societe?>* : </strong></td>
- <td align="left"><input style="width:180px;" type="text" name="societe"/></td>
- </tr>
- <tr>
- <td align="right" id="nom"><strong><?=$nom?>* : </strong></td>
- <td align="left"><input style="width:180px;" type="text" name="nom"/></td>
- </tr>
- <tr>
- <td align="right" id="prenom"><?=$prenom?> : </td>
- <td align="left"><input style="width:180px;" type="text" name="prenom"/></td>
- </tr>
- <tr>
- <td align="right" id="cp"><?=$cp?> : </td>
- <td align="left"><input style="width:180px;" type="text" name="cp"/></td>
- </tr>
- <tr>
- <td align="right" id="ville"><strong><?=$ville?>* : </strong></td>
- <td align="left"><input style="width:180px;" type="text" name="ville"/></td>
- </tr>
- <tr>
- <td align="right" id="pays"><?=$pays?> : </td>
- <td align="left"><input style="width:180px;" type="text" name="pays"/></td>
- </tr>
- <tr>
- <td align="right" id="tel"><strong><?=$tel?>* : </strong></td>
- <td align="left"><input style="width:180px;" type="text" name="tel"/></td>
- </tr>
- <tr>
- <td align="right"><strong>Email* : </strong></td>
- <td align="left"><input style="width:180px;" type="text" name="mail"/></td>
- </tr>
- <tr style="display:none" id="interesse">
- <td align="right" ><strong><?=$interesse?> : </strong></td>
- <td align="left">
- <select name="interesse" style="width:180px;">
- <option value="machine">Machine</option>
- <option value="sous-traitance"><?=intresse2?></option>
- <option value="autre"><?=intresse3?></option>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center" id="message"><strong>Message* </strong></td>
- </tr>
- <tr>
- <td colspan="2" align="center"><textarea rows="10" cols="38" name="message"></textarea></td>
- </tr>
- <tr>
- <td colspan="2" align="center" id="champs">* <?=$champs?></td>
- </tr>
- <tr>
- <td colspan="2" align="center"><a href="javascript:verifForm();"><img src="<?=$btn?>" border="0" id="bouton"/></a></td>
- </tr>
- </table>
- </form>
- <img src="images/foot_contact.jpg" />
- </div>
- <?
- }
- ?>
- </div>
- </div>
- <div style="clear:both;"></div>
- <br />
- </div></td>
- </tr></table></td></tr></table></td></tr>
- <? include("bas.php");?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement