179 lines
6.4 KiB
PHP
179 lines
6.4 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Demande de crédit avec documents</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #001954;
|
|
font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 40px auto;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 16px 0 rgba(0,0,0,0.08);
|
|
padding: 0 0 24px 0;
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
background: #fff;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
.header img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
width: 600px;
|
|
height: 120px;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
.content {
|
|
padding: 32px 24px 0 24px;
|
|
}
|
|
.section-title {
|
|
color: #001954;
|
|
font-size: 24px;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
.subsection-title {
|
|
color: #001954;
|
|
font-size: 20px;
|
|
margin: 24px 0 12px 0;
|
|
}
|
|
.footer {
|
|
padding: 24px 24px 0 24px;
|
|
text-align: center;
|
|
color: #888;
|
|
font-size: 13px;
|
|
}
|
|
.footer hr {
|
|
border: none;
|
|
border-top: 1px solid #eee;
|
|
margin: 24px 0 16px 0;
|
|
}
|
|
.uploaded-documents {
|
|
background: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin: 20px 0;
|
|
}
|
|
.uploaded-documents h4 {
|
|
color: #001954;
|
|
margin: 0 0 12px 0;
|
|
font-size: 18px;
|
|
}
|
|
.uploaded-documents ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.uploaded-documents li {
|
|
margin-bottom: 8px;
|
|
}
|
|
.uploaded-documents a {
|
|
color: #001954;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
.uploaded-documents a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.uploaded-documents-simple {
|
|
margin: 20px 0;
|
|
}
|
|
.uploaded-documents-simple ul {
|
|
list-style: disc;
|
|
margin-left: 20px;
|
|
}
|
|
.uploaded-documents-simple li {
|
|
margin-bottom: 4px;
|
|
}
|
|
.uploaded-documents-simple a {
|
|
color: #001954;
|
|
text-decoration: none;
|
|
}
|
|
.uploaded-documents-simple a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<img src="<?php echo $model->main->asset('img/cred_banniere.jpg'); ?>" alt="Crédit Direct">
|
|
</div>
|
|
|
|
<div class="content">
|
|
<h1 class="section-title">Nouvelle demande de crédit</h1>
|
|
|
|
<p>Bonjour,</p>
|
|
|
|
<p>Une nouvelle demande de crédit a été soumise avec les documents suivants :</p>
|
|
|
|
<!-- Exemple 1: Affichage simple des liens -->
|
|
<h2 class="subsection-title">Documents joints (version simple)</h2>
|
|
<?php
|
|
// Utilisation de la fonction simple
|
|
echo $model->generateSimpleUploadedFilesLinksHTML($currentCredit->token);
|
|
?>
|
|
|
|
<!-- Exemple 2: Affichage détaillé avec métadonnées -->
|
|
<h2 class="subsection-title">Documents joints (version détaillée)</h2>
|
|
<?php
|
|
// Utilisation de la fonction avec métadonnées
|
|
echo $model->generateUploadedFilesLinksHTML($currentCredit->token, true);
|
|
?>
|
|
|
|
<!-- Exemple 3: Affichage personnalisé -->
|
|
<h2 class="subsection-title">Documents joints (version personnalisée)</h2>
|
|
<?php
|
|
// Utilisation avec classe CSS personnalisée
|
|
echo $model->generateUploadedFilesLinksHTML($currentCredit->token, false, 'custom-documents');
|
|
?>
|
|
|
|
<h2 class="subsection-title">Informations de la demande</h2>
|
|
<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
|
|
<tr>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Nom :</strong></td>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><?php echo $borrower->prenom . ' ' . $borrower->nom; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Email :</strong></td>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><?php echo $borrower->email; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Téléphone :</strong></td>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><?php echo $borrower->telephone; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Type de crédit :</strong></td>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><?php echo $model->getCreditLabel($currentCredit->type_credit); ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Montant :</strong></td>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><?php echo $currentCredit->capital; ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Durée :</strong></td>
|
|
<td style="padding: 8px; border-bottom: 1px solid #eee;"><?php echo $currentCredit->duree; ?> mois</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>Merci de traiter cette demande dans les plus brefs délais.</p>
|
|
|
|
<p>Cordialement,<br>L'équipe Crédit Direct</p>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<hr>
|
|
Cet email a été envoyé automatiquement, merci de ne pas y répondre.<br>
|
|
© <?php echo date('Y'); ?> Crédit Direct. Tous droits réservés.
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|