templates/detailEvenement/index.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     {% include ('includes/head.html.twig') %}
  4.     <link href="https://cdn.rawgit.com/harvesthq/chosen/gh-pages/chosen.min.css" rel="stylesheet"/>
  5.     <style>
  6.     
  7.             .fa-spinner{display:none}
  8.     </style>
  9.     <body>
  10.         <!-- Page Loader
  11.         ========================================================= -->
  12.         <div class="loader-container" id="page-loader">
  13.             <div class="loading-wrapper loading-wrapper-hide">
  14.                 <div class="loader-animation" id="loader-animation">
  15.                     <svg class="svg-loader" width="100" height="100">
  16.                         <circle cx="50" cy="50" r="25"/>
  17.                     </svg>
  18.                 </div>
  19.                 <!-- Edit With Your Name -->
  20.                 <div class="loader-name" id="loader-name">
  21.                     <img src="/img/loader-logo.png" alt="">
  22.                 </div>
  23.                 <!-- /Edit With Your Name -->
  24.                 <!-- Edit With Your Job -->
  25.                 <p class="loader-job" id="loader-job">June 4-8 2016 @ New York City</p>
  26.                 <!-- /Edit With Your Job -->
  27.             </div>
  28.         </div>
  29.         <!-- /End of Page loader
  30.         ========================================================= -->
  31.         <!-- Header
  32.         ================================================== -->
  33.         <style>
  34.             #header {
  35.                 background-color: #3e4651 !important;
  36.             }
  37.             .inscription,
  38.             .connexion {
  39.                 display: none
  40.             }
  41.             .prix {
  42.                 display: none
  43.             }
  44.             .prix .row .col-lg-3:hover {
  45.                 background: #2d8ea4;
  46.                 color: white;
  47.                 border: 0 !important;
  48.                 cursor: pointer
  49.             }
  50.             .prix .row .col-lg-3:hover h4 {
  51.                 color: white
  52.             }
  53.             .prix .row .col-lg-3:hover h1 {
  54.                 color: white
  55.             }
  56.             .prd .col-lg-3:hover{cursor:pointer}
  57.         </style>
  58.         {% include ('includes/header.html.twig') %}
  59.         <!-- /Header
  60.         ================================================== -->
  61.         <style>
  62.             type="text/css"
  63.             .main-intro:before {
  64.                 content: '';
  65.                 display: block;
  66.                 width: 100%;
  67.                 height: 100%;
  68.                 background: none;
  69.                 position: absolute;
  70.                 top: 0;
  71.                 left: 0;
  72.                 opacity: 1;
  73.             }
  74.         </style>
  75.         <div class="page-wrapper">
  76.             <div id="body-content">
  77.                 
  78.                 <div class="" id="section-register" style="margin-top:7%;min-height:800px;background:white">
  79.                         {% if (sessionHas == 0)  %}
  80.                     
  81.                     <div class="section-prices section-padding section-bg-left" id="section-prices" style="background:none">
  82.                         <div
  83.                             class="container ">
  84.                             <!-- Section title -->
  85.                             <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  86.                                 <div class="modal-dialog" role="document">
  87.                                     <div class="modal-content">
  88.                                         <div class="modal-body" style="color:white">
  89.                                             <center>
  90.                                                 Connexion avec success</center>
  91.                                         </div>
  92.                                     </div>
  93.                                 </div>
  94.                             </div>
  95.                             <!-- /Section title -->
  96.                             <!-- Princing Tickets -->
  97.                             <div
  98.                                 class="row button-login-register">
  99.                                     
  100.                                     
  101.                                 <!-- item -->
  102.                                 <div
  103.                                     class="col-sm-6" style="display:none">
  104.                                     <!-- price ticket -->
  105.                                     <a href="#" class="price-ticket-item connexion-class">
  106.                                         <div
  107.                                             class="price-ticket-item-wrapper">
  108.                                             <!-- Front card -->
  109.                                             <div class="price-ticket-item-front">
  110.                                                 <div
  111.                                                     class="price-ticket-item-border">
  112.                                                     <!-- row -->
  113.                                                     <div
  114.                                                         class="row">
  115.                                                         <!-- col -->
  116.                                                         <div class="price-ticket-buy">
  117.                                                             <p class="ticket-item-buy-ico">
  118.                                                                 <i class="fa fa-ticket"></i>
  119.                                                             </p>
  120.                                                             <h3 class="ticket-item-buy-text">Inscription au congrès</h3>
  121.                                                             <p>
  122.                                                                 <i></i>
  123.                                                             </p>
  124.                                                         </div>
  125.                                                         <!-- /col -->
  126.                                                     </div>
  127.                                                     <!-- /row -->
  128.                                                 </div>
  129.                                             </div>
  130.                                             <!-- /front-card -->
  131.                                             <!-- Back Card -->
  132.                                             <div class="price-ticket-item-back">
  133.                                                 <div class="price-ticket-item-border">
  134.                                                     <div class="price-ticket-buy">
  135.                                                         <p class="ticket-item-buy-ico">
  136.                                                             <i class="fa fa-ticket"></i>
  137.                                                         </p>
  138.                                                         <h3 class="ticket-item-buy-text">Inscription au congrès</h3>
  139.                                                         <p>
  140.                                                             <i></i>
  141.                                                         </p>
  142.                                                     </div>
  143.                                                 </div>
  144.                                             </div>
  145.                                             <!-- /Back Card -->
  146.                                         </div>
  147.                                     </a>
  148.                                     <!-- /price ticket -->
  149.                                 </div>
  150.                                 <div
  151.                                     class="col-sm-6 inscription-class" style="display:none">
  152.                                     <!-- price ticket -->
  153.                                     <a href="#" class="price-ticket-item">
  154.                                         <div
  155.                                             class="price-ticket-item-wrapper">
  156.                                             <!-- Front card -->
  157.                                             <div class="price-ticket-item-front">
  158.                                                 <div
  159.                                                     class="price-ticket-item-border">
  160.                                                     <!-- row -->
  161.                                                     <div
  162.                                                         class="row">
  163.                                                         <!-- col -->
  164.                                                         <div class="price-ticket-buy">
  165.                                                             <p class="ticket-item-buy-ico">
  166.                                                                 <i class="fa fa-ticket"></i>
  167.                                                             </p>
  168.                                                             <h3 class="ticket-item-buy-text">Devenir nouveau membre (gratuit)</h3>
  169.                                                         </div>
  170.                                                         <!-- /col -->
  171.                                                     </div>
  172.                                                     <!-- /row -->
  173.                                                 </div>
  174.                                             </div>
  175.                                             <!-- /front-card -->
  176.                                             <!-- Back Card -->
  177.                                             <div class="price-ticket-item-back">
  178.                                                 <div class="price-ticket-item-border">
  179.                                                     <div class="price-ticket-buy">
  180.                                                         <p class="ticket-item-buy-ico">
  181.                                                             <i class="fa fa-ticket"></i>
  182.                                                         </p>
  183.                                                         <h3 class="ticket-item-buy-text">Devenir nouveau membre (gratuit)</h3>
  184.                                                         <p>
  185.                                                             <i></i>
  186.                                                         </p>
  187.                                                     </div>
  188.                                                 </div>
  189.                                             </div>
  190.                                             <!-- /Back Card -->
  191.                                         </div>
  192.                                     </a>
  193.                                     <!-- /price ticket -->
  194.                                 </div>
  195.                                 <!-- /item -->
  196.                             <!-- item -->
  197.                                 <!-- /item -->
  198.                                 <!-- /item -->
  199.                             </div>
  200.                             <!-- /Princing Tickets -->
  201.                         </div>
  202.                     </div>
  203.                     {% elseif  app.session.get('typesendpaiment') is  empty %}
  204.                     <script>
  205.                     choixChange(1);
  206.                     </script>
  207.                          <div class="container text-center">
  208.                                  <h2>Merci de faire votre choix :</h2>
  209.                                 <button class="btn btn-info" onclick="choixChange(1);">Professionnel</button>
  210.                                 <button class="btn btn-info" onclick="choixChange(2);">Étudiant</button>
  211.                          </div>
  212.                     
  213.                     {% else %}
  214.                     
  215.                     <style>
  216.                         @import url("https://fonts.googleapis.com/css?family=Montserrat");
  217. .pricing-table{
  218.   background-color: #eee;
  219.   font-family: 'Montserrat', sans-serif;
  220. }
  221. .pricing-table .block-heading {
  222.   padding-top: 50px;
  223.   margin-bottom: 40px;
  224.   text-align: center; 
  225. }
  226. .pricing-table .block-heading h2 {
  227.   color: #3b99e0;
  228. }
  229. .pricing-table .block-heading p {
  230.   text-align: center;
  231.   max-width: 420px;
  232.   margin: auto;
  233.   opacity: 0.7; 
  234. }
  235. .pricing-table .heading {
  236.   text-align: center;
  237.   padding-bottom: 10px;
  238.   border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
  239. }
  240. .pricing-table .item {
  241.   background-color: #ffffff;
  242.   box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.075);
  243.   border-top: 2px solid #5ea4f3;
  244.   padding: 30px;
  245.   overflow: hidden;
  246.   position: relative; 
  247. }
  248. .pricing-table .col-md-5:not(:last-child) .item {
  249.   margin-bottom: 30px; 
  250. }
  251. .pricing-table .item button {
  252.   font-weight: 600; 
  253. }
  254. .pricing-table .ribbon {
  255.   width: 160px;
  256.   height: 32px;
  257.   font-size: 12px;
  258.   text-align: center;
  259.   color: #fff;
  260.   font-weight: bold;
  261.   box-shadow: 0px 2px 3px rgba(136, 136, 136, 0.25);
  262.   background: #4dbe3b;
  263.   transform: rotate(45deg);
  264.   position: absolute;
  265.   right: -42px;
  266.   top: 20px;
  267.   padding-top: 7px; 
  268. }
  269. .pricing-table .item p {
  270.   text-align: center;
  271.   margin-top: 20px;
  272.   opacity: 0.7; 
  273. }
  274. .pricing-table .features .feature {
  275.   font-weight: 600; }
  276. .pricing-table .features h4 {
  277.   text-align: center;
  278.   font-size: 18px;
  279.   padding: 5px; 
  280. }
  281. .pricing-table .price h4 {
  282.   margin: 15px 0;
  283.   font-size: 45px;
  284.   text-align: center;
  285.   color: #2288f9; 
  286. }
  287. .pricing-table .buy-now button {
  288.   text-align: center;
  289.   margin: auto;
  290.   font-weight: 600;
  291.   padding: 9px 0; 
  292. }
  293.                     </style>
  294.                     {% if nb<60 %}
  295.                         <section class="pricing-table">
  296.             <div class="container">
  297.                 <div class="block-heading">
  298.                     <h2>Liste de prix</h2>
  299.                     <p>liste de prix Ă©venement</p>        
  300.                 </div>
  301.                 <div class="row justify-content-md-center" >
  302.         {% if app.session.get('message-success') is not empty %}
  303.     <div class="alert alert-success" style="display:none">
  304.         {{ app.session.get('message-success') }}
  305.     </div>
  306.     {% set _ = app.session.remove('message-success') %}
  307. {% endif %}
  308.                     {% set i = 0 %}
  309.                  {% for t in tab %}
  310.                  {% set i = i + 1 %}
  311.         
  312.                             
  313.                 
  314.                     <div class="col-md-6 col-lg-4" style="margin-top:2%">
  315.             
  316.                         <div class="item" style="min-height:450px">
  317.                             <div class="heading">
  318.                                 {% if prix ==0 %}
  319.                                 <h3>{{ t.titre|e }}</h3>
  320.                                 {% else %}
  321.                                         <h3>    {{ t.titre|e }} </h3>
  322.                                 {% endif %}
  323.                                 
  324.                             </div>
  325.                             <p>Detail</p>
  326.                             <div class="features">
  327.                                 <h4><span class="feature">
  328.                                 {% if prix ==0 %}
  329.                                 {{ t.titre|e }} 
  330.                                 {% else %}
  331.                                          {{t.prix}} TND + 20 TND AdhĂ©sion
  332.                                 {% endif %}
  333.                                 
  334.                                 </h4>
  335.                                 {% if t.id_evenement == 19  %}
  336.                                     
  337.                                 {% if   t.id_prix == 75   or t.id_prix == 78 %}
  338.                                     <ul>
  339.                                         <li>
  340.                                             <input type="radio" class="checkbox{{i}} ad1" name="r{{i}}" onclick="addS1({{t.id_prix}},60,{{i}},{{t.id_evenement}},{{t.prix}});" value="R"> SupplĂ©ment single 60 TND 
  341.                                         </li>
  342.                                         <li>
  343.                                             <input type="radio" class="checkbox2{{i}} ad2" name="r{{i}}" onclick="addS2({{t.id_prix}},145,{{i}},{{t.id_evenement}},{{t.prix}});" value="R"> Acompagnant en pension complète 145 TND <br>
  344.                                             <i style="color:black;font-size:11px;font-weight: 600;">Choisis le nombre d'accompagnants</i>
  345.                                             <input type="Number" class="form-control accompangnt" placeholder="Nombre acompagnant" value="0" aria-label="Username" aria-describedby="basic-addon1" disabled>
  346.                                             
  347.                                         </li>
  348.                                         <li style="margin-top:3%">
  349.                                         
  350.                                             <i style="color:black;font-size:11px;font-weight: 600;">Choisis le nombre d'enfants (Ă¢gĂ©s de 2 Ă  12 ans). 75 Tnd</i>
  351.                                             <input type="Number" class="form-control enfantanis" placeholder="Nombre des enfants" value="0"  aria-describedby="basic-addon1">
  352.                                         </li>
  353.                                         <li>
  354.                                             <input type="radio" class="checkbox2{{i}} ad3" name="r{{i}}" onclick="addS2({{t.id_prix}},0,{{i}},{{t.id_evenement}},{{t.prix}});" value="R"> Aucun choix
  355.                                         </li>
  356.                                         <!--<li>
  357.                                             <input type="radio" class="checkbox2{{i}}" name="r{{i}}" onclick="addS2({{t.id_prix}},0,{{i}},{{t.id_evenement}},{{t.prix}});" value="R" checked> Aucun
  358.                                         </li>-->
  359.                                         <!--<li style="display:none">
  360.                                             <input type="checkbox" class="checkbox3{{i}}" name="r{{i}}" onclick="addS3({{t.id_prix}},57.5,{{i}},{{t.id_evenement}},{{t.prix}});" > Enfants -12 ans  57.5 TND
  361.                                         </li>-->
  362.                                         
  363.                                         
  364.                                         </ul>
  365.                             
  366.                                         {% elseif t.id_prix == 67 %}
  367.                                                     <ul>
  368.                                                 <li>
  369.                                                     <input type="radio" class="checkbox{{i}}" name="r{{i}}" onclick="addS1({{t.id_prix}},65,{{i}},{{t.id_evenement}},{{t.prix}});" value="R"> SupplĂ©ment single 65 TND 
  370.                                                 </li>
  371.                                                 
  372.                                                 <li>
  373.                                                     <input type="radio" class="checkbox2{{i}}" name="r{{i}}" onclick="addS2({{t.id_prix}},0,{{i}},{{t.id_evenement}},{{t.prix}});" value="R" checked> Aucun
  374.                                                 </li>
  375.                                                 
  376.                                             </ul>
  377.                                         {% else %}
  378.                                         
  379.                                         {% endif %}
  380.                         {% endif %}
  381. {% if t.id_evenement == 18  %}
  382.                                     
  383.                                 {% if t.id_prix == 69 or t.id_prix == 70 or t.id_prix == 71  or t.id_prix == 72 %}
  384.                                     
  385.                                         {% elseif t.id_prix == 67 %}
  386.                                                     <ul>
  387.                                                 <li>
  388.                                                     <input type="radio" class="checkbox{{i}}" name="r{{i}}" onclick="addS1({{t.id_prix}},65,{{i}},{{t.id_evenement}},{{t.prix}});" value="R"> SupplĂ©ment single 65 TND 
  389.                                                 </li>
  390.                                                 
  391.                                                 <li>
  392.                                                     <input type="radio" class="checkbox2{{i}}" name="r{{i}}" onclick="addS2({{t.id_prix}},0,{{i}},{{t.id_evenement}},{{t.prix}});" value="R" checked> Aucun
  393.                                                 </li>
  394.                                                 
  395.                                             </ul>
  396.                                         {% else %}
  397.                                         
  398.                                         {% endif %}
  399.                         {% endif %}
  400.                             </div>
  401.                             <div class="price price{{i}}">
  402.                             <h4>{{ (t.prix + prix) | e }} TND</h4>
  403.                             </div>
  404.                             <!--<div class="alert alert-danger" role="alert">
  405.                             Le serveur de paiement sĂ©curisĂ© par carte bancaire nationale est momentanĂ©ment indisponible, veuillez rĂ©essayer plus tard.
  406. </div>-->
  407.                             {% if autre == 1%}
  408.                             
  409.                         <!--<a href="/paiment/{{t.id_evenement|e}}/{{t.id_prix|e}}/autre/x" class="btn btn-block btn-outline-primary" type="submit">Finaliser le paiement<i class="fa fa-arrow-right" aria-hidden="true"></i></a>-->
  410. <a href="/paiment/facturation/{{t.id_evenement|e}}/{{t.id_prix|e}}/autre/x" class="btn btn-block btn-outline-primary aap{{i}}" type="submit">Paiement sur place <i class="fa fa-arrow-right" aria-hidden="true"></i></a>
  411.                             {% else %}
  412.                             <!-- Trigger the modal with a button -->
  413. <!-- Modal -->
  414. <div id="myModal" class="modal fade" role="dialog" style="  background: rgba(0, 0, 0, 0.5);z-index:545454545454">
  415.   <div class="modal-dialog">
  416.     <!-- Modal content-->
  417.     <div class="modal-content" style="background: white;width:auto;left:40%;top:60%;z-index:55">
  418.       <div class="modal-header">
  419. <style>
  420. .anisawadni table td {
  421.     vertical-align: top;
  422. }
  423. .anisawadni .body-wrap {
  424.     background-color: #f6f6f6;
  425.     width: 100%;
  426. }
  427. .anisawadni .container {
  428.     display: block !important;
  429.     max-width: 600px !important;
  430.     margin: 0 auto !important;
  431.     /* makes it centered */
  432.     clear: both !important;
  433. }
  434. .anisawadni .content {
  435.     max-width: 600px;
  436.     margin: 0 auto;
  437.     display: block;
  438.     padding: 20px;
  439. }
  440. /* -------------------------------------
  441.     HEADER, FOOTER, MAIN
  442. ------------------------------------- */
  443. .anisawadni .main {
  444.     background: #fff;
  445.     border: 1px solid #e9e9e9;
  446.     border-radius: 3px;
  447. }
  448. .anisawadni .content-wrap {
  449.     padding: 20px;
  450. }
  451. .anisawadni .content-block {
  452.     padding: 0 0 20px;
  453. }
  454. .anisawadni .header {
  455.     width: 100%;
  456.     margin-bottom: 20px;
  457. }
  458. .anisawadni .footer {
  459.     width: 100%;
  460.     clear: both;
  461.     color: #999;
  462.     padding: 20px;
  463. }
  464. .anisawadni  .footer a {
  465.     color: #999;
  466. }
  467. .anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
  468.     font-size: 12px;
  469. }
  470. /* -------------------------------------
  471.     TYPOGRAPHY
  472. ------------------------------------- */
  473. .anisawadni h1, h2, h3 {
  474.     font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  475.     color: #000;
  476.     margin: 40px 0 0;
  477.     line-height: 1.2;
  478.     font-weight: 400;
  479. }
  480. .anisawadni h1 {
  481.     font-size: 32px;
  482.     font-weight: 500;
  483. }
  484. .anisawadni h2 {
  485.     font-size: 24px;
  486. }
  487. .anisawadni h3 {
  488.     font-size: 18px;
  489. }
  490. .anisawadni h4 {
  491.     font-size: 14px;
  492.     font-weight: 600;
  493. }
  494. .anisawadni p, ul, ol {
  495.     margin-bottom: 10px;
  496.     font-weight: normal;
  497. }
  498. .anisawadni p li, ul li, ol li {
  499.     margin-left: 5px;
  500.     list-style-position: inside;
  501. }
  502. /* -------------------------------------
  503.     LINKS & BUTTONS
  504. ------------------------------------- */
  505. .anisawadni a {
  506.     color: #1ab394;
  507.     text-decoration: underline;
  508. }
  509. .anisawadni .btn-primary {
  510.     text-decoration: none;
  511.     color: #FFF;
  512.     background-color: #1ab394;
  513.     border: solid #1ab394;
  514.     border-width: 5px 10px;
  515.     line-height: 2;
  516.     font-weight: bold;
  517.     text-align: center;
  518.     cursor: pointer;
  519.     display: inline-block;
  520.     border-radius: 5px;
  521.     text-transform: capitalize;
  522. }
  523. /* -------------------------------------
  524.     OTHER STYLES THAT MIGHT BE USEFUL
  525. ------------------------------------- */
  526. .anisawadni .last {
  527.     margin-bottom: 0;
  528. }
  529. .anisawadni .first {
  530.     margin-top: 0;
  531. }
  532. .anisawadni .aligncenter {
  533.     text-align: center;
  534. }
  535. .anisawadni .alignright {
  536.     text-align: right;
  537. }
  538. .anisawadni .alignleft {
  539.     text-align: left;
  540. }
  541. .anisawadni .clear {
  542.     clear: both;
  543. }
  544. /* -------------------------------------
  545.     ALERTS
  546.     Change the class depending on warning email, good email or bad email
  547. ------------------------------------- */
  548. .anisawadni .alert {
  549.     font-size: 16px;
  550.     color: #fff;
  551.     font-weight: 500;
  552.     padding: 20px;
  553.     text-align: center;
  554.     border-radius: 3px 3px 0 0;
  555. }
  556. .anisawadni .alert a {
  557.     color: #fff;
  558.     text-decoration: none;
  559.     font-weight: 500;
  560.     font-size: 16px;
  561. }
  562. .anisawadni .alert.alert-warning {
  563.     background: #f8ac59;
  564. }
  565. .anisawadni .alert.alert-bad {
  566.     background: #ed5565;
  567. }
  568. .anisawadni .alert.alert-good {
  569.     background: #1ab394;
  570. }
  571. /* -------------------------------------
  572.     INVOICE
  573.     Styles for the billing table
  574. ------------------------------------- */
  575. .anisawadni .invoice {
  576.     margin: 40px auto;
  577.     text-align: left;
  578.     width: 80%;
  579. }
  580. .anisawadni .invoice td {
  581.     padding: 5px 0;
  582. }
  583. .anisawadni .invoice .invoice-items {
  584.     width: 100%;
  585. }
  586. .anisawadni .invoice .invoice-items td {
  587.     border-top: #eee 1px solid;
  588. }
  589. .anisawadni .invoice .invoice-items .total td {
  590.     border-top: 2px solid #333;
  591.     border-bottom: 2px solid #333;
  592.     font-weight: 700;
  593. }
  594. /* -------------------------------------
  595.     RESPONSIVE AND MOBILE FRIENDLY STYLES
  596. ------------------------------------- */
  597. @media only screen and (max-width: 640px) {
  598.    .anisawadni  h1, h2, h3, h4 {
  599.         font-weight: 600 !important;
  600.         margin: 20px 0 5px !important;
  601.     }
  602.    .anisawadni  h1 {
  603.         font-size: 22px !important;
  604.     }
  605.     .anisawadni h2 {
  606.         font-size: 18px !important;
  607.     }
  608.     .anisawadni h3 {
  609.         font-size: 16px !important;
  610.     }
  611.     .anisawadni .container {
  612.         width: 100% !important;
  613.     }
  614.     .anisawadni .content, .content-wrap {
  615.         padding: 10px !important;
  616.     }
  617.     .anisawadni .invoice {
  618.         width: 100% !important;
  619.     }
  620. }
  621. </style>
  622.     <table class="anisawadni body-wrap">
  623.     <tbody><tr>
  624.         <td></td>
  625.         <td class="container" width="600">
  626.             <div class="content"><br><br><br>
  627.              <h4 class="modal-title" style="border-bottom: 0px solid #ccc;">Finaliser le paiement</h4>
  628.                 <table class="main" width="100%" cellpadding="0" cellspacing="0">
  629.                     <tbody><tr>
  630.                         <td class="content-wrap aligncenter">
  631.                             <table width="100%" cellpadding="0" cellspacing="0">
  632.                                 <tbody><tr>
  633.                                     <td class="content-block">
  634.                                         <h2>ASTP</h2>
  635.                                     </td>
  636.                                 </tr>
  637.                                 <tr>
  638.                                     <td class="content-block">
  639.                                         <table class="invoice">
  640.                                             <tbody>
  641.                                             
  642.                                             <tr>
  643.                                                 <td>
  644.                                                     <table class="invoice-items" cellpadding="0" cellspacing="0">
  645.                                                         <tbody><tr>
  646.                                                             <td>Nom et prĂ©nom </td>
  647.                                                             <td class="alignright">{{ app.session.get('nom') }} {{ app.session.get('prenom') }}</td>
  648.                                                         </tr>
  649.                                                         <tr>
  650.                                                             <td>Email</td>
  651.                                                             <td class="alignright">{{ app.session.get('emailSend') }}</td>
  652.                                                         </tr>
  653.                                                          <tr>
  654.                                                             <td>TĂ©lĂ©phone</td>
  655.                                                             <td class="alignright">{{ app.session.get('phone') }}</td>
  656.                                                         </tr>
  657.                                                            <tr>
  658.                                                             <td>Type</td>
  659.                                                             <td class="alignright">{{ app.session.get('type') }}</td>
  660.                                                         </tr>
  661.                                                            <tr>
  662.                                                             <td>Fonction</td>
  663.                                                             <td class="alignright">{{ app.session.get('fonction') }}</td>
  664.                                                         </tr>
  665.                                                         
  666.                                                         <tr class="total">
  667.                                                             <td class="alignright" width="80%">Total</td>
  668.                                                             <td class="alignright "><span class="montant">36.00</span> TND</td>
  669.                                                         </tr>
  670.                                                     </tbody></table>
  671.                                                 </td>
  672.                                             </tr>
  673.                                         </tbody></table>
  674.                                     </td>
  675.                                 </tr>
  676.                              
  677.                             </tbody></table>
  678.                         </td>
  679.                     </tr>
  680.                 </tbody></table>
  681.                 <div class="footer">
  682.                     <table width="100%">
  683.                         <tbody><tr>
  684.                             <td class="aligncenter content-block">Questions? TĂ©lĂ©phone <a href="mailto:">+216 97 054 316</a></td>
  685.                         </tr>
  686.                     </tbody></table>
  687.                 </div></div>
  688.         </td>
  689.         <td></td>
  690.     </tr>
  691. </tbody></table>
  692.         <button type="button" class="close" data-dismiss="modal">&times;</button>
  693.        
  694.       </div>
  695.       <div class="modal-body bod">
  696.      
  697.       </div>
  698.    
  699.     </div>
  700.   </div>
  701. </div>
  702.                         <button class="btn click" style="display:none" data-toggle="modal" data-target="#myModal">aa</button>
  703.                         <button lien="/paiment/{{t.id_evenement|e}}/{{t.id_prix|e}}/0" prix="{{t.prix}}" data-toggle="modal" data-target="#myModal" class="btn btn-block btn-outline-primary aal{{i}}" type="submit"  id="mylink" onclick="anul({{i}},{{t.id_prix}});" >Finaliser le paiement<i class="fa fa-arrow-right" aria-hidden="true"></i></button>
  704.                         <button lien="/virement/{{t.id_evenement|e}}/{{t.id_prix|e}}" prix="{{t.prix}}" data-toggle="modal" data-target="#myModal" class="btn btn-block btn-outline-primary aalc{{i}}" type="submit"  id="mylink" onclick="anul({{i}},{{t.id_prix}});" style="display:none">virement bancaire <i class="fa fa-arrow-right" aria-hidden="true"></i></button>
  705.                             {% endif %}
  706.                         </div>
  707.                     </div>
  708.                 
  709.                       {% endfor %}
  710.                     
  711.                     
  712.                 </div>
  713.             </div>
  714.         </section>
  715.         {% else %}
  716.         <div class="alert alert-danger" role="alert">
  717.             Cette formation est complet
  718.           </div>
  719.         {% endif %}
  720.         
  721.                     {% endif %}
  722.                     <div class="container">
  723.                         {% if sessionHas == 5 %}
  724.                         <div class="row">
  725.                             <!-- Left Column -->
  726.                             <!-- /Left Column -->
  727.                             <!-- Right Column -->
  728.                                 <div class="col-lg-12"> <div class="alert alert-primary" role="alert"></div>
  729.                             </div>
  730.                             <div class="col-lg-6">
  731.                                 <legend>Login</legend>
  732.                                                                     
  733.                                 <div class="erreur" style="color:red"></div>
  734.                                 
  735.                                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" class="csrf">
  736.                                     <label for="username">Email</label>
  737.                                     <input type="text" class="form-control email" id="username" name="_username" value="" required="required" autocomplete="username">
  738.                                     <label for="password">Mot de passe</label>
  739.                                     <input type="password" class="form-control password" id="password" name="_password" required="required" autocomplete="current-password">
  740.                                     
  741.                                     <br>
  742.                                     
  743.                                     <div class="lds-ripple dispload"><div></div><div></div></div>
  744.                                     <button type="submit" id="_submit" name="_submit" class="btn btn-success connexion-button1"> Connexion <i class="fa fa-spinner fa-spin"></i></button>
  745.                                     
  746.                                     <!--<button class="btn btn-danger retour1" style="background:red !important">Retour</button>-->
  747.                                 
  748.                             </div>
  749.                             <div class="col-lg-6">
  750.                                 <legend>CrĂ©ation d'un nouveau compte (gratuit)</legend>
  751.                                     <div class="er-c" style="color:red">
  752.                                     </div>
  753.                                     <div id="fos_user_registration_form">
  754.                                         <div>
  755.                                             <label for="fos_user_registration_form_email" class="required">Email</label>
  756.                                             <input type="email" id="fos_user_registration_form_email" name="fos_user_registration_form[email]" class="form-control inscri_email" required="required">
  757.                                         </div>
  758.                                         <div>
  759.                                             <label for="fos_user_registration_form_username" class="required">Nom</label>
  760.                                             <input type="text" id="fos_user_registration_form_username" name="fos_user_registration_form[username]" class="form-control inscri_nom" required="required" maxlength="180" pattern=".{2,}"></div>
  761.                                         <div>
  762.                                         <div>
  763.                                             <label for="fos_user_registration_form_username" class="required">Prenom</label>
  764.                                             <input type="text" id="fos_user_registration_form_username" name="fos_user_registration_form[username]" class="form-control inscri_prenom" required="required" maxlength="180" pattern=".{2,}"></div>
  765.                                         <div>
  766.                                         <div>
  767.                                             <label for="fos_user_registration_form_username" class="required">Phone</label>
  768.                                             <input type="text" id="fos_user_registration_form_username" name="fos_user_registration_form[username]" class="form-control inscri_phone" required="required" maxlength="180" pattern=".{2,}"></div>
  769.                                         <div>
  770.                                             <label for="fos_user_registration_form_type" class="required">Type</label>
  771.                                             <select id="fos_user_registration_form_type" name="fos_user_registration_form[type]" class="form-control inscri_type">
  772.                                                 <option value="0">Étudiant en physiothĂ©rapie</option>
  773.                                                 <option value="1">PhysiothĂ©rapeute en secteur public</option>
  774.                                                         <option value="2">PhysiothĂ©rapeute de libre pratique</option>
  775.                                                                 <option value="3">PhysiothĂ©rapeute en secteur privĂ©</option>
  776.                                                 
  777.                                             </select>
  778.                                         </div>
  779.                                         <div>
  780.                                             <label for="fos_user_registration_form_plainPassword_first" class="required">Mot de passe</label>
  781.                                             <input type="password" id="fos_user_registration_form_plainPassword_first" class="form-control inscri_pass" name="fos_user_registration_form[plainPassword][first]" required="required" autocomplete="new-password">
  782.                                         </div>
  783.                                         <div>
  784.                                             <label for="fos_user_registration_form_plainPassword_second" class="required">Repeter mot de passe</label>
  785.                                             <input type="password" id="fos_user_registration_form_plainPassword_second" class="form-control" name="fos_user_registration_form[plainPassword][second]" required="required" autocomplete="new-password"></div>
  786.                                         <input type="hidden" id="fos_user_registration_form__token" name="fos_user_registration_form[_token]" value="{{ csrf_token('authenticate') }}" class="inscri_token">
  787.                                     </div>
  788.                                     <div>
  789.                                         <input type="submit" class="btn btn-success inscri" value="Register">
  790.                                         <!--<button class="btn btn-danger retour1" style="background:red !important">Retour</button>-->
  791.                                     </div>
  792.                                 
  793.                             </div>
  794.                         </div>
  795.                         
  796.                         
  797.                         {% endif %}
  798.                         <style>
  799.                         .rounded-lg {
  800.   border-radius: 1rem !important;
  801. }
  802. .text-small {
  803.   font-size: 0.9rem !important;
  804. }
  805. .custom-separator {
  806.   width: 5rem;
  807.   height: 6px;
  808.   border-radius: 1rem;
  809. }
  810. .text-uppercase {
  811.   letter-spacing: 0.2em;
  812. }
  813.                         </style>
  814.                         <div class="col-lg-12 prix">
  815.                             <div class="container py-5">
  816.                              <div class="row text-center align-items-end">
  817.                                      <div class="col-lg-4 mb-5 mb-lg-0">
  818.                                                 <div class="bg-white p-5 rounded-lg shadow">
  819.                                                 <h1 class="h6 text-uppercase font-weight-bold mb-4">Basic</h1>
  820.                                                 <h2 class="h1 font-weight-bold">$199<span class="text-small font-weight-normal ml-2">/ month</span></h2>
  821.                                                 <div class="custom-separator my-4 mx-auto bg-primary"></div>
  822.                                                 <ul class="list-unstyled my-5 text-small text-left">
  823.                                                     <li class="mb-3">
  824.                                                     <i class="fa fa-check mr-2 text-primary"></i> Lorem ipsum dolor sit amet</li>
  825.                                                     <li class="mb-3">
  826.                                                     <i class="fa fa-check mr-2 text-primary"></i> Sed ut perspiciatis</li>
  827.                                                     <li class="mb-3">
  828.                                                     <i class="fa fa-check mr-2 text-primary"></i> At vero eos et accusamus</li>
  829.                                                     <li class="mb-3 text-muted">
  830.                                                     <i class="fa fa-times mr-2"></i>
  831.                                                     <del>Nam libero tempore</del>
  832.                                                     </li>
  833.                                                     <li class="mb-3 text-muted">
  834.                                                     <i class="fa fa-times mr-2"></i>
  835.                                                     <del>Sed ut perspiciatis</del>
  836.                                                     </li>
  837.                                                     <li class="mb-3 text-muted">
  838.                                                     <i class="fa fa-times mr-2"></i>
  839.                                                     <del>Sed ut perspiciatis</del>
  840.                                                     </li>
  841.                                                 </ul>
  842.                                                 <a href="#" class="btn btn-primary btn-block p-2 shadow rounded-pill">Subscribe</a>
  843.                                                 </div>
  844.                                             </div>
  845.                              </div>
  846.                              </div>
  847.                         </div>
  848.                     </div>
  849.                 </div>
  850.                 <!-- SECTION: Register
  851.                         ================================================== -->
  852.             <!-- /SECTION: Register
  853.                     ================================================== -->
  854.                 <!-- SECTION: Location
  855.                         ================================================== -->
  856.                 <!-- /SECTION: Location
  857.                         ================================================== -->
  858.             </div>
  859.         </div>
  860.         <!-- Contact Form - Ajax Messages
  861.         ========================================================= -->
  862.         <!-- Form Sucess -->
  863.         <div class="form-result modal-wrap" id="contactSuccess">
  864.             <div class="modal-bg"></div>
  865.             <div class="modal-content">
  866.                 <h4 class="modal-title">
  867.                     <i class="fa fa-check-circle"></i>
  868.                     Success!</h4>
  869.                 <p>Your message has been sent to us.</p>
  870.             </div>
  871.         </div>
  872.         <!-- /Form Sucess -->
  873.         <!-- form-error -->
  874.         <div class="form-result modal-wrap" id="contactError">
  875.             <div class="modal-bg"></div>
  876.             <div class="modal-content">
  877.                 <h4 class="modal-title">
  878.                     <i class="fa fa-times"></i>
  879.                     Error</h4>
  880.                 <p>There was an error sending your message.</p>
  881.             </div>
  882.         </div>
  883.         <!-- /form-error -->
  884.         <!-- / Contact Form - Ajax Messages
  885.         ========================================================= -->
  886.         <button type="button " class="btn btn-primary click" data-toggle="modal" data-target="#exampleModal" style="display:none"></button>
  887.         <!-- Modal -->
  888.         <!-- Footer
  889.         ================================================== -->
  890.         {% include ('includes/footer.html.twig') %}
  891.     </body>
  892. </html>
  893. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  894. <script src="https://cdn.rawgit.com/harvesthq/chosen/gh-pages/chosen.jquery.min.js"></script>
  895. <script src="/js/evenement.js"></script>
  896. <script type="text/javascript">
  897. $(".connexion-button1").click(function(){
  898.     $(".fa-spinner").css("display","inline-block")
  899.     em=$(".email").val();
  900.     pass=$(".password").val();
  901.   $.post("/conneixonPaiment/",
  902.   {
  903.     email: em,
  904.     password: pass,
  905.     _csrf_token:"{{ csrf_token('authenticate') }}"
  906.   },
  907.   function(data, status){
  908.       if(data=="0")
  909.     {
  910.         $(".erreur").html("email ou mot de passe incorrecte ");
  911.         $(".fa-spinner").css("display","none")
  912.     }
  913.     else
  914.     {
  915.         $(".fa-spinner").css("display","none");
  916.         window.location.reload();
  917.     }
  918.   });
  919. });
  920. $(".send-button1").click(function(){
  921.     $(".fa-spinner").css("display","inline-block")
  922.     
  923.     phone=$(".phoneSend").val();
  924.   $.post("/conneixonPaimentPhone/",
  925.   {
  926.    
  927.     phone:phone,
  928.     _csrf_token:"{{ csrf_token('authenticate') }}"
  929.   },
  930.   function(data, status){
  931.         if(data=="-1")
  932.     {
  933.         $(".erreur").html("Le paiement pour l'Ă©vĂ©nement a dĂ©jĂ  Ă©tĂ© effectuĂ©.");
  934.         $(".fa-spinner").css("display","none")
  935.     }else if (data=="0")
  936.     {
  937.         $(".erreur").html("Ce numĂ©ro n'existe pas. Avez-vous Ă©tĂ© inscrit avant le paiement ?");
  938.         $(".fa-spinner").css("display","none")
  939.     }
  940.     else
  941.     {
  942.         $(".fa-spinner").css("display","none");
  943.         window.location.reload();
  944.     }
  945.   });
  946. });
  947. $(".inscri").click(function(){
  948.     
  949.     email=$(".inscri_email").val();
  950.     pass=$(".inscri_pass").val();
  951.     nom=$(".inscri_nom").val();
  952.     type=$(".inscri_type").val();
  953.     phone=$(".inscri_phone").val();
  954.     prenom=$(".inscri_prenom").val();
  955.     
  956.   $.post("/inscription/evenement/",
  957.   {
  958.     email: email,
  959.     password: pass,
  960.     nom: nom,
  961.     type: type,
  962.     phone:phone,
  963.     prenom:prenom,
  964.     _csrf_token:"{{ csrf_token('authenticate') }}"
  965.   },
  966.   function(data, status){
  967.     data=JSON.parse(data);
  968.     if(data['erreur'].length>0)
  969.     {
  970.             $(".er-c").html(data['erreur']);
  971.     }
  972.     else
  973.     {
  974.         window.location.reload();
  975.     }
  976.       
  977.   });
  978. });
  979. pricestatic=0;
  980. idddprice=0;
  981. function addS1(idprice,prixAdd,id,idEvent,price)
  982. {
  983.     if(idddprice==0)
  984.     {
  985.         idddprice=idprice;
  986.     }
  987.     else if(idddprice!=idprice)
  988.     {
  989.         pricestatic=0;
  990.     }
  991. checkbox=".checkbox"+id;
  992. checkbox3=".checkbox3"+id;
  993.     priceClass=".price"+id+" h4";
  994.     if($(checkbox).is(':checked'))
  995.     {
  996.         aal=".aal"+id;
  997.         aap=".aap"+id;
  998.         
  999.         newprice = price+prixAdd;
  1000.         pricestatic=newprice;
  1001.             if($(checkbox3).is(':checked'))
  1002.         {
  1003.             newprice = newprice+57.5;
  1004.             pricestatic=newprice-57.5;
  1005.         }
  1006.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1007.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1008.         //$(aal).attr("href",url1);
  1009.         //$(aap).attr("href",url2);
  1010.     
  1011.     $(aal).attr("lien",url1);
  1012.         $(aap).attr("lien",url2);
  1013.         $(priceClass).html(newprice+" TND");
  1014.     }
  1015.     else
  1016.     {
  1017.         newprice = price;
  1018.         pricestatic=newprice;
  1019.         aal=".aal"+id;
  1020.         aap=".aap"+id;
  1021.             if(!$(checkbox3).is(':checked'))
  1022.         {
  1023.             newprice = newprice-57.5;
  1024.             pricestatic=newprice-57.5;
  1025.         }
  1026.         url1="/paiment/"+idEvent+"/"+price+"/"+prixAdd+"";
  1027.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1028.         //$(aal).attr("href",url1);
  1029.         //$(aap).attr("href",url2);
  1030.     
  1031.     $(aal).attr("lien",url1);
  1032.         $(aap).attr("lien",url2);
  1033.         $(priceClass).html(newprice+" TND");
  1034.         
  1035.     }
  1036.     
  1037. }
  1038. function addS2(idprice,prixAdd,id,idEvent,price)
  1039. {
  1040.     if(idddprice==0)
  1041.     {
  1042.         idddprice=idprice;
  1043.     }
  1044.     else if(idddprice!=idprice)
  1045.     {
  1046.         pricestatic=0;
  1047.     }
  1048.     checkbox=".checkbox2"+id;
  1049.     priceClass=".price"+id+" h4";
  1050.     checkbox3=".checkbox3"+id;
  1051.     if($(checkbox).is(':checked'))
  1052.     {
  1053.         aal=".aal"+id;
  1054.         aap=".aap"+id;
  1055.         
  1056.         newprice = price+prixAdd;
  1057.         pricestatic=newprice;
  1058.         if($(checkbox3).is(':checked'))
  1059.         {
  1060.             newprice = newprice+57.5;
  1061.             pricestatic=newprice-57.5;
  1062.         }
  1063.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1064.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1065.         //$(aal).attr("href",url1);
  1066.         //$(aap).attr("href",url2);
  1067.         $(aal).attr("lien",url1);
  1068.         $(aap).attr("lien",url2);
  1069.         
  1070.         $(priceClass).html(newprice+" TND");
  1071.     }
  1072.     else
  1073.     {
  1074.         newprice = price;
  1075.         pricestatic=newprice;
  1076.         aal=".aal"+id;
  1077.         aap=".aap"+id;
  1078.         if(!$(checkbox3).is(':checked'))
  1079.         {
  1080.             newprice = newprice-57.5;
  1081.             pricestatic=newprice-57.5;
  1082.         }
  1083.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1084.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1085.         //$(aal).attr("href",url1);
  1086.         //$(aap).attr("href",url2);
  1087.         
  1088.         $(aal).attr("lien",url1);
  1089.         $(aap).attr("lien",url2);
  1090.         $(priceClass).html(newprice+" TND");
  1091.     }
  1092.     
  1093. }
  1094. function addS3(idprice,prixAdd,id,idEvent,price)
  1095. {
  1096.     if(idddprice==0)
  1097.     {
  1098.         idddprice=idprice;
  1099.     }
  1100.     else if(idddprice!=idprice)
  1101.     {
  1102.         pricestatic=0;
  1103.     }
  1104.     checkbox=".checkbox3"+id;
  1105.     checkbox1=".checkbox"+id;
  1106.     checkbox2=".checkbox2"+id;
  1107.     priceClass=".price"+id+" h4";
  1108.     if(!$(checkbox1).is(':checked') && !$(checkbox2).is(':checked'))
  1109.     {
  1110.         if($(checkbox).is(':checked'))
  1111.     {
  1112.         aal=".aal"+id;
  1113.         aap=".aap"+id;
  1114.         
  1115.         newprice = pricestatic+prixAdd+price;
  1116.         
  1117.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1118.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1119.         //$(aal).attr("href",url1);
  1120.         //$(aap).attr("href",url2);
  1121.         $(aal).attr("lien",url1);
  1122.         $(aap).attr("lien",url2);
  1123.         
  1124.         $(priceClass).html(newprice+" TND");
  1125.     }
  1126.     else
  1127.     {
  1128.         newprice =price;
  1129.         aal=".aal"+id;
  1130.         aap=".aap"+id;
  1131.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1132.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1133.         //$(aal).attr("href",url1);
  1134.         //$(aap).attr("href",url2);
  1135.         $(aal).attr("lien",url1);
  1136.         $(aap).attr("lien",url2);
  1137.         $(priceClass).html(newprice+" TND");
  1138.     }
  1139.     }else
  1140.     {
  1141.         if($(checkbox).is(':checked'))
  1142.     {
  1143.         aal=".aal"+id;
  1144.         aap=".aap"+id;
  1145.         
  1146.         newprice = pricestatic+prixAdd;
  1147.         
  1148.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1149.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1150.         //$(aal).attr("href",url1);
  1151.         //$(aap).attr("href",url2);
  1152.         $(aal).attr("lien",url1);
  1153.         $(aap).attr("lien",url2);
  1154.         
  1155.         $(priceClass).html(newprice+" TND");
  1156.     }
  1157.     else
  1158.     {
  1159.         newprice = pricestatic;
  1160.         aal=".aal"+id;
  1161.         aap=".aap"+id;
  1162.         url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
  1163.         url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdde+"";
  1164.         //$(aal).attr("href",url1);
  1165.         //$(aap).attr("href",url2);
  1166.         $(aal).attr("lien",url1);
  1167.         $(aap).attr("lien",url2);
  1168.         $(priceClass).html(newprice+" TND");
  1169.     }
  1170.     }
  1171.     
  1172. }
  1173. function anul(i,idprix)
  1174. {
  1175.     
  1176.     prix=".price"+i+" h4";
  1177.     prix=$(prix).html();
  1178.     prix = parseFloat(prix);
  1179.     sub=prix;
  1180.     ct=prix*10;
  1181.     ct=prix/10;
  1182.     prix=prix;
  1183.     adheren=0;
  1184.         
  1185.       
  1186.     
  1187.     vl=".aal"+i;
  1188.     vl2=".aalc"+i;
  1189.     
  1190.     
  1191.  ret="";
  1192.  ret+="<a href='"+$(vl).attr('lien')+"' class='btn'>Paiment en ligne </a>";
  1193.   ret+="<a href='"+$(vl2).attr('lien')+"' class='btn m-3' style='margin-left: 3%;'>Virement bancaire </a><br>";
  1194.  ret+=' <button type="button" class="btn btn-danger" style="background-color:red !important;display:none" data-dismiss="modal">Close</button>';
  1195.  $(".montant").html(prix);
  1196.  $(".bod").html(ret);
  1197.         
  1198. }
  1199. function choixChange(id)
  1200. {
  1201.     if(id ==1 || id==2)
  1202.     {
  1203.          $.post("/formulaire/evenementcongre",
  1204.   {
  1205.     id: id,
  1206.     
  1207.     _csrf_token:"{{ csrf_token('authenticate') }}"
  1208.   },
  1209.   function(data, status){
  1210.     data=JSON.parse(data);
  1211.     
  1212.     if(data['erreur'].length>0)
  1213.     {
  1214.             $(".er-c").html(data['erreur']);
  1215.     }
  1216.     else
  1217.     {
  1218.         window.location.reload();
  1219.     }
  1220.       
  1221.   });
  1222.     }
  1223. }
  1224. $(document).ready(function() {
  1225.     $(".accompangnt").on("input", function() {
  1226.         var valeurSaisie = $(this).val();
  1227.         var nombre = parseFloat(valeurSaisie);
  1228.         if (!isNaN(nombre) && nombre >= 0) {
  1229.             var onclickValue = $(".ad2").attr("onclick");
  1230.           var match = onclickValue.match(/addS2\((\d+),(\d+),(\d+),(\d+),(\d+)\)/);
  1231.                         if (match) {
  1232.                             var idPrix = match[1];
  1233.                             var param1 = match[2];
  1234.                             var param2 = match[3];
  1235.                             var param3 = match[4];
  1236.                             var param4 = match[5];
  1237.                             en = $(".enfantanis").val();
  1238.                             var val=0;
  1239.                             var newprix=0;
  1240.                             if(parseInt(en)>0)
  1241.                             {
  1242.                                  newprix=parseInt(en) * 75;
  1243.                                 
  1244.                             }
  1245.                            var  newprix2 = nombre * 145;
  1246.                         
  1247.                            val=newprix+newprix2;
  1248.                             var p = "addS2(" + idPrix + "," + val + "," + param2 + "," + param3 + "," + param4 + ");";
  1249.                         $(".ad2").attr("onclick", p);
  1250.                         $(".ad2").click();
  1251.                         } else {
  1252.                         }
  1253.         } else {
  1254.             
  1255.         }
  1256.     });
  1257.     });
  1258.     $(document).ready(function() {
  1259.     $(".enfantanis").on("input", function() {
  1260.                 var valeurSaisie = $(this).val();
  1261.                 var nombre = parseFloat(valeurSaisie);
  1262.         if (!isNaN(nombre) && nombre >= 0) {
  1263.                 if ($(".ad2").prop("checked")) {
  1264.                         var onclickValue = $(".ad2").attr("onclick");
  1265.                     var match = onclickValue.match(/addS2\((\d+),(\d+),(\d+),(\d+),(\d+)\)/);
  1266.                                     if (match) {
  1267.                                         var idPrix = match[1];
  1268.                                         var param1 = match[2];
  1269.                                         var param2 = match[3];
  1270.                                         var param3 = match[4];
  1271.                                         var param4 = match[5];
  1272.                                         
  1273.                                             var val = nombre * 75;
  1274.                                             val = val+145;    
  1275.                                             en = $(".accompangnt").val();
  1276.                             var val=0;
  1277.                             var newprix=0;
  1278.                             if(parseInt(en)>0)
  1279.                             {
  1280.                                  newprix=parseInt(en) * 145;
  1281.                                 
  1282.                             }
  1283.                            var  newprix2 = nombre * 75;
  1284.                         
  1285.                            val=newprix+newprix2;
  1286.                                     
  1287.                                     
  1288.                                         var p = "addS2(" + idPrix + "," + val + "," + param2 + "," + param3 + "," + param4 + ");";
  1289.                                     $(".ad2").attr("onclick", p);
  1290.                                     $(".ad2").click();
  1291.                                     } else {
  1292.                                     }
  1293.                     } else if ($(".ad1").prop("checked")) {
  1294.                     
  1295.                                 var onclickValue = $(".ad1").attr("onclick");
  1296.                                 var match = onclickValue.match(/addS1\((\d+),(\d+),(\d+),(\d+),(\d+)\)/);
  1297.                                                 if (match) {
  1298.                                                     var idPrix = match[1];
  1299.                                                     var param1 = match[2];
  1300.                                                     var param2 = match[3];
  1301.                                                     var param3 = match[4];
  1302.                                                     var param4 = match[5];
  1303.                                                     var val = nombre * 75;
  1304.                                                     if(nombre>0)
  1305.                                                     {
  1306.                                                             val =val +parseInt(60);
  1307.                                                     }else
  1308.                                                     {
  1309.                                                         val=60;
  1310.                                                     }
  1311.                                                 
  1312.                                                 
  1313.                                                     var p = "addS1(" + idPrix + "," + val + "," + param2 + "," + param3 + "," + param4 + ");";
  1314.                                                 $(".ad1").attr("onclick", p);
  1315.                                                 $(".ad1").click();    
  1316.                                             } else {
  1317.                                                 }
  1318.                             }
  1319.                             else if(!$(".ad1").prop("checked") && ! $(".ad2").prop("checked"))
  1320.                             {
  1321.                                 /****** lazemetni na7yha mara jaya */
  1322.                                 var c = $(".aal3").attr('lien');
  1323.                                 var enfant=nombre*75;
  1324.                                 var prixinitiale = $(".aal3").attr('prix');
  1325.                                 prixinitiale=parseInt(prixinitiale)+parseInt(enfant);
  1326.                                 $(".price3").html("<h4>"+prixinitiale+" Tnd</h4>");
  1327.                                 var parties = c.split('/');
  1328.                                 var dernierePartie = parties[parties.length - 1];
  1329.                                 var nouvelleValeur = prixinitiale;
  1330.                                 parties[parties.length - 1] = nouvelleValeur;
  1331.                                 var chaineModifiee = parties.join('/');
  1332.                                 console.log(chaineModifiee);
  1333.                                 $(".aal3").attr('lien',chaineModifiee)
  1334.                                 console.log(prixinitiale);
  1335.                             }
  1336.         
  1337.         } else {
  1338.         
  1339.             
  1340.         }
  1341.         
  1342.     });
  1343.     
  1344. });
  1345. ad1=0;
  1346. ad2=0;
  1347. function activerElement() {
  1348.     $(".accompangnt").prop("disabled", false);
  1349.       $(".enfantanis").prop("disabled", false);
  1350.       if(ad2!=1)
  1351.       {
  1352.     
  1353.         ad2=1;
  1354.         ad1=0;
  1355.         }else
  1356.       {
  1357.         ad2=1;
  1358.         ad1=0;
  1359.       }
  1360.     
  1361. }
  1362. function desactiverElement()
  1363. {
  1364.       $(".accompangnt").prop("disabled", true);
  1365.        $(".enfantanis").prop("disabled", false);
  1366.     
  1367.     
  1368.       if(ad1!=1)
  1369.       {
  1370.     
  1371.         ad2=0;
  1372.         ad1=1;
  1373.         }else
  1374.       {
  1375.         ad2=0;
  1376.         ad1=1;
  1377.       }
  1378. }
  1379. function desactiveall()
  1380. {
  1381.          $(".accompangnt").prop("disabled", true);
  1382.            $(".enfantanis").prop("disabled", false);
  1383.         
  1384.         ad2=0;
  1385.         ad1=0;
  1386.     
  1387. }
  1388. $(".ad2").click(activerElement);
  1389. $(".ad1").click(desactiverElement);
  1390. $(".ad3").click(desactiveall);
  1391. </script>