	<?php include('partie1.php'); ?>
	<link href="css/detaya.css" rel='stylesheet' type='text/css' />



	<div class="row detayam2019_header" style=" background: linear-gradient(
	 rgba(0, 0, 0, 0.45), 
	 rgba(0, 0, 0, 0.45)
	 ),url(uploads/fond_header1.png); 
	 background-size:cover;
	 background-repeat:no-repeat;height:250px;">

	<div class="container">
			<br><br><h1>Contact</h1>
	</div>

	</div>

	

<!-- contact -->

<div class="container" style="background:#eee; padding-top:0px;">
	<section class="wthree-row w3-contact">
		<div class="container py-xl-5 py-lg-3" style="">
		
			</div>
			<div class="row contact-form" style="background:#eee;">
				<div class="col-lg-6 wthree-form-left">
					<!-- contact form grid -->
					<div class="contact-top1">
						
						<form  style="margin-top:-50px;" action="contact.php" method="post">
			
			
			 <?php $reponse="<span  style=\"color:rgba(0,0,0,0.7); font-weight:bold; font-size:16px;\"></span><br><br>";
 echo $reponse;

if (isset ($_POST['envoyer'])) 
{
	$nom=addslashes($_POST['nom']);
	$prenom=addslashes($_POST['prenom']);
	$mail=addslashes($_POST['mail']);
	$pays=addslashes($_POST['pays']);
	$message=addslashes($_POST['message']);
	$objet=addslashes($_POST['objet']);
	$tel=addslashes($_POST['tel']);
	$date = addslashes(date("d/m/Y"));

    if (($nom == "")|| ($prenom == "") || ($mail == "") || ($message == ""))
              {
				  $reponse="<img src=\"img/fleche.gif\" style='width:24px; height:24px; margin-top:-10px;'><span style=\"color:red;\"> veuillez remplir correctement les champs</span>";
				  $reponse1="";
				  echo $reponse.'<br><br>';
			  }
			  else
			  {
				  $reponse="<img src=\"img/fleche.gif\" style='width:24px; height:24px; margin-top:-10px;'><span style=\"color:green;\">&nbsp;&nbsp; message a été envoyé avec succès</span>";
				  echo $reponse;
				  include('connexion_mysql.php');
				  $inserta = "INSERT INTO messages (nom,prenom,mail,pays,objet,message,date) VALUES('" . $nom . "','" . $prenom . "','" . $mail . "','" . $pays . "','" . $objet . "','" . $message . "','" . $date . "')";
				  $res = $conn->query($inserta);
				  
				    	$message1 = $_POST['message'];
		$objet1 = $_POST['objet'];
		$nom1 = $_POST['nom'];
		$pays1 = $_POST['pays'];
		$prenom1 = $_POST['prenom'];
		$mail1 = $_POST['mail'];
		$tel1 = $_POST['tel'];
				  
				  		  /*include('envoi_mail.php');*/
				  
			  }
}




?>
		
<br><br>
<p><span style=''>> Nom :</span><br /> <input  style="background:#fff; border:1px solid #777;" type="text"  name="nom" value="" /></p><br>
<p>
<p><span style=''>> Prénom(s) :</span><br /> <input  style="background:#fff; border:1px solid #777;" type="text"  name="prenom" value="" /></p><br>
<p>
<p><span style=''>> E-mail :</span><br /> <input  style="background:#fff; border:1px solid #777;"type="text"  name="mail" value="" /></p><br><br>
<p><span style=''>> N° Téléphone :</span><br /> <input  style="background:#fff;border:1px solid #777;" type="text"  name="tel" value="" /></p><br>

