Heray-Was-Here
Server : Apache
System : Linux hybrid3195.ca.ns.planethoster.net 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
User : alliancerealtynb ( 1004)
PHP Version : 7.4.33
Disable Function : noop
Directory :  /home/alliancerealtynb/avantmaj.alliancerealty.nb.ca/adminAR/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/avantmaj.alliancerealty.nb.ca/adminAR/files/PrintFr.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Print</title>
	<link rel=STYLESHEET href="fs3.css" type="text/css">
	<style>
		.wrapper {
		  margin: 15px;
		}

		.row {
		  display: flex;
		  flex-direction: row;
		  flex-wrap: wrap;
		  width: 100%;
		}

		.column {
		  display: flex;
		  flex-direction: column;
		  flex-basis: 100%;
		  flex: 1;
		}

		.blue-column {
		  background-color: #ddd;
		}

		.green-column {
		  background-color: #ccc;
		}
		body {
		 font-family: Arial, Helvetica, sans-serif;
		 font-size: 12px;
		}
		hr {
			margin-top:-0px;
			border-top: 2px solid #890D05;
		}
		tr.info:nth-child(even) {
			background-color: #dfdfdf;
		}
		@media print {
		  div.divFooter {
			position: fixed;
			left: 0; 
			right: 0;
			bottom: 0;
			margin:auto;
		  }
		  .noPrint{ display: none;}
		}
	</style>
	<script>
                window.print(); //this triggers the print
				
				var mediaQueryList = window.matchMedia('print');
				mediaQueryList.addListener(function(mql) {
					if (mql.matches) {
						
					} else {
						window.close();
					}
				});
	</script>
</head>

<body>

	
<?php
	require_once 'config.php';
	//setlocale(LC_MONETARY, 'en_US');
	setlocale(LC_MONETARY, 'fr_CA');
	$Path = '../..';
	
	$ID = $_REQUEST['pid'];

	
