<?php
if(isset($dealerInfo[$selectedDealer]['bilingual']) && !isset($_SESSION['lang']))
{
if($dealerInfo[$selectedDealer]['bilingual'] == 'fr')
{
header("location: /fr");
exit;
}
}
$_SESSION['lang'] = 'en';
//if(isset($_GET['lang']) == 'fr')
//{
//$_SESSION['lang'] = 'fr';
//header("location: /fr");
//exit;
//}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--TEMPLATE: paymentmatch.com -->
<!-- USAGE: paymentmatch.com, savings.ca, liquidation.com, blackbook.com -->
<meta http-equiv="Content-Language" content="fr" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?= $dealerInfo[$_SESSION['tradeup']['selectedDealer']]['name'] ?> Sales Event</title>
<style>
body,html {margin:0px;background-color:black;}
.mainTbl {background-color:black;}
.mainTbl td {vertical-align:top;font-family:tahoma,arial}
.headerTbl td a {text-decoration:none;color:yellow}
@font-face {
font-family: impacts;
src: url(scripts/impact.ttf);
}
@font-face {
font-family: tahomas;
src: url(scripts/tahoma.ttf);
}
@font-face {
font-family: tahomas;
src: url(scripts/tahomabd.ttf);
font-weight:bold;
}
</style>
</head>
<body>
<center>
<?php
//if(in_array($selectedDealer,array('bankstreetkia','qewkia','kiaofstcatharines'))) $img = 'kiaBanner';
//else if(in_array($selectedDealer,array('fishcreeknissan','mcdonald'))) $img = 'nissanBanner';
//else if(in_array($selectedDealer,array('southpointe'))) $img = 'Banner_Toyota';
//else if(in_array($selectedDealer,array('abbotsfordhyundai'))) $img = 'Banner_Hyundai';
//else if(in_array($selectedDealer,array('abchyundai'))) $img = 'Banner_Hyundai_2';
//else if(in_array($selectedDealer,array('capitalgmc','dueckrichmond','dueckmarine','dueckdowntowngm'))) $img = 'Banner_GMC';
//else if(in_array($selectedDealer,array('johnbear'))) $img = 'Banner_JohnBear';
//else $img = 'Banner';
$banner = $dealerInfo[$selectedDealer]['banner'];
if ($banner == "default" || $banner == '')
$img = 'Banner-en';
else
$img = $banner;
?>
<table cellspacing="0" cellpadding="0" class="mainTbl">
<tr>
<td style="width:940px;height:459px;background-image:url('images/<?= $img ?>.jpg');background-repeat:no-repeat;background-position:center top;">
<!--video -->
<table cellspacing="0" cellpadding="0">
<tr>
<td style="padding-left:40px;padding-top:270px;padding-bottom:70px;text-align:left;">
<div style="padding:10px;background-image:url('images/white-bg.png');background-position:right top;background-repeat:repeat;color:#000">
<font style="font-size:24pt;font-family:impact, arial, sans;"><?= strtoupper($dealerInfo[$selectedDealer]['name']) ?></font>
<br>
<font style="font-size:13pt;"><?= $dealerInfo[$selectedDealer]['address'] ?></font>
<br>
<font style="font-size:13pt;color:#333"><a href="http://<?= $dealerInfo[$selectedDealer]['website'] ?>" target="_blank"><?= $dealerInfo[$selectedDealer]['website'] ?></a><br></font>
<?php
if(isset($dealerInfo[$selectedDealer]['bilingual']))
{
?>
<font style="padding-top: 10px;"><a href="/fr">Version Française</a></font>
<?php
}
?>
</div>
</td>
</tr>
</table>