<?php $adhesions = sfConfig::get('app_solviolette_adhesion') ?>
<?php $situations = sfConfig::get('app_solviolette_situation') ?>
<?php $user = /*(KataoUser)*/ $datas ?>
<?php $member = /*(KataoMember)*/ $datas->getKataoMember() ?>

<table cellpadding="1" cellspacing="3" border="0" width="100%">
	<tr>
		<td width="60%" align="left" valign="middle"><img src="/images/sol_violette.jpg" border="0" height="184" width="205" align="top" /></td>
		<td width="40%" align="left" valign="bottom">
			<div><img src="/images/sep.gif" border="0" height="70" width="10"/></div>
			<div><p><b>Projet Sol-Violette</b><br/>45 rue de chaussas<br/>31200 TOULOUSE</p></div>
		</td>
	</tr>
</table>

<div style="text-align:center">
	<h1>Demande de carte sol</h1>
</div>

<table cellpadding="1" cellspacing="3" border="0" width="100%">
	<tr>
		<td width="30%"></td>
		<td></td>
	</tr>
	<tr>
		<td width="30%">Prénom :</td>
		<?php printf('<td>%s</td>',$member->getFirstName()) ?>
	</tr>
	<tr>
		<td width="30%">Nom :</td>
		<?php printf('<td>%s</td>',$member->getLastName()) ?>
	</tr>
	<tr>
		<td width="30%">Email :</td>
		<?php printf('<td>%s</td>',$user->getEmail()) ?>
	</tr>
	<tr>
		<td width="30%">Téléphone :</td>
		<?php printf('<td>%s</td>',$user->getPhone()) ?>
	</tr>
	<tr>
		<td width="30%">Fax :</td>
		<?php printf('<td>%s</td>',$user->getFax()) ?>
	</tr>
	<tr>
		<td width="30%">Date de naissance :</td>
		<?php printf('<td>%s</td>',$member->getUserBirthday()?date('d/m/Y',strtotime($member->getUserBirthday())):'&nbsp;'); ?>
	</tr>
	<tr>
		<td width="30%">Situation :</td>
		<?php printf('<td>%s</td>',!empty($situations[$member->getUserSituation()])?$situations[$member->getUserSituation()]:'&nbsp;') ?>
	</tr>
	<tr>
		<td width="30%">Adresse :</td>
		<?php printf('<td>%s<br/>%s</td>',$user->getAddress1(),$user->getAddress2()) ?>
	</tr>
	<tr>
		<td width="30%">Code postal :</td>
		<?php printf('<td>%s</td>',$user->getZip()) ?>
	</tr>
	<tr>
		<td width="30%">Ville :</td>
		<?php printf('<td>%s</td>',$user->getCity()) ?>
	</tr>

	<tr>
		<td width="30%">Identifiant :</td>
		<?php printf('<td>%s</td>',$user->getLogin()) ?>
	</tr>

	<tr>
		<td width="30%">Nom du parrain :</td>
		<?php if ($member->getKataoMemberId() != null) {
			$parrain = /*(KataoMember)*/KataoMemberPeer::retrieveByPk($member->getKataoMemberId());
			printf('<td>%s</td>', $parrain->getFullName());
		}
		else{
			printf('<td>&nbsp;</td>');
		}
		 ?>
	</tr>
	<tr>
		<td width="30%">Numéro de carte :</td>
		<?php printf('<td>%s</td>',$member->getCardNumberSol()) ?>
	</tr>
	<tr>
		<td width="30%">Type :</td>
		<?php printf('<td>&nbsp;</td>') ?>
	</tr>
</table>
<p><span style="font-weight: bold;font-size: x-large;">Oui</span>, je souhaite recevoir ma carte SOL personnelle ainsi que mon code PIN.<br/>J'ai bien noté qu'elle est entièrement gratuite et n'entraîne aucune contrepartie de ma part.</p>
<div><img src="/images/sep.gif" border="0" height="20" width="10"/></div>
<p style="font-size: x-small;">Conformément à la loi Informatique et Libertés, vous disposez d'un droit d'accès et de rectification quant aux données vous concernant, que vous pouvez exercer librement auprès de SOL: info@sol-reseau.org.</p>
<div><img src="/images/sep.gif" border="0" height="20" width="10"/></div>
<table>
<tr>
<td width="70%" align="right">Signature :</td>
<td width="30%">&nbsp;</td>
</tr>
</table>