echo '<div class="wrapper"><table width="100%" border="0"><tr><td align="left" valign="top" class="texte"><div align="center"><img src="../../wp-content/uploads/2021/06/AllianceRealtyLogo.png" width="150"  alt="" border="0"></td><td width="100%"><p style="font-size:10px;margin-left:30px;"><b>385, rue Victoria<BR>Edmundston, N.-B., E3V 2K3<br>
	Tél. : 506-735-1850<br>
	http://www.alliancerealty.nb.ca</b></p></td><td align="right"><img src="../../wp-content/uploads/2021/06/logo_realtor.gif" width="35" alt="Realtor" border="0" align="right"></td></tr>
	</table>';	
	
	$queryImg = "(SELECT parent_id, item_name FROM wp_wpl_items i WHERE parent_id=".$ID." ORDER BY i.index asc LIMIT 1) 
	union ALL 
	(SELECT parent_id, item_name FROM wp_wpl_items i WHERE parent_id=".$ID." ORDER BY i.index desc LIMIT 1)";

	$resultImg = mysqli_query($mysqli, $queryImg) or die("SQL Error 1: " . mysqli_error());
	$img = array();
	$CountImg = 0;
	while ($rowImg = mysqli_fetch_array($resultImg, MYSQLI_ASSOC)) {
		$img[$CountImg] = "../../wp-content/uploads/WPL/".$rowImg['parent_id']."/".$rowImg['item_name'];
		$CountImg = $CountImg + 1;
	}//while
	
	$query = "SELECT p.*, CONCAT(u.first_name, ' ', u.last_name) AS Agent
		FROM `wp_wpl_properties` p
		LEFT JOIN wp_wpl_users u ON p.user_id = u.id
		WHERE p.id=".$ID." ORDER BY p.id LIMIT 1";

	$result = mysqli_query($mysqli, $query) or die("SQL Error 1: " . mysqli_error());
	
	$CountCaract = -1;
	$Caract = array();
	while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
		$addressFR = $row['field_313_fr_fr'];
		$addressEN = $row['field_313_en_us'];
		$code_postal = $row['location_text'];
		$Dwelling = $row['field_3065'];

		if ($row['n_3048'] == 1) {$neighborhood = 'Edmundston Nord';}
			elseif ($row['n_3046'] == 1) {$neighborhood = 'Edmundston Centre';}
			elseif ($row['n_3047'] == 1) {$neighborhood = 'Edmundston Est';}
			elseif ($row['n_3049'] == 1) {$neighborhood = 'Edmundston Ouest';}
			elseif ($row['n_3051'] == 1) {$neighborhood = 'St-Basile';}
			elseif ($row['n_3053'] == 1) {$neighborhood = 'St-Jacques';}
			elseif ($row['n_3050'] == 1) {$neighborhood = 'Rivière Verte';}
			elseif ($row['n_3056'] == 1) {$neighborhood = 'Haut Madawaska';}
			elseif ($row['n_3054'] == 1) {$neighborhood = 'St-Joseph';}
			elseif ($row['n_3055'] == 1) {$neighborhood = 'Ste-Anne-de-Madawaska';}
			elseif ($row['n_3058'] == 1) {$neighborhood = 'St-Léonard';}
			elseif ($row['n_3052'] == 1) {$neighborhood = 'St-Hilaire';}
			elseif ($row['n_3045'] == 1) {$neighborhood = 'Lac Baker';}
			elseif ($row['n_3059'] == 1) {$neighborhood = 'Verret';}
			elseif ($row['n_3057'] == 1) {$neighborhood = 'Bas Madawaska';}
			else { $neighborhood = 'Quartier non-disponible';}

		$Agent = $row['Agent'];
		$MLS = $row['field_3015'];
	
		if ($Dwelling == 1) {$DwellingFR  = 'Bungalow';}
			elseif ($Dwelling == 2) {$DwellingFR = 'Mi-étage';}
			elseif ($Dwelling == 3) {$DwellingFR = 'À palier';}
			elseif ($Dwelling == 4) {$DwellingFR = '1 1/2 étage';}
			elseif ($Dwelling == 5) {$DwellingFR = '2 étages';}
			elseif ($Dwelling == 6) {$DwellingFR  = '2 1/2 étages';}
			elseif ($Dwelling == 7) {$DwellingFR  = 'Semi-Détachée';}
			elseif ($Dwelling == 8) {$DwellingFR  = 'Duplex';}
			elseif ($Dwelling == 9) {$DwellingFR  = 'Maison Mobile';}
			elseif ($Dwelling == 10) {$DwellingFR  = 'Mini-Home';}
			elseif ($Dwelling == 11) {$DwellingFR  = 'Condominium';}
			elseif ($Dwelling == 12) {$DwellingFR  = 'Terrain Vacant';}
			elseif ($Dwelling == 13) {$DwellingFR  = 'Édifice à logement';}
			elseif ($Dwelling == 14) {$DwellingFR  = 'A-Frame';}
			elseif ($Dwelling == 15) {$DwellingFR  = 'Appartement';}
			elseif ($Dwelling == 31) {$DwellingFR  = 'Autre';}
			elseif ($Dwelling == 32) {$DwellingFR  = 'Chalet';}
			elseif ($Dwelling == 33) {$DwellingFR  = 'Commercial';}
			else {$DwellingFR  = 'Non disponible';}
		
		$LotSize = mb_convert_encoding($row['field_3119_fr_fr'], "UTF-8", "HTML-ENTITIES");
		if ($LotSize == '')
		{
			$LotSizeFR = 'Non disponible';
		}	
		else
		{
			$LotSizeFR = '±'.$LotSize;
		}
		
		if ($row['field_3195'] == '1') 
		{
			$LotSizeFR = $LotSizeFR ." (Terrain en location)";
		}
		
		
		$Service = $row['field_3086'];			
		if ($Service == 1) {$ServiceFR = 'Municipal';}
		elseif ($Service == 2) {$ServiceFR = 'Privé';}
		elseif ($Service == 3) {$ServiceFR = 'Parc';}
		elseif ($Service == 4) {$ServieFR = 'Sans service';}	
		else { $ServiceFR = 'Quartier non-disponible';}
				
		$ZonageFR = $row['field_3086'];	
		
		$ListingType = $row['listing'];
		if ($ListingType == 9) {$ListingTypeFR = 'Impôts fonciers';}	
		else { $ListingTypeFR = 'Dépôt de sécurité';}	
		

		$PlusTVH = $row['field_3169'];
		if ($PlusTVH == 1 && $ListingType == 9) {$PriceHeaderFR = 'Prix (plus TVH)';}	
		elseif ($PlusTVH == 0 && $ListingType == 9) { $PriceHeaderFR = 'Prix';}	
		
		$InitialPrice = $row['field_3115'];
		if ($PlusTVH == 1 && $ListingType == 9) {$PriceHeaderFR = 'Prix (plus TVH)';}	
		elseif ($PlusTVH == 0 && $ListingType == 9) { $PriceHeaderFR = 'Prix';}	
		else { $PriceHeaderFR = 'Coût';}
	
		

	
		$ActualPrice = $row['price'];
		$RentValue = $row['field_3167'];
		if ($ActualPrice > 0 && $ListingType == 9 && $ActualPrice < $InitialPrice) {$ActualPriceFR = number_format($InitialPrice, 0, ',', ' ').' $ réduit à '.number_format($ActualPrice, 0, ',', ' ').' $';}	
		elseif ($ActualPrice > 0 && $ListingType == 9 && $ActualPrice == $InitialPrice) {$ActualPriceFR = number_format($ActualPrice, 0, ',', ' ').' $';}
		elseif ($ActualPrice > 0 && $ListingType == 10) {$ActualPriceFR = number_format($RentValue, 0, ',', ' ').' $/mois';}

		
		
		$HouseSizeFR = mb_convert_encoding($row['field_3120_fr_fr'], "UTF-8", "HTML-ENTITIES");
		if ($HouseSizeFR == '') 	
		{
			$HouseSizeFR = 'Non disponible';
		}	
		else
		{
			$HouseSizeFR = '±'.$HouseSizeFR;
		}
		
		
		$DwellingAge = $row['build_year'];
		if ($DwellingAge == 0) 
		{
			$DwellingAge = 'Non disponible';
		}
		else
		{
			$DwellingAge = '±'.$DwellingAge;
		}		


		$Bedrooms = $row['field_3064'];
		$Bathrooms = $row['field_3063'];
		$HalfBathrooms = $row['half_bathrooms'];
		$HeatingDescFR = mb_convert_encoding($row['field_3081_fr_fr'], "UTF-8", "HTML-ENTITIES");
		$DescriptionFR = mb_convert_encoding($row['field_308_fr_fr'], "UTF-8", "HTML-ENTITIES");
		$RentRemarksFR =  mb_convert_encoding($row['field_3118_fr_fr'], "UTF-8", "HTML-ENTITIES");
		
	
