| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 
 |  
        $action = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];
        $html = <<<EOT
<form action="{$action}" method="post">
<fieldset>
<legend>Détails du dossier</legend>
<table border="0">
<tr>
<th>Numéro du dossier :</th>
<td>{$dossier->numDossier}<input type="hidden" name="numDossier" value="$dossier->numDossier"></td>
</tr>
<tr>
<th>Date de la demande :</th>
<td>{$dateDemande}</td>
</tr>
<tr>
<th>Etat du dossier :</th>
<td>{$dossier->statut()}</td>
</tr>
EOT;
        if($dossier->statut() == "accepte") {
            $dateAcceptation = dateFR($dossier->dateAcceptation);
            $html .= "<tr><th>Date d'acceptation :</th><td>$dateAcceptation</td></tr>";
        }
        if($dossier->statut() == "en attente de pieces justificatives") {
            $dateDemandeJustificatif = dateFR($dossier->dateDemandeJustificatif);
            $html .= "<tr><th>Date de mise en attente :</th><td>$dateDemandeJustificatif</td></tr>";
            $html .= "<tr><th>Délai de mise en attente :</th><td>$dossier->delaiAttente jours</td></tr>";
        }
        if($dossier->statut() == "refuse") {
            $dateRefus = dateFR($dossier->dateRefus);
            $html .= "<tr><th>Date de refus :</th><td>$dateRefus</td></tr>";
        }
        $html .= <<<EOT
</table>
</fieldset>
<fieldset>
<legend>Détails du ménage</legend>
<div>
<div id="beneficiaire1">
<table border="0">
<tr>
<th>Nom :</th>
<td>{$personne->nom}</td>
</tr>
<tr>
<th>Prénom :</th>
<td>{$personne->prenom}</td>
</tr>
<tr>
<th>Date de naissance :</th>
<td>{$dateNaissance1}</td>
</tr>
</table>
</div>\n
EOT;
        if($personne2) {
            $html .= <<<EOT
<div id="beneficiaire2">
<table border="0">
<tr>
<th>Nom du conjoint :</th>
<td>{$personne2->nom}</td>
</tr>
<tr>
<th>Prénom du conjoint :</th>
<td>{$personne2->prenom}</td>
</tr>
<tr>
<th>Date de naissance du conjoint :</th>
<td>{$dateNaissance2}</td>
</tr>
</table>
</div>\n
EOT;
        }
        $html .= <<<EOT
<div style="clear : both"></div>
<div id="menage">
<table border="0">
<tr>
<th>Code INSEE :</th>
<td>{$personne->codeINSEE}</td>
</tr>
<tr>
<th>Numéro de téléphone :</th>
<td>{$personne->numTelephone}</td>
</tr>
<tr>
<th>Revenu du ménage :</th>
<td>{$personne->revenu}</td>
</tr>
</table>
</div>
</div>
</fieldset>
<p>
EOT; | 
Partager