<div id="container" style="width:702px; margin-left:auto; margin-right:auto;">

	
	
	<table width="700px" border="0" cellspacing="0" cellpadding="1" align="center" <?php if ($row['used_flag']!=1) print ' bgcolor="#e1007a" '; else print ' bgcolor="#ababab" '; ?> 
	style="font-family: verdana, arial, helvetica; font-size: medium;">
    <tr>
        <td colspan="2" <?php if ($row['used_flag']!=1) print ' bgcolor="#e1007a" '; else print ' bgcolor="#ababab" '; ?> align="center" style="color: white;">
           <p> <b>&nbsp;Bon cadeau num&eacute;ro <?php print $row['order_id'] . '-'.$row['order_prd_number'] ?> </p></b>
           
        </td>
    </tr>

    <tr>
        <td>
            <div id="inner" style="width:622px; margin-left:auto; margin-right:auto;">
            <table width="620px" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" style="font-family: verdana, arial, helvetica; font-size: small;">
            
            <tr valign="top">
                <td>
                    <table width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
                    <tr>
                        <td>
                            <img src="http://boutique.double-detente.com/sites/boutique.double-detente.com/files/espacedd-logo<?php if ($row['used_flag']==1) print '-nb';?>.png">
                                
                        </td>
                        <td nowrap="nowrap">
                            <?php print 'Espace Double-Détente<br>59 bis rue de Pologne<br>78100 St Germain en Laye<br>'; ?><br /><?php print '01 39 73 33 32'; ?>
                        </td>
                    </tr>
                    </table>
                </td>
            </tr>
            
            </table></div>
        </td>
    </tr>
    <tr valign="top">
        <td>
            <div id="inner" style="width:622px; margin-left:auto; margin-right:auto;">
            <table width="620px" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" style="font-family: verdana, arial, helvetica; font-size: medim;">
			<tr>
			<td width="100%">
				<p>
				<img alt="" src="http://boutique.double-detente.com/sites/boutique.double-detente.com/files/papillon_pm<?php if ($row['used_flag']==1) print '-nb';?>.png" style="float: left; margin-left: 15px; margin-right: 10px" />
			   <b style="font-family: verdana, arial, helvetica; background-color: rgb(255, 255, 255); ">
			   <br>Bon pour une prestation <?php echo '"'.utf8_encode($row["title"]) .'" de '. utf8_encode($row["duration"])  ; ?> &agrave; l'Espace Double-D&eacute;tente </b><br>
			   <span style="font-size:11px;"><span style="font-family: verdana, arial, helvetica; white-space: nowrap; background-color: rgb(255, 255, 255);">
			   (R&eacute;f&eacute;rence : <?php echo  utf8_encode($row["sku"]); ?>)</span></span><br></p>
			   <p style="font-family: verdana, arial, helvetica; font-size: small; white-space:  background-color: rgb(255, 255, 255); "><span style="font-size:14px;">
			   <i><?php echo utf8_encode($row['teaser']); ?> </i></span></p>
			   <center><?php
			   if ($row['used_flag']==1) {
					echo '<font color="#A80000">* * * Bon utilisé le '. date('d/m/Y', $row['used']). ' * * *</font color>';
				}
				else {
					echo 'Bon valide jusqu\'au '.date("d/m/Y", $row['end']);
				}
				
				echo'</center></b>';?>
			    
            </td>
            </tr>
            </table>    
            <table width="620px" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" style="font-family: verdana, arial, helvetica; font-size: small;">    
			
				<tr> 
					<td width="60%">&nbsp
					
						
					
					</td>
					<td valign="top" width="40%">
					
					De la part de :<br />
					<b><?php print utf8_encode($row['FirstName']) . ' '. utf8_encode($row['LastName']); ?><br /></b>
					<a href="mailto:<?php print utf8_encode($row['email']); ?>"><?php print utf8_encode($row['email']); ?></a><br>
					<br />
					<br>
				</td>
				</tr>    
				<tr>
					<td colspan="2">
						<center>
							<span style="font-size:9px;"><span style="font-family: verdana, arial, helvetica;  background-color: rgb(255, 255, 255); color:#a9a9a9;">
							N'oubliez pas de prendre rendez-vous, par téléphone au 01 39 73 33 32 ou à notre boutique au 59 bis rue de Pologne à St Germain en laye pour bénéficier de votre prestation.</span>

						</center>
					</td>
				</tr>

			</table></dif
		</td>	
	</tr>		
	<tr>
		<td colspan="2" <?php if ($row['used_flag']!=1) print ' bgcolor="#e1007a" '; else print ' bgcolor="#ababab" '; ?> align="center" style="color: white; font-size: small;" >
		<p><?php print $vcode; ?><br>
		Ce bon est valable jusqu'au <?php print date ("d/m/Y", $row['end']); ?> </p>
		</td>
	</tr> 
	
	</table></div>
	<p>&nbsp</p>
