<!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">
<div class="loader-animation" id="loader-animation">
<svg class="svg-loader" width=100 height=100>
<circle cx=50 cy=50 r=25 />
</svg>
</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;">
<div id="body-content" style="background-color:white">
<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>
<div class="section-about" id="section-about" style="background-color:white">
<div class="container-fluid">
<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>
<tr>
<td>Type</td>
<td class="alignright">{{ app.session.get('type') }}</td>
</tr>
<tr>
<td>Fonction</td>
<td class="alignright">{{ app.session.get('fonction') }}</td>
</tr>
<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}}" 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>
</div>
</div>
</div>
<!-- /SECTION: Event Description
================================================== -->
<!-- SECTION: Event Schedule
================================================== -->
</div>
</div>
{% include ('includes/footer.html.twig') %}
</body>
</html>