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/PrintEn.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, 'en_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, Victoria Street<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_en_us'];
		//$addressEN = $row['field_313_en_us'];
		$code_postal = $row['location_text'];
		$Dwelling = $row['field_3065'];

		if ($row['n_3048'] == 1) {$neighborhood = 'Edmundston North';}
			elseif ($row['n_3046'] == 1) {$neighborhood = 'Edmundston Centre';}
			elseif ($row['n_3047'] == 1) {$neighborhood = 'Edmundston East';}
			elseif ($row['n_3049'] == 1) {$neighborhood = 'Edmundston West';}
			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 = 'Not available';}

		$Agent = $row['Agent'];
		$MLS = $row['field_3015'];
	
		if ($Dwelling == 1) {$DwellingFR  = 'Bungalow';}
			elseif ($Dwelling == 2) {$DwellingFR = 'Split Entry';}
			elseif ($Dwelling == 3) {$DwellingFR = 'Split Level';}
			elseif ($Dwelling == 4) {$DwellingFR = '1 1/2 Story';}
			elseif ($Dwelling == 5) {$DwellingFR = '2 Story';}
			elseif ($Dwelling == 6) {$DwellingFR  = '2 1/2 Story';}
			elseif ($Dwelling == 7) {$DwellingFR  = 'Semi-Detached';}
			elseif ($Dwelling == 8) {$DwellingFR  = 'Duplex';}
			elseif ($Dwelling == 9) {$DwellingFR  = 'Trailer House';}
			elseif ($Dwelling == 10) {$DwellingFR  = 'Mini-Home';}
			elseif ($Dwelling == 11) {$DwellingFR  = 'Condo / Town House';}
			elseif ($Dwelling == 12) {$DwellingFR  = 'Vacant Lot';}
			elseif ($Dwelling == 13) {$DwellingFR  = 'Multi Apt Complex';}
			elseif ($Dwelling == 14) {$DwellingFR  = 'A-Frame';}
			elseif ($Dwelling == 15) {$DwellingFR  = 'Appartment';}
			elseif ($Dwelling == 31) {$DwellingFR  = 'Other';}
			elseif ($Dwelling == 32) {$DwellingFR  = 'Cottage / Camp';}
			elseif ($Dwelling == 33) {$DwellingFR  = 'Commercial';}
			else {$DwellingFR  = 'Not available';}

		$LotSize = mb_convert_encoding($row['field_3119_en_us'], "UTF-8", "HTML-ENTITIES");
		if ($LotSize == '')
		{
			$LotSizeFR = 'Not available';
		}	
		else
		{
			$LotSizeFR = '±'.$LotSize;
		}
		
		if ($row['field_3195'] == '1') 
		{
			$LotSizeFR = $LotSizeFR ." (Rented Lot)";
		}
		
		$Service = $row['field_3086'];			
		if ($Service == 1) {$ServiceFR = 'Municipal';}
		elseif ($Service == 2) {$ServiceFR = 'Private';}
		elseif ($Service == 3) {$ServiceFR = 'Park';}
		elseif ($Service == 4) {$ServiceFR = 'No service';}	
		else { $ServiceFR = 'Not available';}
				
		$ZonageFR = $row['field_3086'];	
		
		$ListingType = $row['listing'];
		if ($ListingType == 9) {$ListingTypeFR = 'Property Taxes';}	
		else { $ListingTypeFR = 'Security Deposit';}	
		

		$PlusTVH = $row['field_3169'];
		if ($PlusTVH == 1 && $ListingType == 9) {$PriceHeaderFR = 'Price (plus HST)';}	
		elseif ($PlusTVH == 0 && $ListingType == 9) { $PriceHeaderFR = 'Price';}	
		
		$InitialPrice = $row['field_3115'];
		if ($PlusTVH == 1 && $ListingType == 9) {$PriceHeaderFR = 'Price (plus HST)';}	
		elseif ($PlusTVH == 0 && $ListingType == 9) { $PriceHeaderFR = 'Price';}	
		else { $PriceHeaderFR = 'Cost';}
	
		

	
		$ActualPrice = $row['price'];
		$RentValue = $row['field_3167'];
		if ($ActualPrice > 0 && $ListingType == 9 && $ActualPrice < $InitialPrice) {$ActualPriceFR = '$'.number_format($InitialPrice, 0, '.', ',').' reduced to  $'.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, '.', ',').' $/month';}

		
		
		$HouseSizeFR = mb_convert_encoding($row['field_3120_en_us'], "UTF-8", "HTML-ENTITIES");
		if ($HouseSizeFR == '') 	
		{
			$HouseSizeFR = 'Not available';
		}	
		else
		{
			$HouseSizeFR = '±'.$HouseSizeFR;
		}		

		$DwellingAge = $row['build_year'];
		if ($DwellingAge == 0) 
		{
			$DwellingAge = 'Not available';
		}
		else
		{
			$DwellingAge = '±'.$DwellingAge;
		}
		


		$Bedrooms = $row['field_3064'];
		$Bathrooms = $row['field_3063'];
		$HalfBathrooms = $row['half_bathrooms'];
		$HeatingDescFR = mb_convert_encoding($row['field_3081_en_us'], "UTF-8", "HTML-ENTITIES");
		$DescriptionFR = mb_convert_encoding($row['field_308_en_us'], "UTF-8", "HTML-ENTITIES");
		$RentRemarksFR =  mb_convert_encoding($row['field_3118_en_us'], "UTF-8", "HTML-ENTITIES");
		
	
