var/cache/dev/twig/4a/4a242bb2f8f0a45393a757cbd55bace58ce0743d1816bfc99db5749fe4915a06.php line 451

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* paiment/virement.html.twig */
  14. class __TwigTemplate_b7da93387366f9017fc92b238532098cc3216420274bd143df8097e888c73fc6 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""paiment/virement.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""paiment/virement.html.twig"));
  33.         // line 1
  34.         echo "
  35. <!DOCTYPE html>
  36. <html>
  37. ";
  38.         // line 5
  39.         $this->loadTemplate("includes/head.html.twig""paiment/virement.html.twig"5)->display($context);
  40.         // line 6
  41.         echo "<body>
  42. <!-- Page Loader
  43. ========================================================= -->
  44. <div class=\"loader-container\" id=\"page-loader\"> 
  45.   <div class=\"loading-wrapper loading-wrapper-hide\">
  46.   \t<div class=\"loader-animation\" id=\"loader-animation\">
  47.   \t\t<svg class=\"svg-loader\" width=100 height=100>
  48. \t\t  <circle cx=50 cy=50 r=25 />
  49. \t\t</svg>
  50.   \t</div>    
  51.     <!-- Edit With Your Name -->
  52.     <div class=\"loader-name\" id=\"loader-name\">
  53.       <img src=\"img/loader-logo.png\" alt=\"\">
  54.     </div>
  55.     <!-- /Edit With Your Name -->
  56.     <!-- Edit With Your Job -->
  57.     <p class=\"loader-job\" id=\"loader-job\">June 4-8 2016 @ New York City</p>
  58.     <!-- /Edit With Your Job -->
  59.   </div>   
  60. </div>
  61. <!-- /End of Page loader
  62. ========================================================= -->
  63. <!-- Header
  64. ================================================== -->
  65. ";
  66.         // line 32
  67.         $this->loadTemplate("includes/header.html.twig""paiment/virement.html.twig"32)->display($context);
  68.         // line 33
  69.         echo "
  70. <!-- /Header
  71. ================================================== -->
  72. <div class=\"page-wrapper\" style=\"min-height:600px;\">
  73. \t
  74. \t<div id=\"body-content\" style=\"background-color:white\">
  75. \t\t<style>
  76. .anisawadni table td {
  77.     vertical-align: top;
  78. }
  79. .anisawadni .body-wrap {
  80.     background-color: #f6f6f6;
  81.     width: 100%;
  82. }
  83. .anisawadni .container {
  84.     display: block !important;
  85.     max-width: 600px !important;
  86.     margin: 0 auto !important;
  87.     /* makes it centered */
  88.     clear: both !important;
  89. }
  90. .anisawadni .content {
  91.     max-width: 600px;
  92.     margin: 0 auto;
  93.     display: block;
  94.     padding: 20px;
  95. }
  96. /* -------------------------------------
  97.     HEADER, FOOTER, MAIN
  98. ------------------------------------- */
  99. .anisawadni .main {
  100.     background: #fff;
  101.     border: 1px solid #e9e9e9;
  102.     border-radius: 3px;
  103. }
  104. .anisawadni .content-wrap {
  105.     padding: 20px;
  106. }
  107. .anisawadni .content-block {
  108.     padding: 0 0 20px;
  109. }
  110. .anisawadni .header {
  111.     width: 100%;
  112.     margin-bottom: 20px;
  113. }
  114. .anisawadni .footer {
  115.     width: 100%;
  116.     clear: both;
  117.     color: #999;
  118.     padding: 20px;
  119. }
  120. .anisawadni  .footer a {
  121.     color: #999;
  122. }
  123. .anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
  124.     font-size: 12px;
  125. }
  126. /* -------------------------------------
  127.     TYPOGRAPHY
  128. ------------------------------------- */
  129. .anisawadni h1, h2, h3 {
  130.     font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;
  131.     color: #000;
  132.     margin: 40px 0 0;
  133.     line-height: 1.2;
  134.     font-weight: 400;
  135. }
  136. .anisawadni h1 {
  137.     font-size: 32px;
  138.     font-weight: 500;
  139. }
  140. .anisawadni h2 {
  141.     font-size: 24px;
  142. }
  143. .anisawadni h3 {
  144.     font-size: 18px;
  145. }
  146. .anisawadni h4 {
  147.     font-size: 14px;
  148.     font-weight: 600;
  149. }
  150. .anisawadni p, ul, ol {
  151.     margin-bottom: 10px;
  152.     font-weight: normal;
  153. }
  154. .anisawadni p li, ul li, ol li {
  155.     margin-left: 5px;
  156.     list-style-position: inside;
  157. }
  158. /* -------------------------------------
  159.     LINKS & BUTTONS
  160. ------------------------------------- */
  161. .anisawadni a {
  162.     color: #1ab394;
  163.     text-decoration: underline;
  164. }
  165. .anisawadni .btn-primary {
  166.     text-decoration: none;
  167.     color: #FFF;
  168.     background-color: #1ab394;
  169.     border: solid #1ab394;
  170.     border-width: 5px 10px;
  171.     line-height: 2;
  172.     font-weight: bold;
  173.     text-align: center;
  174.     cursor: pointer;
  175.     display: inline-block;
  176.     border-radius: 5px;
  177.     text-transform: capitalize;
  178. }
  179. /* -------------------------------------
  180.     OTHER STYLES THAT MIGHT BE USEFUL
  181. ------------------------------------- */
  182. .anisawadni .last {
  183.     margin-bottom: 0;
  184. }
  185. .anisawadni .first {
  186.     margin-top: 0;
  187. }
  188. .anisawadni .aligncenter {
  189.     text-align: center;
  190. }
  191. .anisawadni .alignright {
  192.     text-align: right;
  193. }
  194. .anisawadni .alignleft {
  195.     text-align: left;
  196. }
  197. .anisawadni .clear {
  198.     clear: both;
  199. }
  200. /* -------------------------------------
  201.     ALERTS
  202.     Change the class depending on warning email, good email or bad email
  203. ------------------------------------- */
  204. .anisawadni .alert {
  205.     font-size: 16px;
  206.     color: #fff;
  207.     font-weight: 500;
  208.     padding: 20px;
  209.     text-align: center;
  210.     border-radius: 3px 3px 0 0;
  211. }
  212. .anisawadni .alert a {
  213.     color: #fff;
  214.     text-decoration: none;
  215.     font-weight: 500;
  216.     font-size: 16px;
  217. }
  218. .anisawadni .alert.alert-warning {
  219.     background: #f8ac59;
  220. }
  221. .anisawadni .alert.alert-bad {
  222.     background: #ed5565;
  223. }
  224. .anisawadni .alert.alert-good {
  225.     background: #1ab394;
  226. }
  227. /* -------------------------------------
  228.     INVOICE
  229.     Styles for the billing table
  230. ------------------------------------- */
  231. .anisawadni .invoice {
  232.     margin: 40px auto;
  233.     text-align: left;
  234.     width: 80%;
  235. }
  236. .anisawadni .invoice td {
  237.     padding: 5px 0;
  238. }
  239. .anisawadni .invoice .invoice-items {
  240.     width: 100%;
  241. }
  242. .anisawadni .invoice .invoice-items td {
  243.     border-top: #eee 1px solid;
  244. }
  245. .anisawadni .invoice .invoice-items .total td {
  246.     border-top: 2px solid #333;
  247.     border-bottom: 2px solid #333;
  248.     font-weight: 700;
  249. }
  250. /* -------------------------------------
  251.     RESPONSIVE AND MOBILE FRIENDLY STYLES
  252. ------------------------------------- */
  253. @media only screen and (max-width: 640px) {
  254.    .anisawadni  h1, h2, h3, h4 {
  255.         font-weight: 600 !important;
  256.         margin: 20px 0 5px !important;
  257.     }
  258.    .anisawadni  h1 {
  259.         font-size: 22px !important;
  260.     }
  261.     .anisawadni h2 {
  262.         font-size: 18px !important;
  263.     }
  264.     .anisawadni h3 {
  265.         font-size: 16px !important;
  266.     }
  267.     .anisawadni .container {
  268.         width: 100% !important;
  269.     }
  270.     .anisawadni .content, .content-wrap {
  271.         padding: 10px !important;
  272.     }
  273.     .anisawadni .invoice {
  274.         width: 100% !important;
  275.     }
  276. }
  277. </style>
  278. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js\"></script>
  279. \t\t<div class=\"section-about\" id=\"section-about\" style=\"background-color:white\">
  280. \t\t\t<div class=\"container-fluid\">
  281. \t\t\t\t<div class=\"row\" style=\"margin-top:10%;background-color:white\">
  282.                    
  283.                    <div class=\"container\">
  284.                    <h2>Virement bancaire </h2>
  285.                    <hr>
  286.                         <div class=\"col-lg-12 anisawadni\">
  287.                    <table class=\"main download-r\" id=\"download-r\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
  288.                     <tbody><tr>
  289.                         <td class=\"content-wrap aligncenter\">
  290.                             <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
  291.                                 <tbody><tr>
  292.                                     <td class=\"content-block\">
  293.                                         <h2>ASTP</h2>
  294.                                     </td>
  295.                                 </tr>
  296.                                 <tr>
  297.                                     <td class=\"content-block\">
  298.                                         <table class=\"invoice\">
  299.                                             <tbody>
  300.                                             
  301.                                             <tr>
  302.                                                 <td>
  303.                                                     <table class=\"invoice-items\" cellpadding=\"0\" cellspacing=\"0\">
  304.                                                         <tbody><tr>
  305.                                                             <td>Nom et prénom </td>
  306.                                                             <td class=\"alignright\">";
  307.         // line 305
  308.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse305), "get", [=> "nom"], "method"falsefalsefalse305), "html"nulltrue);
  309.         echo " ";
  310.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse305), "get", [=> "prenom"], "method"falsefalsefalse305), "html"nulltrue);
  311.         echo "</td>
  312.                                                         </tr>
  313.                                                         <tr>
  314.                                                             <td>Email</td>
  315.                                                             <td class=\"alignright\">";
  316.         // line 309
  317.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse309), "get", [=> "emailSend"], "method"falsefalsefalse309), "html"nulltrue);
  318.         echo "</td>
  319.                                                         </tr>
  320.                                                          <tr>
  321.                                                             <td>Téléphone</td>
  322.                                                             <td class=\"alignright\">";
  323.         // line 313
  324.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse313), "get", [=> "phone"], "method"falsefalsefalse313), "html"nulltrue);
  325.         echo "</td>
  326.                                                         </tr>
  327. \t\t\t\t\t\t\t\t\t\t\t\t\t\t   <tr>
  328.                                                             <td>Type</td>
  329.                                                             <td class=\"alignright\">";
  330.         // line 317
  331.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse317), "get", [=> "type"], "method"falsefalsefalse317), "html"nulltrue);
  332.         echo "</td>
  333.                                                         </tr>
  334. \t\t\t\t\t\t\t\t\t\t\t\t\t\t   <tr>
  335.                                                             <td>Fonction</td>
  336.                                                             <td class=\"alignright\">";
  337.         // line 321
  338.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse321), "get", [=> "fonction"], "method"falsefalsefalse321), "html"nulltrue);
  339.         echo "</td>
  340.                                                         </tr>
  341. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  342.                                                         <tr class=\"total\">
  343.                                                             <td class=\"alignright\" width=\"80%\">Total</td>
  344.                                                             <td class=\"alignright \"><span class=\"montant\">";
  345.         // line 326
  346.         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"nulltrue);
  347.         echo "</span> TND</td>
  348.                                                         </tr>
  349.                                                     </tbody></table>
  350.                                                 </td>
  351.                                             </tr>
  352.                                         </tbody></table>
  353.                                     </td>
  354.                                 </tr>
  355.                                   <tr>
  356.                         <td colspan=\"4\">
  357.                     ";
  358.         // line 336
  359.         if (array_key_exists("ret"$context)) {
  360.             // line 337
  361.             echo "    ";
  362.             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); })()))) {
  363.                 // line 338
  364.                 echo "        <div class=\"alert alert-danger\" style=\"    text-align: left;
  365.     color: black;\"> ";
  366.                 // line 339
  367.                 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"nulltrue);
  368.                 echo "</div>
  369.     ";
  370.             }
  371.         }
  372.         // line 342
  373.         echo "
  374.                 ";
  375.         // line 345
  376.         if (array_key_exists("success"$context)) {
  377.             // line 346
  378.             echo "   ";
  379.             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); })()))) {
  380.                 // line 347
  381.                 echo "                <div class=\"alert alert-success\" style=\"text-align: left;
  382.                      color: black;\"> ";
  383.                 // line 348
  384.                 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"nulltrue);
  385.                 echo "</div>
  386.                  ";
  387.             }
  388.             // line 350
  389.             echo "                ";
  390.         }
  391.         // line 351
  392.         echo "
  393.                 ";
  394.         // line 352
  395.         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); })())))) {
  396.             // line 353
  397.             echo "                        <form method=\"post\" action=\"/virementsend/";
  398.             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"nulltrue);
  399.             echo "/";
  400.             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"nulltrue);
  401.             echo "/";
  402.             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"nulltrue);
  403.             echo "\" enctype=\"multipart/form-data\">
  404.                                 <label style=\"float:left\">Téléchargez le reçu de virement bancaire ici pour RIB  : <b>07074013210550067594</b> </label>
  405.                                 <input type=\"file\" name=\"receipt\" class=\"form-control\" />
  406.                                 <button class=\"btn btn-info float-right m-3\" style=\"float:right\">Suivant</button>
  407.                         </form>
  408.                     ";
  409.         }
  410.         // line 359
  411.         echo "                        </td>
  412.                         
  413.                         </tr>
  414.                             </tbody></table>
  415.                         </td>
  416.                     </tr>
  417.                 </tbody></table>
  418.                     ";
  419.         // line 366
  420.         if (array_key_exists("success"$context)) {
  421.             // line 367
  422.             echo "                ";
  423.             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); })()))) {
  424.                 // line 368
  425.                 echo "                <button class=\"btn btn-info\" style=\"float:right\" id=\"download\">Télécharger</button>
  426.                  ";
  427.             }
  428.             // line 370
  429.             echo "                ";
  430.         }
  431.         // line 371
  432.         echo "
  433.              <script>
  434.         document.getElementById('download').addEventListener('click', function () {
  435.             // Sélectionne l'élément HTML à convertir en PDF
  436.             const element = document.getElementById('download-r');
  437.             // Options de configuration pour html2pdf
  438.             const opt = {
  439.                 margin:       1,
  440.                 filename:     'document-paiment-astp.pdf',
  441.                 image:        { type: 'jpeg', quality: 0.98 },
  442.                 html2canvas:  { scale: 2 },
  443.                 jsPDF:        { unit: 'in', format: 'letter', orientation: 'portrait' }
  444.             };
  445.             // Conversion de l'élément en PDF
  446.             html2pdf().from(element).set(opt).save();
  447.         });
  448.     </script>
  449.                 
  450.                 <div class=\"footer\">
  451.                     <table width=\"100%\">
  452.                         <tbody><tr>
  453.                             <td class=\"aligncenter content-block\">Questions? Téléphone <a href=\"mailto:\">+216 97 054 316</a></td>
  454.                         </tr>
  455.                         <tr>
  456.                        
  457.                         
  458.                         </tr>
  459.                     </tbody></table>
  460.                 </div></div>
  461.         </td>
  462.         <td></td>
  463.     </tr>
  464. </tbody></table>
  465.                         </div>  
  466.                    </div>
  467. \t\t\t\t</div>
  468. \t\t\t</div>
  469. \t\t</div>
  470. \t\t<!-- /SECTION: Event Description
  471. \t\t================================================== -->
  472. \t\t<!-- SECTION: Event Schedule
  473. \t\t================================================== -->
  474. \t</div>
  475.     </div>\t
  476. ";
  477.         // line 418
  478.         $this->loadTemplate("includes/footer.html.twig""paiment/virement.html.twig"418)->display($context);
  479.         // line 419
  480.         echo "
  481. </body>
  482. </html>";
  483.         
  484.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  485.         
  486.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  487.     }
  488.     public function getTemplateName()
  489.     {
  490.         return "paiment/virement.html.twig";
  491.     }
  492.     public function isTraitable()
  493.     {
  494.         return false;
  495.     }
  496.     public function getDebugInfo()
  497.     {
  498.         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,);
  499.     }
  500.     public function getSourceContext()
  501.     {
  502.         return new Source("
  503. <!DOCTYPE html>
  504. <html>
  505. {% include ('includes/head.html.twig') %}
  506. <body>
  507. <!-- Page Loader
  508. ========================================================= -->
  509. <div class=\"loader-container\" id=\"page-loader\"> 
  510.   <div class=\"loading-wrapper loading-wrapper-hide\">
  511.   \t<div class=\"loader-animation\" id=\"loader-animation\">
  512.   \t\t<svg class=\"svg-loader\" width=100 height=100>
  513. \t\t  <circle cx=50 cy=50 r=25 />
  514. \t\t</svg>
  515.   \t</div>    
  516.     <!-- Edit With Your Name -->
  517.     <div class=\"loader-name\" id=\"loader-name\">
  518.       <img src=\"img/loader-logo.png\" alt=\"\">
  519.     </div>
  520.     <!-- /Edit With Your Name -->
  521.     <!-- Edit With Your Job -->
  522.     <p class=\"loader-job\" id=\"loader-job\">June 4-8 2016 @ New York City</p>
  523.     <!-- /Edit With Your Job -->
  524.   </div>   
  525. </div>
  526. <!-- /End of Page loader
  527. ========================================================= -->
  528. <!-- Header
  529. ================================================== -->
  530. {% include ('includes/header.html.twig') %}
  531. <!-- /Header
  532. ================================================== -->
  533. <div class=\"page-wrapper\" style=\"min-height:600px;\">
  534. \t
  535. \t<div id=\"body-content\" style=\"background-color:white\">
  536. \t\t<style>
  537. .anisawadni table td {
  538.     vertical-align: top;
  539. }
  540. .anisawadni .body-wrap {
  541.     background-color: #f6f6f6;
  542.     width: 100%;
  543. }
  544. .anisawadni .container {
  545.     display: block !important;
  546.     max-width: 600px !important;
  547.     margin: 0 auto !important;
  548.     /* makes it centered */
  549.     clear: both !important;
  550. }
  551. .anisawadni .content {
  552.     max-width: 600px;
  553.     margin: 0 auto;
  554.     display: block;
  555.     padding: 20px;
  556. }
  557. /* -------------------------------------
  558.     HEADER, FOOTER, MAIN
  559. ------------------------------------- */
  560. .anisawadni .main {
  561.     background: #fff;
  562.     border: 1px solid #e9e9e9;
  563.     border-radius: 3px;
  564. }
  565. .anisawadni .content-wrap {
  566.     padding: 20px;
  567. }
  568. .anisawadni .content-block {
  569.     padding: 0 0 20px;
  570. }
  571. .anisawadni .header {
  572.     width: 100%;
  573.     margin-bottom: 20px;
  574. }
  575. .anisawadni .footer {
  576.     width: 100%;
  577.     clear: both;
  578.     color: #999;
  579.     padding: 20px;
  580. }
  581. .anisawadni  .footer a {
  582.     color: #999;
  583. }
  584. .anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
  585.     font-size: 12px;
  586. }
  587. /* -------------------------------------
  588.     TYPOGRAPHY
  589. ------------------------------------- */
  590. .anisawadni h1, h2, h3 {
  591.     font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;
  592.     color: #000;
  593.     margin: 40px 0 0;
  594.     line-height: 1.2;
  595.     font-weight: 400;
  596. }
  597. .anisawadni h1 {
  598.     font-size: 32px;
  599.     font-weight: 500;
  600. }
  601. .anisawadni h2 {
  602.     font-size: 24px;
  603. }
  604. .anisawadni h3 {
  605.     font-size: 18px;
  606. }
  607. .anisawadni h4 {
  608.     font-size: 14px;
  609.     font-weight: 600;
  610. }
  611. .anisawadni p, ul, ol {
  612.     margin-bottom: 10px;
  613.     font-weight: normal;
  614. }
  615. .anisawadni p li, ul li, ol li {
  616.     margin-left: 5px;
  617.     list-style-position: inside;
  618. }
  619. /* -------------------------------------
  620.     LINKS & BUTTONS
  621. ------------------------------------- */
  622. .anisawadni a {
  623.     color: #1ab394;
  624.     text-decoration: underline;
  625. }
  626. .anisawadni .btn-primary {
  627.     text-decoration: none;
  628.     color: #FFF;
  629.     background-color: #1ab394;
  630.     border: solid #1ab394;
  631.     border-width: 5px 10px;
  632.     line-height: 2;
  633.     font-weight: bold;
  634.     text-align: center;
  635.     cursor: pointer;
  636.     display: inline-block;
  637.     border-radius: 5px;
  638.     text-transform: capitalize;
  639. }
  640. /* -------------------------------------
  641.     OTHER STYLES THAT MIGHT BE USEFUL
  642. ------------------------------------- */
  643. .anisawadni .last {
  644.     margin-bottom: 0;
  645. }
  646. .anisawadni .first {
  647.     margin-top: 0;
  648. }
  649. .anisawadni .aligncenter {
  650.     text-align: center;
  651. }
  652. .anisawadni .alignright {
  653.     text-align: right;
  654. }
  655. .anisawadni .alignleft {
  656.     text-align: left;
  657. }
  658. .anisawadni .clear {
  659.     clear: both;
  660. }
  661. /* -------------------------------------
  662.     ALERTS
  663.     Change the class depending on warning email, good email or bad email
  664. ------------------------------------- */
  665. .anisawadni .alert {
  666.     font-size: 16px;
  667.     color: #fff;
  668.     font-weight: 500;
  669.     padding: 20px;
  670.     text-align: center;
  671.     border-radius: 3px 3px 0 0;
  672. }
  673. .anisawadni .alert a {
  674.     color: #fff;
  675.     text-decoration: none;
  676.     font-weight: 500;
  677.     font-size: 16px;
  678. }
  679. .anisawadni .alert.alert-warning {
  680.     background: #f8ac59;
  681. }
  682. .anisawadni .alert.alert-bad {
  683.     background: #ed5565;
  684. }
  685. .anisawadni .alert.alert-good {
  686.     background: #1ab394;
  687. }
  688. /* -------------------------------------
  689.     INVOICE
  690.     Styles for the billing table
  691. ------------------------------------- */
  692. .anisawadni .invoice {
  693.     margin: 40px auto;
  694.     text-align: left;
  695.     width: 80%;
  696. }
  697. .anisawadni .invoice td {
  698.     padding: 5px 0;
  699. }
  700. .anisawadni .invoice .invoice-items {
  701.     width: 100%;
  702. }
  703. .anisawadni .invoice .invoice-items td {
  704.     border-top: #eee 1px solid;
  705. }
  706. .anisawadni .invoice .invoice-items .total td {
  707.     border-top: 2px solid #333;
  708.     border-bottom: 2px solid #333;
  709.     font-weight: 700;
  710. }
  711. /* -------------------------------------
  712.     RESPONSIVE AND MOBILE FRIENDLY STYLES
  713. ------------------------------------- */
  714. @media only screen and (max-width: 640px) {
  715.    .anisawadni  h1, h2, h3, h4 {
  716.         font-weight: 600 !important;
  717.         margin: 20px 0 5px !important;
  718.     }
  719.    .anisawadni  h1 {
  720.         font-size: 22px !important;
  721.     }
  722.     .anisawadni h2 {
  723.         font-size: 18px !important;
  724.     }
  725.     .anisawadni h3 {
  726.         font-size: 16px !important;
  727.     }
  728.     .anisawadni .container {
  729.         width: 100% !important;
  730.     }
  731.     .anisawadni .content, .content-wrap {
  732.         padding: 10px !important;
  733.     }
  734.     .anisawadni .invoice {
  735.         width: 100% !important;
  736.     }
  737. }
  738. </style>
  739. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js\"></script>
  740. \t\t<div class=\"section-about\" id=\"section-about\" style=\"background-color:white\">
  741. \t\t\t<div class=\"container-fluid\">
  742. \t\t\t\t<div class=\"row\" style=\"margin-top:10%;background-color:white\">
  743.                    
  744.                    <div class=\"container\">
  745.                    <h2>Virement bancaire </h2>
  746.                    <hr>
  747.                         <div class=\"col-lg-12 anisawadni\">
  748.                    <table class=\"main download-r\" id=\"download-r\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
  749.                     <tbody><tr>
  750.                         <td class=\"content-wrap aligncenter\">
  751.                             <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
  752.                                 <tbody><tr>
  753.                                     <td class=\"content-block\">
  754.                                         <h2>ASTP</h2>
  755.                                     </td>
  756.                                 </tr>
  757.                                 <tr>
  758.                                     <td class=\"content-block\">
  759.                                         <table class=\"invoice\">
  760.                                             <tbody>
  761.                                             
  762.                                             <tr>
  763.                                                 <td>
  764.                                                     <table class=\"invoice-items\" cellpadding=\"0\" cellspacing=\"0\">
  765.                                                         <tbody><tr>
  766.                                                             <td>Nom et prénom </td>
  767.                                                             <td class=\"alignright\">{{ app.session.get('nom') }} {{ app.session.get('prenom') }}</td>
  768.                                                         </tr>
  769.                                                         <tr>
  770.                                                             <td>Email</td>
  771.                                                             <td class=\"alignright\">{{ app.session.get('emailSend') }}</td>
  772.                                                         </tr>
  773.                                                          <tr>
  774.                                                             <td>Téléphone</td>
  775.                                                             <td class=\"alignright\">{{ app.session.get('phone') }}</td>
  776.                                                         </tr>
  777. \t\t\t\t\t\t\t\t\t\t\t\t\t\t   <tr>
  778.                                                             <td>Type</td>
  779.                                                             <td class=\"alignright\">{{ app.session.get('type') }}</td>
  780.                                                         </tr>
  781. \t\t\t\t\t\t\t\t\t\t\t\t\t\t   <tr>
  782.                                                             <td>Fonction</td>
  783.                                                             <td class=\"alignright\">{{ app.session.get('fonction') }}</td>
  784.                                                         </tr>
  785. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  786.                                                         <tr class=\"total\">
  787.                                                             <td class=\"alignright\" width=\"80%\">Total</td>
  788.                                                             <td class=\"alignright \"><span class=\"montant\">{{prix}}</span> TND</td>
  789.                                                         </tr>
  790.                                                     </tbody></table>
  791.                                                 </td>
  792.                                             </tr>
  793.                                         </tbody></table>
  794.                                     </td>
  795.                                 </tr>
  796.                                   <tr>
  797.                         <td colspan=\"4\">
  798.                     {% if ret is defined %}
  799.     {% if ret is not empty %}
  800.         <div class=\"alert alert-danger\" style=\"    text-align: left;
  801.     color: black;\"> {{ ret }}</div>
  802.     {% endif %}
  803. {% endif %}
  804.                 {% if success is defined %}
  805.    {% if success is not empty %}
  806.                 <div class=\"alert alert-success\" style=\"text-align: left;
  807.                      color: black;\"> {{ success }}</div>
  808.                  {% endif %}
  809.                 {% endif %}
  810.                 {% if success is not defined or success is empty %}
  811.                         <form method=\"post\" action=\"/virementsend/{{id}}/{{idprix}}/{{sup}}\" enctype=\"multipart/form-data\">
  812.                                 <label style=\"float:left\">Téléchargez le reçu de virement bancaire ici pour RIB  : <b>07074013210550067594</b> </label>
  813.                                 <input type=\"file\" name=\"receipt\" class=\"form-control\" />
  814.                                 <button class=\"btn btn-info float-right m-3\" style=\"float:right\">Suivant</button>
  815.                         </form>
  816.                     {% endif %}
  817.                         </td>
  818.                         
  819.                         </tr>
  820.                             </tbody></table>
  821.                         </td>
  822.                     </tr>
  823.                 </tbody></table>
  824.                     {% if success is defined %}
  825.                 {% if success is not empty %}
  826.                 <button class=\"btn btn-info\" style=\"float:right\" id=\"download\">Télécharger</button>
  827.                  {% endif %}
  828.                 {% endif %}
  829.              <script>
  830.         document.getElementById('download').addEventListener('click', function () {
  831.             // Sélectionne l'élément HTML à convertir en PDF
  832.             const element = document.getElementById('download-r');
  833.             // Options de configuration pour html2pdf
  834.             const opt = {
  835.                 margin:       1,
  836.                 filename:     'document-paiment-astp.pdf',
  837.                 image:        { type: 'jpeg', quality: 0.98 },
  838.                 html2canvas:  { scale: 2 },
  839.                 jsPDF:        { unit: 'in', format: 'letter', orientation: 'portrait' }
  840.             };
  841.             // Conversion de l'élément en PDF
  842.             html2pdf().from(element).set(opt).save();
  843.         });
  844.     </script>
  845.                 
  846.                 <div class=\"footer\">
  847.                     <table width=\"100%\">
  848.                         <tbody><tr>
  849.                             <td class=\"aligncenter content-block\">Questions? Téléphone <a href=\"mailto:\">+216 97 054 316</a></td>
  850.                         </tr>
  851.                         <tr>
  852.                        
  853.                         
  854.                         </tr>
  855.                     </tbody></table>
  856.                 </div></div>
  857.         </td>
  858.         <td></td>
  859.     </tr>
  860. </tbody></table>
  861.                         </div>  
  862.                    </div>
  863. \t\t\t\t</div>
  864. \t\t\t</div>
  865. \t\t</div>
  866. \t\t<!-- /SECTION: Event Description
  867. \t\t================================================== -->
  868. \t\t<!-- SECTION: Event Schedule
  869. \t\t================================================== -->
  870. \t</div>
  871.     </div>\t
  872. {% include ('includes/footer.html.twig') %}
  873. </body>
  874. </html>""paiment/virement.html.twig""/var/www/vhosts/astp.tn/httpdocs/templates/paiment/virement.html.twig");
  875.     }
  876. }