<?php include_once("includes.php"); ?>
<?php include_once('header.php'); ?>
<?php
$message = urlencode(str_replace(array(" ","&"),array("%20","%26"),"Please reply 'Y' to this message to confirm your registration!"));
$replyMessage = urlencode(str_replace(array(" ","&"),array("%20","%26"),"Thank you for your confirmation. You are now registered. We look forward to seeing you at " . $dealerInfo[$_SESSION['tradeup']['selectedDealer']]['name'] . "."));
//$message = urlencode("Please reply 'Y' to this message to confirm your registration!");
//$replyMessage = urlencode("Thank you for your confirmation. You are now registered. We look forward to seeing you at " . $dealerInfo[$_SESSION['register']['selectedDealer']]['name'] . ".");
//$message = str_replace(array("+"),array("%20"),urlencode("Please reply 'Y' to this message to confirm your registration!"));
//$replyMessage = str_replace(array("+"),array("%20"),urlencode("Thank you for your confirmation. You are now registered. We look forward to seeing you at " . $dealerInfo[$_SESSION['register']['selectedDealer']]['name'] . "."));
if($_SESSION['tradeup']['mobile'] != "" && $_SESSION['tradeup']['selectedDealer'] != "")
{
?>
<iframe height="0" width="0" frameborder="0" src="http://ar.absoluteresults.com/winadartFR/email.php?regID=<?= urlencode(serialize($_SESSION['tradeup'])) ?>"></iframe>
<iframe height="0" width="0" frameborder="0" src="http://ar.absoluteresults.com/winadartFR/dealerEmail.php?regID=<?= urlencode(serialize($_SESSION['tradeup'])) ?>"></iframe>
<iframe height="0" width="0" frameborder="0" src="https://x1.taarga.com/sms/create?mobile_number=1<?= trim(preg_replace("/[^0-9]/","", $_SESSION['tradeup']['mobile'])) ?>&message=<?= $message ?>&access_token=e9ef6aacc17289b5238fe42a56a697fe&contact_name=<?= urlencode($_SESSION['tradeup']['firstname'] . ' ' . $_SESSION['tradeup']['lastname']) ?>&email_addr=<?= urlencode($_SESSION['tradeup']['email']) ?>&reply_msg=<?= $replyMessage ?>&sender_ref=<?= $_SESSION['tradeup']['selectedDealer'] ?>"></iframe>
<?php } ?>
<center>
<table cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td style="padding-left:40px;text-align:left;">
<center>
<br><br>
<div style="color:white;background-color:#111;padding:20px;text-align:left;padding-left:50px;">
Merci pour votre inscription!<br>
<!-- <?php if($_SESSION['tradeup']['p'] == 'win') { ?><br>You are now in the draw to win a 2013 Dodge Dart!<?php } ?> -->
<?php if($_SESSION['tradeup']['p'] == 'win') { ?><br>Assurez-vous de visiter <font style="color:yellow;font-weight:bold;"><?= $dealerInfo[$_SESSION['tradeup']['selectedDealer']]['name']?> avant le 31 Mai </font>pour effectuer votre essai routier et ainsi compléter votre inscription!<?php } ?>
<?php if($_SESSION['tradeup']['p'] == 'tim') { ?><br>Venez chez votre concessionnaire avec le CODE D'ACCÈS : <font style="color:yellow;font-weight:bold;letter-spacing: .15em;">TIMHORTONS</font> pour obtenir votre carte cadeau Tim Horton's!<br> <font style="color:yellow;font-weight:bold">L'Offre prend fin le 31 Mai, 2013<span style="vertical-align: super;font-size:10px"></span>.</font><?php } ?>
<?php if($_SESSION['tradeup']['p'] == '') { ?><br>Vous trouverez dans votre courriel <font style="color:yellow;font-weight:bold;">l'évaluation Canadian Black Book </font> du véhicule d'échange<br>gracieuseté de <font style="color:yellow;font-weight:bold;"><?= $dealerInfo[$_SESSION['tradeup']['selectedDealer']]['name']?></font>.<?php } ?>
<br><br>Vous recevrez un accusé de réception de notre part sous peu.
<br><br>
Entre-temps, rendez-vous chez votre concessionnaire :
<br><br>
<font style="color:red">
<b><?= $dealerInfo[$_SESSION['tradeup']['selectedDealer']]['name']?> </b>
</font>
<br>
<?= $dealerInfo[$_SESSION['tradeup']['selectedDealer']]['address'] ?>
</div>
</center>
</td>
</tr>
</table>
<br><br>
<!--<a href="index.php">Go Back</a></center> -->
<?php if($_SESSION['tradeup']['p'] == 'tim') { ?><font style="color:yellow;font-weight:bold;font-size: 24px;">Vous voulez vous INSCRIRE pour GAGNER UNE DART?</font> <a style="font-size:18px;" href="form.php?p=win">Cliquez ICI</a></center><?php } ?>
<?php if($_SESSION['tradeup']['p'] == 'win') { ?><font style="color:yellow;font-weight:bold;font-size: 24px;">Vous voulez connaître la valeur de votre véhicule d'échange<br>selon le Canadian Black Book?</font><br><a style="font-size:18px;" href="form.php">Cliquez ICI</a></center><?php } ?>
<?php if($_SESSION['tradeup']['p'] == '') { ?><a style="font-size:18px;" href="index.php">Retour vers l'Accueil</a></center><?php } ?>
<br><br>
<?php unset($_SESSION['tradeup']); ?>
<?php unset($_SESSION['tradeup3q']); ?>
<?php include_once('footer.php'); ?>