<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* paiment/virement.html.twig */
class __TwigTemplate_b7da93387366f9017fc92b238532098cc3216420274bd143df8097e888c73fc6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "paiment/virement.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "paiment/virement.html.twig"));
// line 1
echo "
<!DOCTYPE html>
<html>
";
// line 5
$this->loadTemplate("includes/head.html.twig", "paiment/virement.html.twig", 5)->display($context);
// line 6
echo "<body>
<!-- Page Loader
========================================================= -->
<div class=\"loader-container\" id=\"page-loader\">
<div class=\"loading-wrapper loading-wrapper-hide\">
\t<div class=\"loader-animation\" id=\"loader-animation\">
\t\t<svg class=\"svg-loader\" width=100 height=100>
\t\t <circle cx=50 cy=50 r=25 />
\t\t</svg>
\t</div>
<!-- Edit With Your Name -->
<div class=\"loader-name\" id=\"loader-name\">
<img src=\"img/loader-logo.png\" alt=\"\">
</div>
<!-- /Edit With Your Name -->
<!-- Edit With Your Job -->
<p class=\"loader-job\" id=\"loader-job\">June 4-8 2016 @ New York City</p>
<!-- /Edit With Your Job -->
</div>
</div>
<!-- /End of Page loader
========================================================= -->
<!-- Header
================================================== -->
";
// line 32
$this->loadTemplate("includes/header.html.twig", "paiment/virement.html.twig", 32)->display($context);
// line 33
echo "
<!-- /Header
================================================== -->
<div class=\"page-wrapper\" style=\"min-height:600px;\">
\t
\t<div id=\"body-content\" style=\"background-color:white\">
\t\t<style>
.anisawadni table td {
vertical-align: top;
}
.anisawadni .body-wrap {
background-color: #f6f6f6;
width: 100%;
}
.anisawadni .container {
display: block !important;
max-width: 600px !important;
margin: 0 auto !important;
/* makes it centered */
clear: both !important;
}
.anisawadni .content {
max-width: 600px;
margin: 0 auto;
display: block;
padding: 20px;
}
/* -------------------------------------
HEADER, FOOTER, MAIN
------------------------------------- */
.anisawadni .main {
background: #fff;
border: 1px solid #e9e9e9;
border-radius: 3px;
}
.anisawadni .content-wrap {
padding: 20px;
}
.anisawadni .content-block {
padding: 0 0 20px;
}
.anisawadni .header {
width: 100%;
margin-bottom: 20px;
}
.anisawadni .footer {
width: 100%;
clear: both;
color: #999;
padding: 20px;
}
.anisawadni .footer a {
color: #999;
}
.anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
font-size: 12px;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
.anisawadni h1, h2, h3 {
font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;
color: #000;
margin: 40px 0 0;
line-height: 1.2;
font-weight: 400;
}
.anisawadni h1 {
font-size: 32px;
font-weight: 500;
}
.anisawadni h2 {
font-size: 24px;
}
.anisawadni h3 {
font-size: 18px;
}
.anisawadni h4 {
font-size: 14px;
font-weight: 600;
}
.anisawadni p, ul, ol {
margin-bottom: 10px;
font-weight: normal;
}
.anisawadni p li, ul li, ol li {
margin-left: 5px;
list-style-position: inside;
}
/* -------------------------------------
LINKS & BUTTONS
------------------------------------- */
.anisawadni a {
color: #1ab394;
text-decoration: underline;
}
.anisawadni .btn-primary {
text-decoration: none;
color: #FFF;
background-color: #1ab394;
border: solid #1ab394;
border-width: 5px 10px;
line-height: 2;
font-weight: bold;
text-align: center;
cursor: pointer;
display: inline-block;
border-radius: 5px;
text-transform: capitalize;
}
/* -------------------------------------
OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.anisawadni .last {
margin-bottom: 0;
}
.anisawadni .first {
margin-top: 0;
}
.anisawadni .aligncenter {
text-align: center;
}
.anisawadni .alignright {
text-align: right;
}
.anisawadni .alignleft {
text-align: left;
}
.anisawadni .clear {
clear: both;
}
/* -------------------------------------
ALERTS
Change the class depending on warning email, good email or bad email
------------------------------------- */
.anisawadni .alert {
font-size: 16px;
color: #fff;
font-weight: 500;
padding: 20px;
text-align: center;
border-radius: 3px 3px 0 0;
}
.anisawadni .alert a {
color: #fff;
text-decoration: none;
font-weight: 500;
font-size: 16px;
}
.anisawadni .alert.alert-warning {
background: #f8ac59;
}
.anisawadni .alert.alert-bad {
background: #ed5565;
}
.anisawadni .alert.alert-good {
background: #1ab394;
}
/* -------------------------------------
INVOICE
Styles for the billing table
------------------------------------- */
.anisawadni .invoice {
margin: 40px auto;
text-align: left;
width: 80%;
}
.anisawadni .invoice td {
padding: 5px 0;
}
.anisawadni .invoice .invoice-items {
width: 100%;
}
.anisawadni .invoice .invoice-items td {
border-top: #eee 1px solid;
}
.anisawadni .invoice .invoice-items .total td {
border-top: 2px solid #333;
border-bottom: 2px solid #333;
font-weight: 700;
}
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 640px) {
.anisawadni h1, h2, h3, h4 {
font-weight: 600 !important;
margin: 20px 0 5px !important;
}
.anisawadni h1 {
font-size: 22px !important;
}
.anisawadni h2 {
font-size: 18px !important;
}
.anisawadni h3 {
font-size: 16px !important;
}
.anisawadni .container {
width: 100% !important;
}
.anisawadni .content, .content-wrap {
padding: 10px !important;
}
.anisawadni .invoice {
width: 100% !important;
}
}
</style>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js\"></script>
\t\t<div class=\"section-about\" id=\"section-about\" style=\"background-color:white\">
\t\t\t<div class=\"container-fluid\">
\t\t\t\t<div class=\"row\" style=\"margin-top:10%;background-color:white\">
<div class=\"container\">
<h2>Virement bancaire </h2>
<hr>
<div class=\"col-lg-12 anisawadni\">
<table class=\"main download-r\" id=\"download-r\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr>
<td class=\"content-wrap aligncenter\">
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr>
<td class=\"content-block\">
<h2>ASTP</h2>
</td>
</tr>
<tr>
<td class=\"content-block\">
<table class=\"invoice\">
<tbody>
<tr>
<td>
<table class=\"invoice-items\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr>
<td>Nom et prénom </td>
<td class=\"alignright\">";
// line 305
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 305, $this->source); })()), "session", [], "any", false, false, false, 305), "get", [0 => "nom"], "method", false, false, false, 305), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 305, $this->source); })()), "session", [], "any", false, false, false, 305), "get", [0 => "prenom"], "method", false, false, false, 305), "html", null, true);
echo "</td>
</tr>
<tr>
<td>Email</td>
<td class=\"alignright\">";
// line 309
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 309, $this->source); })()), "session", [], "any", false, false, false, 309), "get", [0 => "emailSend"], "method", false, false, false, 309), "html", null, true);
echo "</td>
</tr>
<tr>
<td>Téléphone</td>
<td class=\"alignright\">";
// line 313
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 313, $this->source); })()), "session", [], "any", false, false, false, 313), "get", [0 => "phone"], "method", false, false, false, 313), "html", null, true);
echo "</td>
</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t <tr>
<td>Type</td>
<td class=\"alignright\">";
// line 317
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 317, $this->source); })()), "session", [], "any", false, false, false, 317), "get", [0 => "type"], "method", false, false, false, 317), "html", null, true);
echo "</td>
</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t <tr>
<td>Fonction</td>
<td class=\"alignright\">";
// line 321
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 321, $this->source); })()), "session", [], "any", false, false, false, 321), "get", [0 => "fonction"], "method", false, false, false, 321), "html", null, true);
echo "</td>
</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
<tr class=\"total\">
<td class=\"alignright\" width=\"80%\">Total</td>
<td class=\"alignright \"><span class=\"montant\">";
// line 326
echo twig_escape_filter($this->env, (isset($context["prix"]) || array_key_exists("prix", $context) ? $context["prix"] : (function () { throw new RuntimeError('Variable "prix" does not exist.', 326, $this->source); })()), "html", null, true);
echo "</span> TND</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan=\"4\">
";
// line 336
if (array_key_exists("ret", $context)) {
// line 337
echo " ";
if ( !twig_test_empty((isset($context["ret"]) || array_key_exists("ret", $context) ? $context["ret"] : (function () { throw new RuntimeError('Variable "ret" does not exist.', 337, $this->source); })()))) {
// line 338
echo " <div class=\"alert alert-danger\" style=\" text-align: left;
color: black;\"> ";
// line 339
echo twig_escape_filter($this->env, (isset($context["ret"]) || array_key_exists("ret", $context) ? $context["ret"] : (function () { throw new RuntimeError('Variable "ret" does not exist.', 339, $this->source); })()), "html", null, true);
echo "</div>
";
}
}
// line 342
echo "
";
// line 345
if (array_key_exists("success", $context)) {
// line 346
echo " ";
if ( !twig_test_empty((isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 346, $this->source); })()))) {
// line 347
echo " <div class=\"alert alert-success\" style=\"text-align: left;
color: black;\"> ";
// line 348
echo twig_escape_filter($this->env, (isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 348, $this->source); })()), "html", null, true);
echo "</div>
";
}
// line 350
echo " ";
}
// line 351
echo "
";
// line 352
if (( !array_key_exists("success", $context) || twig_test_empty((isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 352, $this->source); })())))) {
// line 353
echo " <form method=\"post\" action=\"/virementsend/";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 353, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, (isset($context["idprix"]) || array_key_exists("idprix", $context) ? $context["idprix"] : (function () { throw new RuntimeError('Variable "idprix" does not exist.', 353, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, (isset($context["sup"]) || array_key_exists("sup", $context) ? $context["sup"] : (function () { throw new RuntimeError('Variable "sup" does not exist.', 353, $this->source); })()), "html", null, true);
echo "\" enctype=\"multipart/form-data\">
<label style=\"float:left\">Téléchargez le reçu de virement bancaire ici pour RIB : <b>07074013210550067594</b> </label>
<input type=\"file\" name=\"receipt\" class=\"form-control\" />
<button class=\"btn btn-info float-right m-3\" style=\"float:right\">Suivant</button>
</form>
";
}
// line 359
echo " </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
";
// line 366
if (array_key_exists("success", $context)) {
// line 367
echo " ";
if ( !twig_test_empty((isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 367, $this->source); })()))) {
// line 368
echo " <button class=\"btn btn-info\" style=\"float:right\" id=\"download\">Télécharger</button>
";
}
// line 370
echo " ";
}
// line 371
echo "
<script>
document.getElementById('download').addEventListener('click', function () {
// Sélectionne l'élément HTML à convertir en PDF
const element = document.getElementById('download-r');
// Options de configuration pour html2pdf
const opt = {
margin: 1,
filename: 'document-paiment-astp.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
};
// Conversion de l'élément en PDF
html2pdf().from(element).set(opt).save();
});
</script>
<div class=\"footer\">
<table width=\"100%\">
<tbody><tr>
<td class=\"aligncenter content-block\">Questions? Téléphone <a href=\"mailto:\">+216 97 054 316</a></td>
</tr>
<tr>
</tr>
</tbody></table>
</div></div>
</td>
<td></td>
</tr>
</tbody></table>
</div>
</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- /SECTION: Event Description
\t\t================================================== -->
\t\t<!-- SECTION: Event Schedule
\t\t================================================== -->
\t</div>
</div>\t
";
// line 418
$this->loadTemplate("includes/footer.html.twig", "paiment/virement.html.twig", 418)->display($context);
// line 419
echo "
</body>
</html>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "paiment/virement.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 532 => 419, 530 => 418, 481 => 371, 478 => 370, 474 => 368, 471 => 367, 469 => 366, 460 => 359, 446 => 353, 444 => 352, 441 => 351, 438 => 350, 433 => 348, 430 => 347, 427 => 346, 425 => 345, 420 => 342, 414 => 339, 411 => 338, 408 => 337, 406 => 336, 393 => 326, 385 => 321, 378 => 317, 371 => 313, 364 => 309, 355 => 305, 81 => 33, 79 => 32, 51 => 6, 49 => 5, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
<!DOCTYPE html>
<html>
{% include ('includes/head.html.twig') %}
<body>
<!-- Page Loader
========================================================= -->
<div class=\"loader-container\" id=\"page-loader\">
<div class=\"loading-wrapper loading-wrapper-hide\">
\t<div class=\"loader-animation\" id=\"loader-animation\">
\t\t<svg class=\"svg-loader\" width=100 height=100>
\t\t <circle cx=50 cy=50 r=25 />
\t\t</svg>
\t</div>
<!-- Edit With Your Name -->
<div class=\"loader-name\" id=\"loader-name\">
<img src=\"img/loader-logo.png\" alt=\"\">
</div>
<!-- /Edit With Your Name -->
<!-- Edit With Your Job -->
<p class=\"loader-job\" id=\"loader-job\">June 4-8 2016 @ New York City</p>
<!-- /Edit With Your Job -->
</div>
</div>
<!-- /End of Page loader
========================================================= -->
<!-- Header
================================================== -->
{% include ('includes/header.html.twig') %}
<!-- /Header
================================================== -->
<div class=\"page-wrapper\" style=\"min-height:600px;\">
\t
\t<div id=\"body-content\" style=\"background-color:white\">
\t\t<style>
.anisawadni table td {
vertical-align: top;
}
.anisawadni .body-wrap {
background-color: #f6f6f6;
width: 100%;
}
.anisawadni .container {
display: block !important;
max-width: 600px !important;
margin: 0 auto !important;
/* makes it centered */
clear: both !important;
}
.anisawadni .content {
max-width: 600px;
margin: 0 auto;
display: block;
padding: 20px;
}
/* -------------------------------------
HEADER, FOOTER, MAIN
------------------------------------- */
.anisawadni .main {
background: #fff;
border: 1px solid #e9e9e9;
border-radius: 3px;
}
.anisawadni .content-wrap {
padding: 20px;
}
.anisawadni .content-block {
padding: 0 0 20px;
}
.anisawadni .header {
width: 100%;
margin-bottom: 20px;
}
.anisawadni .footer {
width: 100%;
clear: both;
color: #999;
padding: 20px;
}
.anisawadni .footer a {
color: #999;
}
.anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
font-size: 12px;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
.anisawadni h1, h2, h3 {
font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;
color: #000;
margin: 40px 0 0;
line-height: 1.2;
font-weight: 400;
}
.anisawadni h1 {
font-size: 32px;
font-weight: 500;
}
.anisawadni h2 {
font-size: 24px;
}
.anisawadni h3 {
font-size: 18px;
}
.anisawadni h4 {
font-size: 14px;
font-weight: 600;
}
.anisawadni p, ul, ol {
margin-bottom: 10px;
font-weight: normal;
}
.anisawadni p li, ul li, ol li {
margin-left: 5px;
list-style-position: inside;
}
/* -------------------------------------
LINKS & BUTTONS
------------------------------------- */
.anisawadni a {
color: #1ab394;
text-decoration: underline;
}
.anisawadni .btn-primary {
text-decoration: none;
color: #FFF;
background-color: #1ab394;
border: solid #1ab394;
border-width: 5px 10px;
line-height: 2;
font-weight: bold;
text-align: center;
cursor: pointer;
display: inline-block;
border-radius: 5px;
text-transform: capitalize;
}
/* -------------------------------------
OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.anisawadni .last {
margin-bottom: 0;
}
.anisawadni .first {
margin-top: 0;
}
.anisawadni .aligncenter {
text-align: center;
}
.anisawadni .alignright {
text-align: right;
}
.anisawadni .alignleft {
text-align: left;
}
.anisawadni .clear {
clear: both;
}
/* -------------------------------------
ALERTS
Change the class depending on warning email, good email or bad email
------------------------------------- */
.anisawadni .alert {
font-size: 16px;
color: #fff;
font-weight: 500;
padding: 20px;
text-align: center;
border-radius: 3px 3px 0 0;
}
.anisawadni .alert a {
color: #fff;
text-decoration: none;
font-weight: 500;
font-size: 16px;
}
.anisawadni .alert.alert-warning {
background: #f8ac59;
}
.anisawadni .alert.alert-bad {
background: #ed5565;
}
.anisawadni .alert.alert-good {
background: #1ab394;
}
/* -------------------------------------
INVOICE
Styles for the billing table
------------------------------------- */
.anisawadni .invoice {
margin: 40px auto;
text-align: left;
width: 80%;
}
.anisawadni .invoice td {
padding: 5px 0;
}
.anisawadni .invoice .invoice-items {
width: 100%;
}
.anisawadni .invoice .invoice-items td {
border-top: #eee 1px solid;
}
.anisawadni .invoice .invoice-items .total td {
border-top: 2px solid #333;
border-bottom: 2px solid #333;
font-weight: 700;
}
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 640px) {
.anisawadni h1, h2, h3, h4 {
font-weight: 600 !important;
margin: 20px 0 5px !important;
}
.anisawadni h1 {
font-size: 22px !important;
}
.anisawadni h2 {
font-size: 18px !important;
}
.anisawadni h3 {
font-size: 16px !important;
}
.anisawadni .container {
width: 100% !important;
}
.anisawadni .content, .content-wrap {
padding: 10px !important;
}
.anisawadni .invoice {
width: 100% !important;
}
}
</style>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js\"></script>
\t\t<div class=\"section-about\" id=\"section-about\" style=\"background-color:white\">
\t\t\t<div class=\"container-fluid\">
\t\t\t\t<div class=\"row\" style=\"margin-top:10%;background-color:white\">
<div class=\"container\">
<h2>Virement bancaire </h2>
<hr>
<div class=\"col-lg-12 anisawadni\">
<table class=\"main download-r\" id=\"download-r\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr>
<td class=\"content-wrap aligncenter\">
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr>
<td class=\"content-block\">
<h2>ASTP</h2>
</td>
</tr>
<tr>
<td class=\"content-block\">
<table class=\"invoice\">
<tbody>
<tr>
<td>
<table class=\"invoice-items\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr>
<td>Nom et prénom </td>
<td class=\"alignright\">{{ app.session.get('nom') }} {{ app.session.get('prenom') }}</td>
</tr>
<tr>
<td>Email</td>
<td class=\"alignright\">{{ app.session.get('emailSend') }}</td>
</tr>
<tr>
<td>Téléphone</td>
<td class=\"alignright\">{{ app.session.get('phone') }}</td>
</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t <tr>
<td>Type</td>
<td class=\"alignright\">{{ app.session.get('type') }}</td>
</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t <tr>
<td>Fonction</td>
<td class=\"alignright\">{{ app.session.get('fonction') }}</td>
</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t
<tr class=\"total\">
<td class=\"alignright\" width=\"80%\">Total</td>
<td class=\"alignright \"><span class=\"montant\">{{prix}}</span> TND</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan=\"4\">
{% if ret is defined %}
{% if ret is not empty %}
<div class=\"alert alert-danger\" style=\" text-align: left;
color: black;\"> {{ ret }}</div>
{% endif %}
{% endif %}
{% if success is defined %}
{% if success is not empty %}
<div class=\"alert alert-success\" style=\"text-align: left;
color: black;\"> {{ success }}</div>
{% endif %}
{% endif %}
{% if success is not defined or success is empty %}
<form method=\"post\" action=\"/virementsend/{{id}}/{{idprix}}/{{sup}}\" enctype=\"multipart/form-data\">
<label style=\"float:left\">Téléchargez le reçu de virement bancaire ici pour RIB : <b>07074013210550067594</b> </label>
<input type=\"file\" name=\"receipt\" class=\"form-control\" />
<button class=\"btn btn-info float-right m-3\" style=\"float:right\">Suivant</button>
</form>
{% endif %}
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
{% if success is defined %}
{% if success is not empty %}
<button class=\"btn btn-info\" style=\"float:right\" id=\"download\">Télécharger</button>
{% endif %}
{% endif %}
<script>
document.getElementById('download').addEventListener('click', function () {
// Sélectionne l'élément HTML à convertir en PDF
const element = document.getElementById('download-r');
// Options de configuration pour html2pdf
const opt = {
margin: 1,
filename: 'document-paiment-astp.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
};
// Conversion de l'élément en PDF
html2pdf().from(element).set(opt).save();
});
</script>
<div class=\"footer\">
<table width=\"100%\">
<tbody><tr>
<td class=\"aligncenter content-block\">Questions? Téléphone <a href=\"mailto:\">+216 97 054 316</a></td>
</tr>
<tr>
</tr>
</tbody></table>
</div></div>
</td>
<td></td>
</tr>
</tbody></table>
</div>
</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- /SECTION: Event Description
\t\t================================================== -->
\t\t<!-- SECTION: Event Schedule
\t\t================================================== -->
\t</div>
</div>\t
{% include ('includes/footer.html.twig') %}
</body>
</html>", "paiment/virement.html.twig", "/var/www/vhosts/astp.tn/httpdocs/templates/paiment/virement.html.twig");
}
}