<p><span style=''>> Pays:<br /><select name="pays" style="width:100%; padding:5px; background:#fff; border:1px solid #777;"></span>
<option value="Afghanistan">Afghanistan</option>
<option value="Afrique_du_Sud">Afrique du Sud</option>
<option value="Albanie">Albanie</option>
<option value="Algerie">Algérie</option>
<option value="Allemagne">Allemagne</option>
<option value="Andorre">Andorre</option>
<option value="Angola">Angola</option>
<option value="Antigua-et-Barbuda">Antigua-et-Barbuda</option>
<option value="Arabie_saoudite">Arabie saoudite</option>
<option value="Argentine">Argentine</option>
<option value="Armenie">Arménie</option>
<option value="Australie">Australie</option>
<option value="Autriche">Autriche</option>
<option value="Azerbaidjan">Azerbaïdjan</option>
<option value="Bahamas">Bahamas</option>
<option value="Bahrein">Bahreïn</option>
<option value="Bangladesh">Bangladesh</option>
<option value="Barbade">Barbade</option>
<option value="Belau">Belau</option>
<option value="Belgique">Belgique</option>
<option value="Belize">Belize</option>
<option value="Benin">Bénin</option>
<option value="Bhoutan">Bhoutan</option>
<option value="Bielorussie">Biélorussie</option>
<option value="Birmanie">Birmanie</option>
<option value="Bolivie">Bolivie</option>
<option value="Bosnie-Herzégovine">Bosnie-Herzégovine</option>
<option value="Botswana">Botswana</option>
<option value="Bresil">Brésil</option>
<option value="Brunei">Brunei</option>
<option value="Bulgarie">Bulgarie</option>
<option value="Burkina">Burkina</option>
<option value="Burundi">Burundi</option>
<option value="Cambodge">Cambodge</option>
<option value="Cameroun">Cameroun</option>
<option value="Canada">Canada</option>
<option value="Cap-Vert">Cap-Vert</option>
<option value="Chili">Chili</option>
<option value="Chine">Chine</option>
<option value="Chypre">Chypre</option>
<option value="Colombie">Colombie</option>
<option value="Comores">Comores</option>
<option value="Congo">Congo</option>
<option value="Cook">Cook</option>
<option value="Coree_du_Nord">Corée du Nord</option>
<option value="Coree_du_Sud">Corée du Sud</option>
<option value="Costa_Rica">Costa Rica</option>
<option value="Cote d'Ivoire" selected="selected">Côte d'Ivoire</option>
<option value="Croatie">Croatie</option>
<option value="Cuba">Cuba</option>
<option value="Danemark">Danemark</option>
<option value="Djibouti">Djibouti</option>
<option value="Dominique">Dominique</option>
<option value="Egypte">Égypte</option>
<option value="Emirats_arabes_unis">Émirats arabes unis</option>
<option value="Equateur">Équateur</option>
<option value="Erythree">Érythrée</option>
<option value="Espagne">Espagne</option>
<option value="Estonie">Estonie</option>
<option value="Etats-Unis">États-Unis</option>
<option value="Ethiopie">Éthiopie</option>
<option value="Fidji">Fidji</option>
<option value="Finlande">Finlande</option>
<option value="France">France</option>
<option value="Gabon">Gabon</option>
<option value="Gambie">Gambie</option>
<option value="Georgie">Géorgie</option>
<option value="Ghana">Ghana</option>
<option value="Grèce">Grèce</option>
<option value="Grenade">Grenade</option>
<option value="Guatemala">Guatemala</option>
<option value="Guinee">Guinée</option>
<option value="Guinee-Bissao">Guinée-Bissao</option>
<option value="Guinee_equatoriale">Guinée équatoriale</option>
<option value="Guyana">Guyana</option>

<option value="Haiti">Haïti</option>
<option value="Honduras">Honduras</option>
<option value="Hongrie">Hongrie</option>
<option value="Inde">Inde</option>
<option value="Indonesie">Indonésie</option>
<option value="Iran">Iran</option>
<option value="Iraq">Iraq</option>
<option value="Irlande">Irlande</option>
<option value="Islande">Islande</option>
<option value="Israël">Israël</option>
<option value="Italie">Italie</option>
<option value="Jamaique">Jamaïque</option>
<option value="Japon">Japon</option>
<option value="Jordanie">Jordanie</option>
<option value="Kazakhstan">Kazakhstan</option>
<option value="Kenya">Kenya</option>
<option value="Kirghizistan">Kirghizistan</option>
<option value="Kiribati">Kiribati</option>
<option value="Koweit">Koweït</option>
<option value="Laos">Laos</option>
<option value="Lesotho">Lesotho</option>
<option value="Lettonie">Lettonie</option>
<option value="Liban">Liban</option>
<option value="Liberia">Liberia</option>
<option value="Libye">Libye</option>
<option value="Liechtenstein">Liechtenstein</option>
<option value="Lituanie">Lituanie</option>
<option value="Luxembourg">Luxembourg</option>
<option value="Macedoine">Macédoine</option>
<option value="Madagascar">Madagascar</option>
<option value="Malaisie">Malaisie</option>
<option value="Malawi">Malawi</option>
<option value="Maldives">Maldives</option>
<option value="Mali">Mali</option>
<option value="Malte">Malte</option>
<option value="Maroc">Maroc</option>
<option value="Marshall">Marshall</option>
<option value="Maurice">Maurice</option>
<option value="Mauritanie">Mauritanie</option>
<option value="Mexique">Mexique</option>
<option value="Micronesie">Micronésie</option>
<option value="Moldavie">Moldavie</option>
<option value="Monaco">Monaco</option>
<option value="Mongolie">Mongolie</option>
<option value="Mozambique">Mozambique</option>
<option value="Namibie">Namibie</option>
<option value="Nauru">Nauru</option>
<option value="Nepal">Népal</option>
<option value="Nicaragua">Nicaragua</option>
<option value="Niger">Niger</option>
<option value="Nigeria">Nigeria</option>
<option value="Niue">Niue</option>
<option value="Norvège">Norvège</option>
<option value="Nouvelle-Zelande">Nouvelle-Zélande</option>
<option value="Oman">Oman</option>
<option value="Ouganda">Ouganda</option>
<option value="Ouzbekistan">Ouzbékistan</option>
<option value="Pakistan">Pakistan</option>
<option value="Panama">Panama</option>
<option value="Papouasie-Nouvelle_Guinee">Papouasie - Nouvelle Guinée</option>
<option value="Paraguay">Paraguay</option>
<option value="Pays-Bas">Pays-Bas</option>
<option value="Perou">Pérou</option>
<option value="Philippines">Philippines</option>
<option value="Pologne">Pologne</option>
<option value="Portugal">Portugal</option>
<option value="Qatar">Qatar</option>
<option value="Republique_centrafricaine">République centrafricaine</option>
<option value="Republique_dominicaine">République dominicaine</option>
<option value="Republique_tcheque">République tchèque</option>
<option value="Roumanie">Roumanie</option>
<option value="Royaume-Uni">Royaume-Uni</option>
<option value="Russie">Russie</option>
<option value="Rwanda">Rwanda</option>
<option value="Saint-Christophe-et-Nieves">Saint-Christophe-et-Niévès</option>
<option value="Sainte-Lucie">Sainte-Lucie</option>
<option value="Saint-Marin">Saint-Marin </option>
<option value="Saint-Siège">Saint-Siège, ou leVatican</option>
<option value="Saint-Vincent-et-les_Grenadines">Saint-Vincent-et-les Grenadines</option>
<option value="Salomon">Salomon</option>
<option value="Salvador">Salvador</option>
<option value="Samoa_occidentales">Samoa occidentales</option>
<option value="Sao_Tome-et-Principe">Sao Tomé-et-Principe</option>
<option value="Senegal">Sénégal</option>