////---------- Caractéristiques
		if ($row['f_3018'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "À quelques min. de la ville";}//A few min. from the city
		if ($row['f_3019'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Pour possession rapide";}//For quick ownership
		if ($row['f_3020'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Près des services";}//Close to amenities
		if ($row['f_3021'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Impeccable";}//Impeccable
		if ($row['f_3031'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Investisseur";}//Investor
		if ($row['f_3032'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Construction récente";}//Recent construction
		if ($row['f_3022'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Style aire ouverte";}//Open space concept
		if ($row['f_3023'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Cour arrière privée";}//Private backyard
		if ($row['f_3033'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Vente de succession";}//Estate sale
		if ($row['f_3034'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "À revenu";}//With income
		if ($row['f_3035'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Habitable à l'année";}//Year round living
		if ($row['f_3036'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Toit cathédrale";}//Cathedral ceiling
		if ($row['f_3037'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Pré-inspecté";}//Pre-inspected
		if ($row['f_3038'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Projet bricoleur";}//Handyman project
		if ($row['f_3039'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Solarium";}//Solarium
		if ($row['f_149'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Beaucoup de rangement";}//Lots of storage
		if ($row['f_3026'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Sans voisin arrière";}//No backyard neighbor
		if ($row['f_139'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Vue panoramique";}//Panoramic view
		if ($row['f_3025'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Rénovations récentes";}//Recent renovation
		if ($row['f_3040'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Pièces spacieuses";}//Spacious rooms
		if ($row['f_3041'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Remise en argent";}//Cash back bonus
		if ($row['f_3029'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Bord de l'eau";}//Waterfront
		if ($row['f_3027'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Première fois au marché";}//First time on the market
		if ($row['f_3042'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Excellent rapport qualité/prix";}//Excellent quality/price ratio
		if ($row['f_3043'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Haut de gamme";}//High end
		if ($row['f_3028'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Garage";}//Garage
		if ($row['f_137'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Rénovatio}ns majeures";}//Major renovation
		if ($row['f_3044'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Un seul propriétaire";}//One owner
		if ($row['f_146'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Possibilité de revenu";}//Possibility of income
		if ($row['f_3024'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Clé en main";}//Turn key condition
		if ($row['f_150'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Construction de qualité supérieure";}//Superior quality construction
		if ($row['f_144'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Foyer";}//Fireplace
		if ($row['f_131'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Piscine";}//Pool
		if ($row['f_3060'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Salle à manger";}//Dining room
		if ($row['f_3061'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Salle familiale";}//Family room
		if ($row['f_3062'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Sous-sol fini";}//Finished basement

		
		
		
		
		
		$ItemsFR = mb_convert_encoding($row['field_3017_fr_fr'], "UTF-8", "HTML-ENTITIES");

		
		
		$CommentsFR =  mb_convert_encoding($row['field_308_fr_fr'], "UTF-8", "HTML-ENTITIES");
		$RentRemarksFR =  mb_convert_encoding($row['field_3118_fr_fr'], "UTF-8", "HTML-ENTITIES");

		$Banner = "";
		if ($row['sp_featured'] == 1) {$Banner = "sold_fr.png";}
		if ($row['sp_hot'] == 1) {$Banner = "price_reduced_fr.png";}
		//if ($row['sp_openhouse'] == 1) {$Banner = "Spéciales";}
		if ($row['field_3126'] == 1) {$Banner = "10000_reduction_fr.png";}
		if ($row['field_3127'] == 1) {$Banner = "35000_reduction_fr.png";}
		if ($row['field_3128'] == 1) {$Banner = "3_bedrooms_fr.png";}
		if ($row['field_3129'] == 1) {$Banner = "4_bedrooms_fr.png";}
		if ($row['field_3130'] == 1) {$Banner = "season_cottage_fr.png";}
		if ($row['field_3131'] == 1) {$Banner = "big_lot_fr.png";}
		if ($row['field_3132'] == 1) {$Banner = "cashback_fr.png";}
		if ($row['field_3133'] == 1) {$Banner = "cathedral_ceiling_fr.png";}
		if ($row['field_3134'] == 1) {$Banner = "close_services_fr.png";}
		if ($row['field_3135'] == 1) {$Banner = "cottage_fr.png";}
		if ($row['field_3136'] == 1) {$Banner = "duplex_fr.png";}
		if ($row['field_3137'] == 1) {$Banner = "fireplace_fr.png";}
		if ($row['field_3138'] == 1) {$Banner = "foreclosed property_fr.png";}
		if ($row['field_3139'] == 1) {$Banner = "time_market_fr.png";}
		if ($row['field_3140'] == 1) {$Banner = "quick_sale_fr.png";}
		if ($row['field_3141'] == 1) {$Banner = "handyman_special_fr.png";}
		if ($row['field_3142'] == 1) {$Banner = "high_quality_fr.png";}
		if ($row['field_3143'] == 1) {$Banner = "impeccable_fr.png";}
		if ($row['field_3144'] == 1) {$Banner = "investor_fr.png";}
		if ($row['field_3145'] == 1) {$Banner = "country_fr.png";}
		if ($row['field_3146'] == 1) {$Banner = "renovations_fr.png";}
		if ($row['field_3147'] == 1) {$Banner = "near_university_fr.png";}
		if ($row['field_3148'] == 1) {$Banner = "negociable_fr.png";}
		if ($row['field_3149'] == 1) {$Banner = "new_construction_fr.png";}
		if ($row['field_3150'] == 1) {$Banner = "new_listing_fr.png";}
		if ($row['field_3151'] == 1) {$Banner = "panoramic_view_fr.png";}
		if ($row['field_3152'] == 1) {$Banner = "pool_fr.png";}
		if ($row['field_3153'] == 1) {$Banner = "pre-inspected_fr.png";}
		if ($row['field_3154'] == 1) {$Banner = "prestigious_property_fr.png";}
		if ($row['field_3155'] == 1) {$Banner = "price_revised_fr.png";}
		if ($row['field_3156'] == 1) {$Banner = "renovated_fr.png";}
		if ($row['field_3157'] == 1) {$Banner = "revenu_fr.png";}
		if ($row['field_3158'] == 1) {$Banner = "Riverside_property_fr.png";}
		if ($row['field_3159'] == 1) {$Banner = "spacious_property_fr.png";}
		if ($row['field_3160'] == 1) {$Banner = "transfer_fr.png";}
		if ($row['field_3161'] == 1) {$Banner = "unique_fr.png";}
		if ($row['field_3162'] == 1) {$Banner = "urgent_fr.png";}
		if ($row['field_3163'] == 1) {$Banner = "vacant_lot_fr.png";}
		if ($row['field_3164'] == 1) {$Banner = "view_river_fr.png";}
		if ($row['field_3165'] == 1) {$Banner = "waterfront_fr.png";}		
		
		
		
		
}//while	


echo '<div align="center" style="display:block;width:100%;margin-bottom:10px;"><table class="defaulttable" border="0" cellspacing="0" cellpadding="0" align="center">';
echo '<tr><td align="center" valign="top">';



if ($Banner <> "")
{
//	echo '<div style=""><img src="../../wp-content/uploads/Banners/'.$Banner.'" style="position:absolute;margin-top:8px;margin-left:-267px;width:100px;z-index:100;" /></div>';
}




for ($x = 0; $x < $CountImg; $x++) {	
if ($img[0] <> "") 
	{
		if ($img[0] <> $img[1])
		{	
			echo '<img src="'.$img[$x].'" width="250" style="margin-left:15px;margin-right:15px;border-spacing: 0; border: 2px solid #999; border-radius: 10px;" alt="">';
		}
		elseif ($x == 0) 
		{	
			echo '<img src="'.$img[0].'" width="250" style="margin-left:15px;margin-right:15px;border-spacing: 0; border: 2px solid #999; border-radius: 10px;" alt="">';
		}		
	}
	else
	{
		'<div align="center">Aucune image disponible</div>';
	}
}	
		
echo '<div align="center"><span style="font-size:16px;"><b>'. mb_convert_encoding($addressFR, "UTF-8", "HTML-ENTITIES").', '.$code_postal.'</b></span><br>';

echo '<span style="font-size:14px;"><b>Région : '.$neighborhood.'</b></span><br></div>';
						 


if ($MLS <> '')
{	
	echo '<div style="text-align:center; margin-top:-3px;">&nbsp;&nbsp;<img src="'.$Path.'/wp-content/uploads/2021/01/sia.gif" width="80" alt="MLS" border="0" align="center">
	<b>N<sup>o</sup> : '.$MLS.'</b></div>';
}
else
{	
	echo '<br>';
}	

echo '<div class="row">';	
	
	
	
	
echo '<div class="column" style="padding-right:25px;">
<div style="font-size:20px;font-weight:500;text-align:left;">Information de base<br><hr></div>
<table width="100%" border="0" cellspacing="0" cellpadding="6">';

echo '<tr class="info"><td><b>Type de propriété :</b></td><td align="right">'.$DwellingFR.'</td></tr>';
echo '<tr class="info"><td><b>Prix demandé :</b></td><td align="right">'.number_format($ActualPrice, 0, ',', ' ').' $</td></tr>';
echo '<tr class="info"><td><b>Prix initial :</b></td><td align="right">'.number_format($InitialPrice, 0, ',', ' ').' $</td></tr>';
if ($Dwelling <> 12)
{
	echo '<tr class="info"><td><b>Chambres :</b></td><td align="right">'.$Bedrooms.'</td></tr>';
	echo '<tr class="info"><td><b>Salles de bain :</b></td><td align="right">'.$Bathrooms.'</td></tr>';
	echo '<tr class="info"><td><b>Demi-salles de bain&nbsp;:</b></td><td align="right">'.$HalfBathrooms.'</td></tr>';
	echo '<tr class="info"><td><b>Grandeur habitation&nbsp;:</b></td><td align="right">'.$HouseSizeFR.'</td></tr>';
	echo '<tr class="info"><td><b>Année de construction&nbsp;:</b></td><td align="right">'.$DwellingAge.'</td></tr>';
}	
echo '<tr class="info"><td><b>Grandeur terrain :</b></td><td align="right">'.$LotSizeFR.'</td></tr>';
if ($Dwelling <> 12)
{	
	echo '<tr class="info"><td><b>Chauffage :</b></td><td align="right">'.$HeatingDescFR.'</td></tr>';
}	
echo '</table><br>';
	
if ($DescriptionFR <> "" || $RentRemarksFR <> '')
{	
echo '<div style="font-size:20px;font-weight:500;text-align:left;">Description<br><hr></div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">';	
echo '<tr><td align="left" valign="top"><div style="margin-top:-10px;margin-bottom:-10px;text-align:justify">'.($ListingType == 9 ?  $DescriptionFR :  $RentRemarksFR).'</div></td></tr>';	
echo '</table></div>';	
}	
else
{	
echo '<div style="font-size:20px;font-weight:500;text-align:left;">Description<br><hr></div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">';	
echo '<tr><td align="left" valign="top"><div style="margin-top:-10px;margin-bottom:-10px;text-align:justify">Aucune</div></td></tr>';	
echo '</table></div>';	
}	
	
	
	
	
	
echo '<div class="column" style="padding-left:25px;">
	<div style="font-size:20px;font-weight:500;text-align:left;">Caractéristiques<br><hr></div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">';
for ($y = 0; $y <= $CountCaract; $y++) {	
	$CheckEven = $y % 2;
	if ($CheckEven == 0)
		echo '<tr><td valign="top" width="48%"><table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><div style="color:#890D05;font-size:26px;margin-top:-8px;">&bull;</div></td><td valign="top" style="padding-left:10px;">'.$Caract[$y].'</td></tr></table></td><td width="4%"></td>';
	else
		echo '<td valign="top" width="48%"><table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><div style="color:#890D05;font-size:26px;margin-top:-8px;">&bull;</div></td><td valign="top" style="padding-left:10px;">'.$Caract[$y].'</td></tr></table></td></tr>';
}	

	
echo '</table><br>';
	
	
echo '<div style="font-size:20px;font-weight:500;text-align:left;">Items inclus<br><hr></div><table width="100%" border="0" cellspacing="0" cellpadding="0">';
echo '<tr><td><div style="margin-top:-10px;margin-bottom:-10px;text-align:justify">'.($ItemsFR <> "" ?  $ItemsFR :  "Aucun").'</div></td></tr></table><br>';	
	
	
	
echo '<div style="font-size:20px;font-weight:500;text-align:left;">Agent<br><hr></div><table width="100%" border="0" cellspacing="0" cellpadding="0">';	
if ($Agent == 'Hermance Mercure Laplante')
{	
	echo '<tr><td><img src="../../wp-content/uploads/2020/06/HermanceOriginal.jpg" width="150" style="padding-right:10px;"></td><td valign="top"><span style="font-size:18px;font-weight:500;">Hermance Mercure Laplante</span><br><br>
	<span style="font-size:11px;line-height:1;">Bureau : (506) 735-1850
	<br />Résidence : (506) 263-5550
	<br />Fax : (506) 735-1852
	<br />hermance@alliancerealty.nb.ca</span><BR></td></tr></table>';
}

if ($Agent == 'Julien Laplante')
{	
	echo '<tr><td><img src="../../wp-content/uploads/2020/06/julien-resize.jpg" width="150" style="padding-right:10px;"></td><td valign="top"><span style="font-size:18px;font-weight:500;">Julien Laplante</span><br>
	<span style="font-size:11px;line-height:1;">Bureau : (506) 735-1850
	<BR>Résidence : (506) 263-5550
	<BR>Cell.: (506) 737-0495
	<BR>Fax : (506) 735-1852
	<BR>julien@alliancerealty.nb.ca</span><br></td></tr></table>';
}

if ($Agent == 'Alain Violette')
{	
	echo '<tr><td><img src="../../wp-content/uploads/2020/06/alain-resize.jpg" width="150" style="padding-right:10px;"></td><td valign="top"><span style="font-size:18px;font-weight:500;">Alain Violette</span><br>
	<span style="font-size:11px;line-height:1;">Bureau : (506) 735-1850
	<BR>Fax : (506) 735-1852
	<BR>Cell.: (506) 736-9970
	<BR>alain@alliancerealty.nb.ca</span><br></td></tr></table>';
}	
	

	
echo '</div></div>'; //row
	
echo '<div class="divFooter" align="center">
		<p style="font-size:10px;">Aucune responsabilité ne sera assumée pour l&apos;exactitude des informations ci-haut mentionnées.</p></div>';	
echo '</div>';

	
?>
</body>
</html>

Hry