145 lines
6.8 KiB
PHP
145 lines
6.8 KiB
PHP
<?php
|
|
/**
|
|
* Template d'email de rappel de crédit
|
|
* Variables disponibles :
|
|
* - $prenom
|
|
* - $nom
|
|
* - $type_credit
|
|
* - $reminder_num (numéro du rappel)
|
|
*/
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Rappel de votre demande de crédit</title>
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #ecf0f1;
|
|
/* background-color: #001954; */
|
|
font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
|
|
-webkit-text-size-adjust: 100%;
|
|
-ms-text-size-adjust: 100%;
|
|
}
|
|
.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;
|
|
}
|
|
.content-table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 10px;
|
|
color: #333;
|
|
}
|
|
.content-table td {
|
|
padding: 8px 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;
|
|
}
|
|
.section-title {
|
|
color: #001954;
|
|
font-size: 24px;
|
|
margin: 0;
|
|
padding-bottom: 12px;
|
|
}
|
|
.subsection-title {
|
|
color: #001954;
|
|
font-size: 20px;
|
|
margin: 0;
|
|
padding-top: 24px;
|
|
padding-bottom: 12px;
|
|
}
|
|
@media only screen and (max-width: 600px) {
|
|
.container {
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
.header img {
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="margin:0; padding:0; background:#001954; font-family:'Plus Jakarta Sans', Arial, Helvetica, sans-serif;">
|
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width:600px; margin:40px auto;">
|
|
<tr>
|
|
<td>
|
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="max-width:600px; background:#fff; font-family:'Plus Jakarta Sans', Arial, Helvetica, sans-serif;" class="container">
|
|
<tr>
|
|
<td style="text-align:center; border-radius:12px 12px 0 0;">
|
|
<img src="<?php echo $main->asset('img/cred_banniere.jpg'); ?>" alt="Crédit Direct" width="600" height="120" style="display:block; margin:0 auto; width:600px; height:120px;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:32px 24px 0 24px;">
|
|
<h2 style="color:#001954; font-size:24px; margin:0 0 20px 0; font-weight:normal;">Bonjour <span style="font-weight:bold; color:#333;"><?= htmlspecialchars($prenom) ?> <?= htmlspecialchars($nom) ?></span>,</h2>
|
|
<p style="margin-bottom:16px; color:#333; font-size:16px; line-height:1.5;">
|
|
Ceci est un rappel concernant votre demande de crédit
|
|
<?php if (!empty($type_credit)) : ?>
|
|
<strong><?= htmlspecialchars($type_credit) ?></strong>
|
|
<?php endif; ?>
|
|
auprès de Crédit Direct.
|
|
</p>
|
|
<p style="margin-bottom:16px; color:#333; font-size:16px; line-height:1.5;">
|
|
Votre dossier est toujours en cours. N'hésitez pas à nous contacter pour toute question ou pour finaliser votre demande.
|
|
</p>
|
|
<?php if (!empty($reminder_num)) : ?>
|
|
<p style="color:#888; font-size:13px; margin-bottom:16px;"><strong>Ceci est le rappel n°<?= intval($reminder_num) ?>.</strong></p>
|
|
<?php endif; ?>
|
|
<!-- Bouton compatible Outlook et autres clients -->
|
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0" align="center" style="margin:24px auto;">
|
|
<tr>
|
|
<td align="center">
|
|
<!--[if mso]>
|
|
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="<?= get_site_url() ?>/credit-step<?= $step; ?>/?credit-direct-token=<?= $token; ?>" style="height:44px;v-text-anchor:middle;width:220px;" arcsize="10%" strokecolor="#001954" fillcolor="#001954">
|
|
<w:anchorlock/>
|
|
<center style="color:#ffffff;font-family:sans-serif;font-size:16px;font-weight:bold;">Finaliser ma demande</center>
|
|
</v:roundrect>
|
|
<![endif]-->
|
|
<!--[if !mso]><!-- -->
|
|
<a href="<?= get_site_url() ?>/credit-step<?= $step; ?>/?credit-direct-token=<?= $token; ?>"
|
|
style="background-color:#001954;border:1px solid #001954;border-radius:5px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:16px;font-weight:bold;line-height:44px;text-align:center;text-decoration:none;width:220px;-webkit-text-size-adjust:none;mso-hide:all;">
|
|
Continuer ma demande
|
|
</a>
|
|
<!--<![endif]-->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- Fin bouton -->
|
|
<p style="margin-bottom:0; color:#333; font-size:16px; line-height:1.5;">Cordialement,<br>L'équipe Crédit Direct</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:24px 24px 0 24px; text-align:center; color:#888; font-size:13px;">
|
|
<hr style="border:none; border-top:1px solid #eee; margin:24px 0 16px 0;">
|
|
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.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|