<!DOCTYPE html>
<html>
{% include ('includes/head.html.twig') %}
<link href="https://cdn.rawgit.com/harvesthq/chosen/gh-pages/chosen.min.css" rel="stylesheet"/>
<style>
.fa-spinner{display:none}
</style>
<body>
<!-- Page Loader
========================================================= -->
<div class="loader-container" id="page-loader">
<div class="loading-wrapper loading-wrapper-hide">
<div class="loader-animation" id="loader-animation">
<svg class="svg-loader" width="100" height="100">
<circle cx="50" cy="50" r="25"/>
</svg>
</div>
<!-- Edit With Your Name -->
<div class="loader-name" id="loader-name">
<img src="/img/loader-logo.png" alt="">
</div>
<!-- /Edit With Your Name -->
<!-- Edit With Your Job -->
<p class="loader-job" id="loader-job">June 4-8 2016 @ New York City</p>
<!-- /Edit With Your Job -->
</div>
</div>
<!-- /End of Page loader
========================================================= -->
<!-- Header
================================================== -->
<style>
#header {
background-color: #3e4651 !important;
}
.inscription,
.connexion {
display: none
}
.prix {
display: none
}
.prix .row .col-lg-3:hover {
background: #2d8ea4;
color: white;
border: 0 !important;
cursor: pointer
}
.prix .row .col-lg-3:hover h4 {
color: white
}
.prix .row .col-lg-3:hover h1 {
color: white
}
.prd .col-lg-3:hover{cursor:pointer}
</style>
{% include ('includes/header.html.twig') %}
<!-- /Header
================================================== -->
<style>
type="text/css"
.main-intro:before {
content: '';
display: block;
width: 100%;
height: 100%;
background: none;
position: absolute;
top: 0;
left: 0;
opacity: 1;
}
</style>
<div class="page-wrapper">
<div id="body-content">
<div class="" id="section-register" style="margin-top:7%;min-height:800px;background:white">
{% if (sessionHas == 0) %}
<div class="section-prices section-padding section-bg-left" id="section-prices" style="background:none">
<div
class="container ">
<!-- Section title -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body" style="color:white">
<center>
Connexion avec success</center>
</div>
</div>
</div>
</div>
<!-- /Section title -->
<!-- Princing Tickets -->
<div
class="row button-login-register">
<!-- item -->
<div
class="col-sm-6" style="display:none">
<!-- price ticket -->
<a href="#" class="price-ticket-item connexion-class">
<div
class="price-ticket-item-wrapper">
<!-- Front card -->
<div class="price-ticket-item-front">
<div
class="price-ticket-item-border">
<!-- row -->
<div
class="row">
<!-- col -->
<div class="price-ticket-buy">
<p class="ticket-item-buy-ico">
<i class="fa fa-ticket"></i>
</p>
<h3 class="ticket-item-buy-text">Inscription au congrès</h3>
<p>
<i></i>
</p>
</div>
<!-- /col -->
</div>
<!-- /row -->
</div>
</div>
<!-- /front-card -->
<!-- Back Card -->
<div class="price-ticket-item-back">
<div class="price-ticket-item-border">
<div class="price-ticket-buy">
<p class="ticket-item-buy-ico">
<i class="fa fa-ticket"></i>
</p>
<h3 class="ticket-item-buy-text">Inscription au congrès</h3>
<p>
<i></i>
</p>
</div>
</div>
</div>
<!-- /Back Card -->
</div>
</a>
<!-- /price ticket -->
</div>
<div
class="col-sm-6 inscription-class" style="display:none">
<!-- price ticket -->
<a href="#" class="price-ticket-item">
<div
class="price-ticket-item-wrapper">
<!-- Front card -->
<div class="price-ticket-item-front">
<div
class="price-ticket-item-border">
<!-- row -->
<div
class="row">
<!-- col -->
<div class="price-ticket-buy">
<p class="ticket-item-buy-ico">
<i class="fa fa-ticket"></i>
</p>
<h3 class="ticket-item-buy-text">Devenir nouveau membre (gratuit)</h3>
</div>
<!-- /col -->
</div>
<!-- /row -->
</div>
</div>
<!-- /front-card -->
<!-- Back Card -->
<div class="price-ticket-item-back">
<div class="price-ticket-item-border">
<div class="price-ticket-buy">
<p class="ticket-item-buy-ico">
<i class="fa fa-ticket"></i>
</p>
<h3 class="ticket-item-buy-text">Devenir nouveau membre (gratuit)</h3>
<p>
<i></i>
</p>
</div>
</div>
</div>
<!-- /Back Card -->
</div>
</a>
<!-- /price ticket -->
</div>
<!-- /item -->
<!-- item -->
<!-- /item -->
<!-- /item -->
</div>
<!-- /Princing Tickets -->
</div>
</div>
{% elseif app.session.get('typesendpaiment') is empty %}
<script>
choixChange(1);
</script>
<div class="container text-center">
<h2>Merci de faire votre choix :</h2>
<button class="btn btn-info" onclick="choixChange(1);">Professionnel</button>
<button class="btn btn-info" onclick="choixChange(2);">Étudiant</button>
</div>
{% else %}
<style>
@import url("https://fonts.googleapis.com/css?family=Montserrat");
.pricing-table{
background-color: #eee;
font-family: 'Montserrat', sans-serif;
}
.pricing-table .block-heading {
padding-top: 50px;
margin-bottom: 40px;
text-align: center;
}
.pricing-table .block-heading h2 {
color: #3b99e0;
}
.pricing-table .block-heading p {
text-align: center;
max-width: 420px;
margin: auto;
opacity: 0.7;
}
.pricing-table .heading {
text-align: center;
padding-bottom: 10px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.pricing-table .item {
background-color: #ffffff;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.075);
border-top: 2px solid #5ea4f3;
padding: 30px;
overflow: hidden;
position: relative;
}
.pricing-table .col-md-5:not(:last-child) .item {
margin-bottom: 30px;
}
.pricing-table .item button {
font-weight: 600;
}
.pricing-table .ribbon {
width: 160px;
height: 32px;
font-size: 12px;
text-align: center;
color: #fff;
font-weight: bold;
box-shadow: 0px 2px 3px rgba(136, 136, 136, 0.25);
background: #4dbe3b;
transform: rotate(45deg);
position: absolute;
right: -42px;
top: 20px;
padding-top: 7px;
}
.pricing-table .item p {
text-align: center;
margin-top: 20px;
opacity: 0.7;
}
.pricing-table .features .feature {
font-weight: 600; }
.pricing-table .features h4 {
text-align: center;
font-size: 18px;
padding: 5px;
}
.pricing-table .price h4 {
margin: 15px 0;
font-size: 45px;
text-align: center;
color: #2288f9;
}
.pricing-table .buy-now button {
text-align: center;
margin: auto;
font-weight: 600;
padding: 9px 0;
}
</style>
{% if nb<60 %}
<section class="pricing-table">
<div class="container">
<div class="block-heading">
<h2>Liste de prix</h2>
<p>liste de prix Ă©venement</p>
</div>
<div class="row justify-content-md-center" >
{% if app.session.get('message-success') is not empty %}
<div class="alert alert-success" style="display:none">
{{ app.session.get('message-success') }}
</div>
{% set _ = app.session.remove('message-success') %}
{% endif %}
{% set i = 0 %}
{% for t in tab %}
{% set i = i + 1 %}
<div class="col-md-6 col-lg-4" style="margin-top:2%">
<div class="item" style="min-height:450px">
<div class="heading">
{% if prix ==0 %}
<h3>{{ t.titre|e }}</h3>
{% else %}
<h3> {{ t.titre|e }} </h3>
{% endif %}
</div>
<p>Detail</p>
<div class="features">
<h4><span class="feature">
{% if prix ==0 %}
{{ t.titre|e }}
{% else %}
{{t.prix}} TND + 20 TND Adhésion
{% endif %}
</h4>
{% if t.id_evenement == 19 %}
{% if t.id_prix == 75 or t.id_prix == 78 %}
<ul>
<li>
<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
</li>
<li>
<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>
<i style="color:black;font-size:11px;font-weight: 600;">Choisis le nombre d'accompagnants</i>
<input type="Number" class="form-control accompangnt" placeholder="Nombre acompagnant" value="0" aria-label="Username" aria-describedby="basic-addon1" disabled>
</li>
<li style="margin-top:3%">
<i style="color:black;font-size:11px;font-weight: 600;">Choisis le nombre d'enfants (Ă¢gĂ©s de 2 Ă 12 ans). 75 Tnd</i>
<input type="Number" class="form-control enfantanis" placeholder="Nombre des enfants" value="0" aria-describedby="basic-addon1">
</li>
<li>
<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
</li>
<!--<li>
<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
</li>-->
<!--<li style="display:none">
<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
</li>-->
</ul>
{% elseif t.id_prix == 67 %}
<ul>
<li>
<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
</li>
<li>
<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
</li>
</ul>
{% else %}
{% endif %}
{% endif %}
{% if t.id_evenement == 18 %}
{% if t.id_prix == 69 or t.id_prix == 70 or t.id_prix == 71 or t.id_prix == 72 %}
{% elseif t.id_prix == 67 %}
<ul>
<li>
<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
</li>
<li>
<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
</li>
</ul>
{% else %}
{% endif %}
{% endif %}
</div>
<div class="price price{{i}}">
<h4>{{ (t.prix + prix) | e }} TND</h4>
</div>
<!--<div class="alert alert-danger" role="alert">
Le serveur de paiement sécurisé par carte bancaire nationale est momentanément indisponible, veuillez réessayer plus tard.
</div>-->
{% if autre == 1%}
<!--<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>-->
<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>
{% else %}
<!-- Trigger the modal with a button -->
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog" style=" background: rgba(0, 0, 0, 0.5);z-index:545454545454">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content" style="background: white;width:auto;left:40%;top:60%;z-index:55">
<div class="modal-header">
<style>
.anisawadni table td {
vertical-align: top;
}
.anisawadni .body-wrap {
background-color: #f6f6f6;
width: 100%;
}
.anisawadni .container {
display: block !important;
max-width: 600px !important;
margin: 0 auto !important;
/* makes it centered */
clear: both !important;
}
.anisawadni .content {
max-width: 600px;
margin: 0 auto;
display: block;
padding: 20px;
}
/* -------------------------------------
HEADER, FOOTER, MAIN
------------------------------------- */
.anisawadni .main {
background: #fff;
border: 1px solid #e9e9e9;
border-radius: 3px;
}
.anisawadni .content-wrap {
padding: 20px;
}
.anisawadni .content-block {
padding: 0 0 20px;
}
.anisawadni .header {
width: 100%;
margin-bottom: 20px;
}
.anisawadni .footer {
width: 100%;
clear: both;
color: #999;
padding: 20px;
}
.anisawadni .footer a {
color: #999;
}
.anisawadni .footer p, .footer a, .footer unsubscribe, .footer td {
font-size: 12px;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
.anisawadni h1, h2, h3 {
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
color: #000;
margin: 40px 0 0;
line-height: 1.2;
font-weight: 400;
}
.anisawadni h1 {
font-size: 32px;
font-weight: 500;
}
.anisawadni h2 {
font-size: 24px;
}
.anisawadni h3 {
font-size: 18px;
}
.anisawadni h4 {
font-size: 14px;
font-weight: 600;
}
.anisawadni p, ul, ol {
margin-bottom: 10px;
font-weight: normal;
}
.anisawadni p li, ul li, ol li {
margin-left: 5px;
list-style-position: inside;
}
/* -------------------------------------
LINKS & BUTTONS
------------------------------------- */
.anisawadni a {
color: #1ab394;
text-decoration: underline;
}
.anisawadni .btn-primary {
text-decoration: none;
color: #FFF;
background-color: #1ab394;
border: solid #1ab394;
border-width: 5px 10px;
line-height: 2;
font-weight: bold;
text-align: center;
cursor: pointer;
display: inline-block;
border-radius: 5px;
text-transform: capitalize;
}
/* -------------------------------------
OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.anisawadni .last {
margin-bottom: 0;
}
.anisawadni .first {
margin-top: 0;
}
.anisawadni .aligncenter {
text-align: center;
}
.anisawadni .alignright {
text-align: right;
}
.anisawadni .alignleft {
text-align: left;
}
.anisawadni .clear {
clear: both;
}
/* -------------------------------------
ALERTS
Change the class depending on warning email, good email or bad email
------------------------------------- */
.anisawadni .alert {
font-size: 16px;
color: #fff;
font-weight: 500;
padding: 20px;
text-align: center;
border-radius: 3px 3px 0 0;
}
.anisawadni .alert a {
color: #fff;
text-decoration: none;
font-weight: 500;
font-size: 16px;
}
.anisawadni .alert.alert-warning {
background: #f8ac59;
}
.anisawadni .alert.alert-bad {
background: #ed5565;
}
.anisawadni .alert.alert-good {
background: #1ab394;
}
/* -------------------------------------
INVOICE
Styles for the billing table
------------------------------------- */
.anisawadni .invoice {
margin: 40px auto;
text-align: left;
width: 80%;
}
.anisawadni .invoice td {
padding: 5px 0;
}
.anisawadni .invoice .invoice-items {
width: 100%;
}
.anisawadni .invoice .invoice-items td {
border-top: #eee 1px solid;
}
.anisawadni .invoice .invoice-items .total td {
border-top: 2px solid #333;
border-bottom: 2px solid #333;
font-weight: 700;
}
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 640px) {
.anisawadni h1, h2, h3, h4 {
font-weight: 600 !important;
margin: 20px 0 5px !important;
}
.anisawadni h1 {
font-size: 22px !important;
}
.anisawadni h2 {
font-size: 18px !important;
}
.anisawadni h3 {
font-size: 16px !important;
}
.anisawadni .container {
width: 100% !important;
}
.anisawadni .content, .content-wrap {
padding: 10px !important;
}
.anisawadni .invoice {
width: 100% !important;
}
}
</style>
<table class="anisawadni body-wrap">
<tbody><tr>
<td></td>
<td class="container" width="600">
<div class="content"><br><br><br>
<h4 class="modal-title" style="border-bottom: 0px solid #ccc;">Finaliser le paiement</h4>
<table class="main" width="100%" cellpadding="0" cellspacing="0">
<tbody><tr>
<td class="content-wrap aligncenter">
<table width="100%" cellpadding="0" cellspacing="0">
<tbody><tr>
<td class="content-block">
<h2>ASTP</h2>
</td>
</tr>
<tr>
<td class="content-block">
<table class="invoice">
<tbody>
<tr>
<td>
<table class="invoice-items" cellpadding="0" cellspacing="0">
<tbody><tr>
<td>Nom et prénom </td>
<td class="alignright">{{ app.session.get('nom') }} {{ app.session.get('prenom') }}</td>
</tr>
<tr>
<td>Email</td>
<td class="alignright">{{ app.session.get('emailSend') }}</td>
</tr>
<tr>
<td>Téléphone</td>
<td class="alignright">{{ app.session.get('phone') }}</td>
</tr>
<tr>
<td>Type</td>
<td class="alignright">{{ app.session.get('type') }}</td>
</tr>
<tr>
<td>Fonction</td>
<td class="alignright">{{ app.session.get('fonction') }}</td>
</tr>
<tr class="total">
<td class="alignright" width="80%">Total</td>
<td class="alignright "><span class="montant">36.00</span> TND</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<div class="footer">
<table width="100%">
<tbody><tr>
<td class="aligncenter content-block">Questions? Téléphone <a href="mailto:">+216 97 054 316</a></td>
</tr>
</tbody></table>
</div></div>
</td>
<td></td>
</tr>
</tbody></table>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body bod">
</div>
</div>
</div>
</div>
<button class="btn click" style="display:none" data-toggle="modal" data-target="#myModal">aa</button>
<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>
<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>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% else %}
<div class="alert alert-danger" role="alert">
Cette formation est complet
</div>
{% endif %}
{% endif %}
<div class="container">
{% if sessionHas == 5 %}
<div class="row">
<!-- Left Column -->
<!-- /Left Column -->
<!-- Right Column -->
<div class="col-lg-12"> <div class="alert alert-primary" role="alert"></div>
</div>
<div class="col-lg-6">
<legend>Login</legend>
<div class="erreur" style="color:red"></div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" class="csrf">
<label for="username">Email</label>
<input type="text" class="form-control email" id="username" name="_username" value="" required="required" autocomplete="username">
<label for="password">Mot de passe</label>
<input type="password" class="form-control password" id="password" name="_password" required="required" autocomplete="current-password">
<br>
<div class="lds-ripple dispload"><div></div><div></div></div>
<button type="submit" id="_submit" name="_submit" class="btn btn-success connexion-button1"> Connexion <i class="fa fa-spinner fa-spin"></i></button>
<!--<button class="btn btn-danger retour1" style="background:red !important">Retour</button>-->
</div>
<div class="col-lg-6">
<legend>Création d'un nouveau compte (gratuit)</legend>
<div class="er-c" style="color:red">
</div>
<div id="fos_user_registration_form">
<div>
<label for="fos_user_registration_form_email" class="required">Email</label>
<input type="email" id="fos_user_registration_form_email" name="fos_user_registration_form[email]" class="form-control inscri_email" required="required">
</div>
<div>
<label for="fos_user_registration_form_username" class="required">Nom</label>
<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>
<div>
<div>
<label for="fos_user_registration_form_username" class="required">Prenom</label>
<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>
<div>
<div>
<label for="fos_user_registration_form_username" class="required">Phone</label>
<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>
<div>
<label for="fos_user_registration_form_type" class="required">Type</label>
<select id="fos_user_registration_form_type" name="fos_user_registration_form[type]" class="form-control inscri_type">
<option value="0">Étudiant en physiothérapie</option>
<option value="1">Physiothérapeute en secteur public</option>
<option value="2">Physiothérapeute de libre pratique</option>
<option value="3">Physiothérapeute en secteur privé</option>
</select>
</div>
<div>
<label for="fos_user_registration_form_plainPassword_first" class="required">Mot de passe</label>
<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">
</div>
<div>
<label for="fos_user_registration_form_plainPassword_second" class="required">Repeter mot de passe</label>
<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>
<input type="hidden" id="fos_user_registration_form__token" name="fos_user_registration_form[_token]" value="{{ csrf_token('authenticate') }}" class="inscri_token">
</div>
<div>
<input type="submit" class="btn btn-success inscri" value="Register">
<!--<button class="btn btn-danger retour1" style="background:red !important">Retour</button>-->
</div>
</div>
</div>
{% endif %}
<style>
.rounded-lg {
border-radius: 1rem !important;
}
.text-small {
font-size: 0.9rem !important;
}
.custom-separator {
width: 5rem;
height: 6px;
border-radius: 1rem;
}
.text-uppercase {
letter-spacing: 0.2em;
}
</style>
<div class="col-lg-12 prix">
<div class="container py-5">
<div class="row text-center align-items-end">
<div class="col-lg-4 mb-5 mb-lg-0">
<div class="bg-white p-5 rounded-lg shadow">
<h1 class="h6 text-uppercase font-weight-bold mb-4">Basic</h1>
<h2 class="h1 font-weight-bold">$199<span class="text-small font-weight-normal ml-2">/ month</span></h2>
<div class="custom-separator my-4 mx-auto bg-primary"></div>
<ul class="list-unstyled my-5 text-small text-left">
<li class="mb-3">
<i class="fa fa-check mr-2 text-primary"></i> Lorem ipsum dolor sit amet</li>
<li class="mb-3">
<i class="fa fa-check mr-2 text-primary"></i> Sed ut perspiciatis</li>
<li class="mb-3">
<i class="fa fa-check mr-2 text-primary"></i> At vero eos et accusamus</li>
<li class="mb-3 text-muted">
<i class="fa fa-times mr-2"></i>
<del>Nam libero tempore</del>
</li>
<li class="mb-3 text-muted">
<i class="fa fa-times mr-2"></i>
<del>Sed ut perspiciatis</del>
</li>
<li class="mb-3 text-muted">
<i class="fa fa-times mr-2"></i>
<del>Sed ut perspiciatis</del>
</li>
</ul>
<a href="#" class="btn btn-primary btn-block p-2 shadow rounded-pill">Subscribe</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- SECTION: Register
================================================== -->
<!-- /SECTION: Register
================================================== -->
<!-- SECTION: Location
================================================== -->
<!-- /SECTION: Location
================================================== -->
</div>
</div>
<!-- Contact Form - Ajax Messages
========================================================= -->
<!-- Form Sucess -->
<div class="form-result modal-wrap" id="contactSuccess">
<div class="modal-bg"></div>
<div class="modal-content">
<h4 class="modal-title">
<i class="fa fa-check-circle"></i>
Success!</h4>
<p>Your message has been sent to us.</p>
</div>
</div>
<!-- /Form Sucess -->
<!-- form-error -->
<div class="form-result modal-wrap" id="contactError">
<div class="modal-bg"></div>
<div class="modal-content">
<h4 class="modal-title">
<i class="fa fa-times"></i>
Error</h4>
<p>There was an error sending your message.</p>
</div>
</div>
<!-- /form-error -->
<!-- / Contact Form - Ajax Messages
========================================================= -->
<button type="button " class="btn btn-primary click" data-toggle="modal" data-target="#exampleModal" style="display:none"></button>
<!-- Modal -->
<!-- Footer
================================================== -->
{% include ('includes/footer.html.twig') %}
</body>
</html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/harvesthq/chosen/gh-pages/chosen.jquery.min.js"></script>
<script src="/js/evenement.js"></script>
<script type="text/javascript">
$(".connexion-button1").click(function(){
$(".fa-spinner").css("display","inline-block")
em=$(".email").val();
pass=$(".password").val();
$.post("/conneixonPaiment/",
{
email: em,
password: pass,
_csrf_token:"{{ csrf_token('authenticate') }}"
},
function(data, status){
if(data=="0")
{
$(".erreur").html("email ou mot de passe incorrecte ");
$(".fa-spinner").css("display","none")
}
else
{
$(".fa-spinner").css("display","none");
window.location.reload();
}
});
});
$(".send-button1").click(function(){
$(".fa-spinner").css("display","inline-block")
phone=$(".phoneSend").val();
$.post("/conneixonPaimentPhone/",
{
phone:phone,
_csrf_token:"{{ csrf_token('authenticate') }}"
},
function(data, status){
if(data=="-1")
{
$(".erreur").html("Le paiement pour l'événement a déjà été effectué.");
$(".fa-spinner").css("display","none")
}else if (data=="0")
{
$(".erreur").html("Ce numéro n'existe pas. Avez-vous été inscrit avant le paiement ?");
$(".fa-spinner").css("display","none")
}
else
{
$(".fa-spinner").css("display","none");
window.location.reload();
}
});
});
$(".inscri").click(function(){
email=$(".inscri_email").val();
pass=$(".inscri_pass").val();
nom=$(".inscri_nom").val();
type=$(".inscri_type").val();
phone=$(".inscri_phone").val();
prenom=$(".inscri_prenom").val();
$.post("/inscription/evenement/",
{
email: email,
password: pass,
nom: nom,
type: type,
phone:phone,
prenom:prenom,
_csrf_token:"{{ csrf_token('authenticate') }}"
},
function(data, status){
data=JSON.parse(data);
if(data['erreur'].length>0)
{
$(".er-c").html(data['erreur']);
}
else
{
window.location.reload();
}
});
});
pricestatic=0;
idddprice=0;
function addS1(idprice,prixAdd,id,idEvent,price)
{
if(idddprice==0)
{
idddprice=idprice;
}
else if(idddprice!=idprice)
{
pricestatic=0;
}
checkbox=".checkbox"+id;
checkbox3=".checkbox3"+id;
priceClass=".price"+id+" h4";
if($(checkbox).is(':checked'))
{
aal=".aal"+id;
aap=".aap"+id;
newprice = price+prixAdd;
pricestatic=newprice;
if($(checkbox3).is(':checked'))
{
newprice = newprice+57.5;
pricestatic=newprice-57.5;
}
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
else
{
newprice = price;
pricestatic=newprice;
aal=".aal"+id;
aap=".aap"+id;
if(!$(checkbox3).is(':checked'))
{
newprice = newprice-57.5;
pricestatic=newprice-57.5;
}
url1="/paiment/"+idEvent+"/"+price+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
}
function addS2(idprice,prixAdd,id,idEvent,price)
{
if(idddprice==0)
{
idddprice=idprice;
}
else if(idddprice!=idprice)
{
pricestatic=0;
}
checkbox=".checkbox2"+id;
priceClass=".price"+id+" h4";
checkbox3=".checkbox3"+id;
if($(checkbox).is(':checked'))
{
aal=".aal"+id;
aap=".aap"+id;
newprice = price+prixAdd;
pricestatic=newprice;
if($(checkbox3).is(':checked'))
{
newprice = newprice+57.5;
pricestatic=newprice-57.5;
}
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
else
{
newprice = price;
pricestatic=newprice;
aal=".aal"+id;
aap=".aap"+id;
if(!$(checkbox3).is(':checked'))
{
newprice = newprice-57.5;
pricestatic=newprice-57.5;
}
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
}
function addS3(idprice,prixAdd,id,idEvent,price)
{
if(idddprice==0)
{
idddprice=idprice;
}
else if(idddprice!=idprice)
{
pricestatic=0;
}
checkbox=".checkbox3"+id;
checkbox1=".checkbox"+id;
checkbox2=".checkbox2"+id;
priceClass=".price"+id+" h4";
if(!$(checkbox1).is(':checked') && !$(checkbox2).is(':checked'))
{
if($(checkbox).is(':checked'))
{
aal=".aal"+id;
aap=".aap"+id;
newprice = pricestatic+prixAdd+price;
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
else
{
newprice =price;
aal=".aal"+id;
aap=".aap"+id;
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
}else
{
if($(checkbox).is(':checked'))
{
aal=".aal"+id;
aap=".aap"+id;
newprice = pricestatic+prixAdd;
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdd+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
else
{
newprice = pricestatic;
aal=".aal"+id;
aap=".aap"+id;
url1="/paiment/"+idEvent+"/"+idprice+"/"+prixAdd+"";
url2="/paiment/facturation/"+idEvent+"/"+idprice+"/"+prixAdde+"";
//$(aal).attr("href",url1);
//$(aap).attr("href",url2);
$(aal).attr("lien",url1);
$(aap).attr("lien",url2);
$(priceClass).html(newprice+" TND");
}
}
}
function anul(i,idprix)
{
prix=".price"+i+" h4";
prix=$(prix).html();
prix = parseFloat(prix);
sub=prix;
ct=prix*10;
ct=prix/10;
prix=prix;
adheren=0;
vl=".aal"+i;
vl2=".aalc"+i;
ret="";
ret+="<a href='"+$(vl).attr('lien')+"' class='btn'>Paiment en ligne </a>";
ret+="<a href='"+$(vl2).attr('lien')+"' class='btn m-3' style='margin-left: 3%;'>Virement bancaire </a><br>";
ret+=' <button type="button" class="btn btn-danger" style="background-color:red !important;display:none" data-dismiss="modal">Close</button>';
$(".montant").html(prix);
$(".bod").html(ret);
}
function choixChange(id)
{
if(id ==1 || id==2)
{
$.post("/formulaire/evenementcongre",
{
id: id,
_csrf_token:"{{ csrf_token('authenticate') }}"
},
function(data, status){
data=JSON.parse(data);
if(data['erreur'].length>0)
{
$(".er-c").html(data['erreur']);
}
else
{
window.location.reload();
}
});
}
}
$(document).ready(function() {
$(".accompangnt").on("input", function() {
var valeurSaisie = $(this).val();
var nombre = parseFloat(valeurSaisie);
if (!isNaN(nombre) && nombre >= 0) {
var onclickValue = $(".ad2").attr("onclick");
var match = onclickValue.match(/addS2\((\d+),(\d+),(\d+),(\d+),(\d+)\)/);
if (match) {
var idPrix = match[1];
var param1 = match[2];
var param2 = match[3];
var param3 = match[4];
var param4 = match[5];
en = $(".enfantanis").val();
var val=0;
var newprix=0;
if(parseInt(en)>0)
{
newprix=parseInt(en) * 75;
}
var newprix2 = nombre * 145;
val=newprix+newprix2;
var p = "addS2(" + idPrix + "," + val + "," + param2 + "," + param3 + "," + param4 + ");";
$(".ad2").attr("onclick", p);
$(".ad2").click();
} else {
}
} else {
}
});
});
$(document).ready(function() {
$(".enfantanis").on("input", function() {
var valeurSaisie = $(this).val();
var nombre = parseFloat(valeurSaisie);
if (!isNaN(nombre) && nombre >= 0) {
if ($(".ad2").prop("checked")) {
var onclickValue = $(".ad2").attr("onclick");
var match = onclickValue.match(/addS2\((\d+),(\d+),(\d+),(\d+),(\d+)\)/);
if (match) {
var idPrix = match[1];
var param1 = match[2];
var param2 = match[3];
var param3 = match[4];
var param4 = match[5];
var val = nombre * 75;
val = val+145;
en = $(".accompangnt").val();
var val=0;
var newprix=0;
if(parseInt(en)>0)
{
newprix=parseInt(en) * 145;
}
var newprix2 = nombre * 75;
val=newprix+newprix2;
var p = "addS2(" + idPrix + "," + val + "," + param2 + "," + param3 + "," + param4 + ");";
$(".ad2").attr("onclick", p);
$(".ad2").click();
} else {
}
} else if ($(".ad1").prop("checked")) {
var onclickValue = $(".ad1").attr("onclick");
var match = onclickValue.match(/addS1\((\d+),(\d+),(\d+),(\d+),(\d+)\)/);
if (match) {
var idPrix = match[1];
var param1 = match[2];
var param2 = match[3];
var param3 = match[4];
var param4 = match[5];
var val = nombre * 75;
if(nombre>0)
{
val =val +parseInt(60);
}else
{
val=60;
}
var p = "addS1(" + idPrix + "," + val + "," + param2 + "," + param3 + "," + param4 + ");";
$(".ad1").attr("onclick", p);
$(".ad1").click();
} else {
}
}
else if(!$(".ad1").prop("checked") && ! $(".ad2").prop("checked"))
{
/****** lazemetni na7yha mara jaya */
var c = $(".aal3").attr('lien');
var enfant=nombre*75;
var prixinitiale = $(".aal3").attr('prix');
prixinitiale=parseInt(prixinitiale)+parseInt(enfant);
$(".price3").html("<h4>"+prixinitiale+" Tnd</h4>");
var parties = c.split('/');
var dernierePartie = parties[parties.length - 1];
var nouvelleValeur = prixinitiale;
parties[parties.length - 1] = nouvelleValeur;
var chaineModifiee = parties.join('/');
console.log(chaineModifiee);
$(".aal3").attr('lien',chaineModifiee)
console.log(prixinitiale);
}
} else {
}
});
});
ad1=0;
ad2=0;
function activerElement() {
$(".accompangnt").prop("disabled", false);
$(".enfantanis").prop("disabled", false);
if(ad2!=1)
{
ad2=1;
ad1=0;
}else
{
ad2=1;
ad1=0;
}
}
function desactiverElement()
{
$(".accompangnt").prop("disabled", true);
$(".enfantanis").prop("disabled", false);
if(ad1!=1)
{
ad2=0;
ad1=1;
}else
{
ad2=0;
ad1=1;
}
}
function desactiveall()
{
$(".accompangnt").prop("disabled", true);
$(".enfantanis").prop("disabled", false);
ad2=0;
ad1=0;
}
$(".ad2").click(activerElement);
$(".ad1").click(desactiverElement);
$(".ad3").click(desactiveall);
</script>