////---------- Caractéristiques
		if ($row['f_3018'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "A few min. from the city";}
		if ($row['f_3019'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "For quick ownership";}
		if ($row['f_3020'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Close to amenities";}
		if ($row['f_3021'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Impeccable";}
		if ($row['f_3031'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Investor";}
		if ($row['f_3032'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Recent construction";}
		if ($row['f_3022'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Open space concept";}
		if ($row['f_3023'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Private backyard";}
		if ($row['f_3033'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Estate sale";}
		if ($row['f_3034'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "With income";}
		if ($row['f_3035'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Year round living";}
		if ($row['f_3036'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Cathedral ceiling";}
		if ($row['f_3037'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Pre-inspected";}
		if ($row['f_3038'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Handyman project";}
		if ($row['f_3039'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Solarium";}
		if ($row['f_149'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Lots of storage";}
		if ($row['f_3026'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "No backyard neighbor";}
		if ($row['f_139'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Panoramic view";}
		if ($row['f_3025'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Recent renovation";}
		if ($row['f_3040'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Spacious rooms";}
		if ($row['f_3041'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Cash back bonus";}
		if ($row['f_3029'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Waterfront";}
		if ($row['f_3027'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "First time on the market";}
		if ($row['f_3042'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Excellent quality/price ratio";}
		if ($row['f_3043'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "High end";}
		if ($row['f_3028'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Garage";}
		if ($row['f_137'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Major renovation";}
		if ($row['f_3044'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "One owner";}
		if ($row['f_146'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Possibility of income";}
		if ($row['f_3024'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Turn key condition";}
		if ($row['f_150'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Superior quality construction";}
		if ($row['f_144'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Fireplace";}
		if ($row['f_131'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Pool";}
		if ($row['f_3060'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Dining room";}
		if ($row['f_3061'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Family room";}
		if ($row['f_3062'] == 1) {$CountCaract = $CountCaract + 1; $Caract[$CountCaract] = "Finished basement";}

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

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

		$Banner = "";
		if ($row['sp_featured'] == 1) {$Banner = "sold_en.png";}
		if ($row['sp_hot'] == 1) {$Banner = "price_reduced_en.png";}
		//if ($row['sp_openhouse'] == 1) {$Banner = "Spéciales";}
		if ($row['field_3126'] == 1) {$Banner = "10000_reduction_en.png";}
		if ($row['field_3127'] == 1) {$Banner = "35000_reduction_en.png";}
		if ($row['field_3128'] == 1) {$Banner = "3_bedrooms_en.png";}
		if ($row['field_3129'] == 1) {$Banner = "4_bedrooms_en.png";}
		if ($row['field_3130'] == 1) {$Banner = "season_cottage_en.png";}
		if ($row['field_3131'] == 1) {$Banner = "big_lot_en.png";}
		if ($row['field_3132'] == 1) {$Banner = "cashback_en.png";}
		if ($row['field_3133'] == 1) {$Banner = "cathedral_ceiling_en.png";}
		if ($row['field_3134'] == 1) {$Banner = "close_services_en.png";}
		if ($row['field_3135'] == 1) {$Banner = "cottage_en.png";}
		if ($row['field_3136'] == 1) {$Banner = "duplex_en.png";}
		if ($row['field_3137'] == 1) {$Banner = "fireplace_en.png";}
		if ($row['field_3138'] == 1) {$Banner = "foreclosed property_en.png";}
		if ($row['field_3139'] == 1) {$Banner = "time_market_en.png";}
		if ($row['field_3140'] == 1) {$Banner = "quick_sale_en.png";}
		if ($row['field_3141'] == 1) {$Banner = "handyman_special_en.png";}
		if ($row['field_3142'] == 1) {$Banner = "high_quality_en.png";}
		if ($row['field_3143'] == 1) {$Banner = "impeccable_en.png";}
		if ($row['field_3144'] == 1) {$Banner = "investor_en.png";}
		if ($row['field_3145'] == 1) {$Banner = "country_en.png";}
		if ($row['field_3146'] == 1) {$Banner = "renovations_en.png";}
		if ($row['field_3147'] == 1) {$Banner = "near_university_en.png";}
		if ($row['field_3148'] == 1) {$Banner = "negociable_en.png";}
		if ($row['field_3149'] == 1) {$Banner = "new_construction_en.png";}
		if ($row['field_3150'] == 1) {$Banner = "new_listing_en.png";}
		if ($row['field_3151'] == 1) {$Banner = "panoramic_view_en.png";}
		if ($row['field_3152'] == 1) {$Banner = "pool_en.png";}
		if ($row['field_3153'] == 1) {$Banner = "pre-inspected_en.png";}
		if ($row['field_3154'] == 1) {$Banner = "prestigious_property_en.png";}
		if ($row['field_3155'] == 1) {$Banner = "price_revised_en.png";}
		if ($row['field_3156'] == 1) {$Banner = "renovated_en.png";}
		if ($row['field_3157'] == 1) {$Banner = "revenu_en.png";}
		if ($row['field_3158'] == 1) {$Banner = "Riverside_property_en.png";}
		if ($row['field_3159'] == 1) {$Banner = "spacious_property_en.png";}
		if ($row['field_3160'] == 1) {$Banner = "transfer_en.png";}
		if ($row['field_3161'] == 1) {$Banner = "unique_en.png";}
		if ($row['field_3162'] == 1) {$Banner = "urgent_en.png";}
		if ($row['field_3163'] == 1) {$Banner = "vacant_lot_en.png";}
		if ($row['field_3164'] == 1) {$Banner = "view_river_en.png";}
		if ($row['field_3165'] == 1) {$Banner = "waterfront_en.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="">';
		}
	else
		{	
			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">No image available</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>Neighborhood: '.$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;">Basic Details<br><hr></div>
<table width="100%" border="0" cellspacing="0" cellpadding="6">';

echo '<tr class="info"><td><b>Type of Dwelling:</b></td><td align="right">'.$DwellingFR.'</td></tr>';
echo '<tr class="info"><td><b>Actual Price:</b></td><td align="right">'.number_format($ActualPrice, 0, ',', ' ').' $</td></tr>';
echo '<tr class="info"><td><b>Initial Price:</b></td><td align="right">'.number_format($InitialPrice, 0, ',', ' ').' $</td></tr>';
if ($Dwelling <> 12)
{
	echo '<tr class="info"><td><b>Bedooms:</b></td><td align="right">'.$Bedrooms.'</td></tr>';
	echo '<tr class="info"><td><b>Bathrooms:</b></td><td align="right">'.$Bathrooms.'</td></tr>';
	echo '<tr class="info"><td><b>Half Bathrooms:</b></td><td align="right">'.$HalfBathrooms.'</td></tr>';
	echo '<tr class="info"><td><b>House Size:</b></td><td align="right">'.$HouseSizeFR.'</td></tr>';
	echo '<tr class="info"><td><b>Year Built:</b></td><td align="right">'.$DwellingAge.'</td></tr>';
}	
echo '<tr class="info"><td><b>Lot Size:</b></td><td align="right">'.$LotSizeFR.'</td></tr>';
if ($Dwelling <> 12)
{	
	echo '<tr class="info"><td><b>Heating:</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;">Features<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;">Included Items<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 :  "None").'</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;">Office: (506) 735-1850
	<br />Home: (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;">Office: (506) 735-1850
	<BR>Home: (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;">Office: (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;">Information is believed to be accurate but accuracy is not guaranteed.</p></div>';	
echo '</div>';

	
?>
</body>
</html>

Hry