This commit is contained in:
KANE LAZENI 2026-07-27 17:31:38 +00:00
parent 086d7069c0
commit 38f0e56ec6

View File

@ -438,50 +438,52 @@
<div id="recap">
<?php if($idPrestationactes=="0" || $codeReponseEntentePrealable == "1"): ?>
<!-- 26/07/2026 => DEBUT gérer les OTP ici -->
<?php if($otpStatus=="-1" || $otpStatus=="1"): ?>
<input style='font-size:10pt;' class="form-control btn btn-info" type="button" onclick="valider_opticien()" value="<?= _("Facturer") ?>" />
<?php else:
switch ($otpStatus) {
case 0:
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
break;
case 2:
$messageOtp = "Veuillez saisir le code de vérification reçu par l'assuré sur son téléphone portable ou son adresse e-mail!";
break;
case 9:
$messageOtp = "Code incorrect, veuillez réessayer!";
break;
default:
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
}
?>
<h5 class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;"> <?= $messageOtp ?> </h5>
<?php if($codeReponseEntentePrealable == "1"): ?>
<!-- 26/07/2026 => DEBUT gérer les OTP ici -->
<?php if($otpStatus=="-1" || $otpStatus=="1"): ?>
<input style='font-size:10pt;' class="form-control btn btn-info" type="button" onclick="valider_opticien()" value="<?= _("Facturer") ?>" />
<?php else:
switch ($otpStatus) {
case 0:
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
break;
case 2:
$messageOtp = "Veuillez saisir le code de vérification reçu par l'assuré sur son téléphone portable ou son adresse e-mail!";
break;
case 9:
$messageOtp = "Code incorrect, veuillez réessayer!";
break;
default:
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
}
?>
<h5 class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;"> <?= $messageOtp ?> </h5>
<?php if($otpStatus=='0') : ?>
<form action="Opticien/envoyerotp" method="post">
<?php else: ?>
<form action="Opticien/confirmerotp" method="post">
<?php if($otpStatus=='0') : ?>
<form action="Opticien/envoyerotp" method="post">
<?php else: ?>
<form action="Opticien/confirmerotp" method="post">
<?php endif; ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if($otpStatus=='0') : ?>
<td> <input style='font-size:10pt;' class="form-control btn btn-info" type="submit" name="submit" value="<?= _("Envoyer Code") ?>" /> </td>
<?php elseif($otpStatus=='2'): ?>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" type="text" id="otpValue" name="otpValue" required AUTOCOMPLETE="OFF" autofocus > </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Vérifier Code") ?>" /> </td>
<?php else: ?>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" type="text" id="otpValue" name="otpValue" required AUTOCOMPLETE="OFF" autofocus > </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-warning" type="submit" name="submit" value="<?= _("Vérifier Code à nouveau") ?>" /> </td>
<?php endif; ?>
</tr>
</tbody>
</table>
</form>
<?php endif; ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if($otpStatus=='0') : ?>
<td> <input style='font-size:10pt;' class="form-control btn btn-info" type="submit" name="submit" value="<?= _("Envoyer Code") ?>" /> </td>
<?php elseif($otpStatus=='2'): ?>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" type="text" id="otpValue" name="otpValue" required AUTOCOMPLETE="OFF" autofocus > </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Vérifier Code") ?>" /> </td>
<?php else: ?>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" type="text" id="otpValue" name="otpValue" required AUTOCOMPLETE="OFF" autofocus > </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-warning" type="submit" name="submit" value="<?= _("Vérifier Code à nouveau") ?>" /> </td>
<?php endif; ?>
</tr>
</tbody>
</table>
</form>
<?php endif; ?>
<!-- 26/07/2026 => FIN gérer les OTP ici -->
<!-- 26/07/2026 => FIN gérer les OTP ici -->
<?php endif; ?>
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>