<option value="Seychelles">Seychelles</option>
<option value="Sierra_Leone">Sierra Leone</option>
<option value="Singapour">Singapour</option>
<option value="Slovaquie">Slovaquie</option>
<option value="Slovenie">Slovénie</option>
<option value="Somalie">Somalie</option>
<option value="Soudan">Soudan</option>
<option value="Sri_Lanka">Sri Lanka</option>
<option value="Sued">Suède</option>
<option value="Suisse">Suisse</option>
<option value="Suriname">Suriname</option>
<option value="Swaziland">Swaziland</option>
<option value="Syrie">Syrie</option>
<option value="Tadjikistan">Tadjikistan</option>
<option value="Tanzanie">Tanzanie</option>
<option value="Tchad">Tchad</option>
<option value="Thailande">Thaïlande</option>
<option value="Togo">Togo</option>
<option value="Tonga">Tonga</option>
<option value="Trinite-et-Tobago">Trinité-et-Tobago</option>
<option value="Tunisie">Tunisie</option>
<option value="Turkmenistan">Turkménistan</option>
<option value="Turquie">Turquie</option>
<option value="Tuvalu">Tuvalu</option>
<option value="Ukraine">Ukraine</option>
<option value="Uruguay">Uruguay</option>
<option value="Vanuatu">Vanuatu</option>
<option value="Venezuela">Venezuela</option>
<option value="Viet_Nam">Viêt Nam</option>
<option value="Yemen">Yémen</option>
<option value="Yougoslavie">Yougoslavie</option>
<option value="Zaire">Zaïre</option>
<option value="Zambie">Zambie</option>
<option value="Zimbabwe">Zimbabwe</option>
</select><br /></p>

<p style=''><br><span>Sélectionnez l'objet de  message<br /><select name="objet" style="width:100%; padding:5px; background:#fff;">
<?php         
$retour = 'SELECT * FROM objet ORDER BY id ASC';
$res = $conn->query($retour);	
while($donnees = mysqli_fetch_array($res))
{
?>
<option value="<?php echo stripslashes($donnees['libelle']);?>"><?php echo stripslashes($donnees['libelle']);?></option>
<?php } ?>


</select><br><br>
<span style=''>> Messsage :</span><br />
<textarea style="background:#fff; padding:10px; border:1px solid #777;" name="message" rows="3">
</textarea><br /></p>
<br /><input type="submit" name="envoyer" value="Envoyer" style="background:#632d94;border:2px solid #fff; width:auto;color:#fff; border-radius:8px;font-weight:bold; padding:15px;" />
</p><br><br>
</form>	
			
						
						
					</div>
					<!--  //contact form grid ends here -->
				</div>
				<!-- contact details -->
				<div class="col-lg-6 map mt-lg-0 mt-5">
					<?php 

$retourcont = 'SELECT * FROM artcle WHERE id_type =2';
	   $rescont = $conn->query($retourcont);
$donneescont = mysqli_fetch_array($rescont);
			
			echo stripslashes($donneescont['titre']).'<br><br>';
			echo stripslashes($donneescont['contenu']); ?>
			
	
				<?php 

$retour = 'SELECT * FROM artcle WHERE id_type =19';
	   $res= $conn->query($retour);
$donnees = mysqli_fetch_array($res);
			
			$titre=stripslashes($donnees['titre']);?>
			
			
</div></div>

				</div>
				<!-- //contact details -->
				
	            <iframe
            <iframe src="		<?php 

$retour = 'SELECT * FROM artcle WHERE id_type =19';
	   $res= $conn->query($retour);
$donnees = mysqli_fetch_array($res);
			
			echo stripslashes($donnees['titre']);?>" width="100%" height="350" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
			</div>
		</div>
	</section>
	</div>
	<!-- //contact -->



	<?php include('partie3.php'); ?>
	