2019-12-27 13:54:44 +00:00
|
|
|
|
<?php
|
|
|
|
|
require_once "header.php"
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="mt-4 mb-4">
|
|
|
|
|
<h1 class="display-4">Paiement</h1>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php
|
2020-01-01 20:53:46 +00:00
|
|
|
|
|
|
|
|
|
if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
2020-01-16 22:27:18 +00:00
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
|
Le prix du tournoi est de <?= $tournament->getPrice() ?> €. Vous pouvez par carte bancaire via
|
2020-02-14 20:23:36 +00:00
|
|
|
|
<a href="https://www.helloasso.com/associations/animath/evenements/tfjm-2020">la plateforme dédiée</a>,
|
|
|
|
|
et indiquer sur cette page les informations de paiement qui nous permettront de le retrouver.
|
|
|
|
|
Si ce n'est pas possible, vous pouvez également procéder à un virement sur le compte :<br /><br />
|
2020-01-16 22:27:18 +00:00
|
|
|
|
<strong>IBAN :</strong> FR76 1027 8065 0000 0206 4290 127<br />
|
|
|
|
|
<strong>BIC :</strong> CMCIFR2A<br /><br />
|
|
|
|
|
en précisant bien en référence du virement la mention <strong>TFJMpu</strong> suivie des nom et prénom de l'élève.<br /><br />
|
|
|
|
|
Si aucune de ces procédures n’est possible pour vous, envoyez un mail à <a href="mailto:contact@tfjm.org">contact@tfjm.org</a>
|
|
|
|
|
pour que nous trouvions une solution à vos difficultés.
|
2020-01-01 20:53:46 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="alert alert-info">
|
2020-01-01 23:09:02 +00:00
|
|
|
|
<form method="POST" enctype="multipart/form-data">
|
2020-01-01 20:53:46 +00:00
|
|
|
|
<label for="method"><strong>Mode de paiement :</strong></label>
|
2020-01-18 13:43:42 +00:00
|
|
|
|
<select class="custom-select" id="method" name="method" onchange="displayInfos()">
|
2020-01-01 20:53:46 +00:00
|
|
|
|
<?php
|
2020-01-16 22:27:18 +00:00
|
|
|
|
for ($method = PaymentMethod::NOT_PAID; $method <= PaymentMethod::SCHOLARSHIP; ++$method) {
|
|
|
|
|
if ($method == PaymentMethod::CASH || $method == PaymentMethod::BANK_CHECK)
|
|
|
|
|
continue;
|
|
|
|
|
?>
|
2020-01-01 20:53:46 +00:00
|
|
|
|
<option value="<?= strtolower(PaymentMethod::getName($method)) ?>"><?= PaymentMethod::getTranslatedName($method) ?></option>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</select>
|
2020-01-18 13:43:42 +00:00
|
|
|
|
<label id="infos_label" for="infos"><strong>Informations sur le paiement :</strong></label>
|
2020-01-01 20:53:46 +00:00
|
|
|
|
<textarea class="form-control" name="infos" id="infos"></textarea>
|
2020-01-18 13:43:42 +00:00
|
|
|
|
<label id="scholarship_label" for="scholarship"><strong>Notification de bourse :</strong></label>
|
2020-01-01 20:53:46 +00:00
|
|
|
|
<input type="file" class="form-control" name="scholarship" id="scholarship" />
|
|
|
|
|
<input class="btn btn-primary btn-block" type="submit" name="pay" value="Envoyer" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2020-01-18 13:43:42 +00:00
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
function displayInfos() {
|
|
|
|
|
console.log("value = " + document.getElementById("method").value);
|
|
|
|
|
switch (document.getElementById("method").value) {
|
|
|
|
|
case "scholarship":
|
|
|
|
|
document.getElementById("scholarship_label").style.display = "block";
|
|
|
|
|
document.getElementById("scholarship").style.display = "block";
|
|
|
|
|
document.getElementById("scholarship").require = "true";
|
|
|
|
|
document.getElementById("infos_label").style.display = "none";
|
|
|
|
|
document.getElementById("infos").style.display = "none";
|
|
|
|
|
document.getElementById("infos").require = "false";
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
document.getElementById("scholarship_label").style.display = "none";
|
|
|
|
|
document.getElementById("scholarship").style.display = "none";
|
|
|
|
|
document.getElementById("scholarship").require = "false";
|
|
|
|
|
document.getElementById("infos_label").style.display = "block";
|
|
|
|
|
document.getElementById("infos").style.display = "block";
|
|
|
|
|
document.getElementById("infos").require = "true";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
displayInfos();
|
|
|
|
|
</script>
|
2020-01-01 23:09:02 +00:00
|
|
|
|
<?php } else {
|
|
|
|
|
if ($payment->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
|
Votre paiement est en attente de validation.
|
|
|
|
|
</div>
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
<div class="alert alert-success">
|
|
|
|
|
Votre paiement a bien été validé.
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<div class="alert alert-info">
|
|
|
|
|
<strong>Récapitulatif du paiement :</strong><br /><br />
|
|
|
|
|
|
|
|
|
|
<strong>Tournoi :</strong> <?= $tournament->getName() ?><br />
|
|
|
|
|
<strong>Montant :</strong> <?= $payment->getAmount() ?> €<br />
|
|
|
|
|
<strong>Moyen de paiement :</strong> <?= PaymentMethod::getTranslatedName($payment->getMethod()) ?><br />
|
|
|
|
|
<?php if ($payment->getMethod() == PaymentMethod::SCHOLARSHIP) { ?>
|
2020-04-26 22:48:39 +00:00
|
|
|
|
<strong>Notification de bourse :</strong> <a data-turbolinks="false" href="/file/<?= $payment->getTransactionInfos() ?>">Télécharger</a><br />
|
2020-01-01 23:09:02 +00:00
|
|
|
|
<?php } else { ?>
|
|
|
|
|
<strong>Informations sur le paiement :</strong> <?= $payment->getTransactionInfos() ?><br />
|
|
|
|
|
<?php } ?>
|
2020-01-01 20:53:46 +00:00
|
|
|
|
</div>
|
2020-01-18 13:43:42 +00:00
|
|
|
|
|
2020-01-01 20:53:46 +00:00
|
|
|
|
<?php }
|
|
|
|
|
|
2019-12-27 13:54:44 +00:00
|
|
|
|
require_once "footer.php";
|