a
This commit is contained in:
parent
086d7069c0
commit
38f0e56ec6
|
|
@ -438,50 +438,52 @@
|
||||||
<div id="recap">
|
<div id="recap">
|
||||||
<?php if($idPrestationactes=="0" || $codeReponseEntentePrealable == "1"): ?>
|
<?php if($idPrestationactes=="0" || $codeReponseEntentePrealable == "1"): ?>
|
||||||
|
|
||||||
<!-- 26/07/2026 => DEBUT gérer les OTP ici -->
|
<?php if($codeReponseEntentePrealable == "1"): ?>
|
||||||
<?php if($otpStatus=="-1" || $otpStatus=="1"): ?>
|
<!-- 26/07/2026 => DEBUT gérer les OTP ici -->
|
||||||
<input style='font-size:10pt;' class="form-control btn btn-info" type="button" onclick="valider_opticien()" value="<?= _("Facturer") ?>" />
|
<?php if($otpStatus=="-1" || $otpStatus=="1"): ?>
|
||||||
<?php else:
|
<input style='font-size:10pt;' class="form-control btn btn-info" type="button" onclick="valider_opticien()" value="<?= _("Facturer") ?>" />
|
||||||
switch ($otpStatus) {
|
<?php else:
|
||||||
case 0:
|
switch ($otpStatus) {
|
||||||
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
|
case 0:
|
||||||
break;
|
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
|
||||||
case 2:
|
break;
|
||||||
$messageOtp = "Veuillez saisir le code de vérification reçu par l'assuré sur son téléphone portable ou son adresse e-mail!";
|
case 2:
|
||||||
break;
|
$messageOtp = "Veuillez saisir le code de vérification reçu par l'assuré sur son téléphone portable ou son adresse e-mail!";
|
||||||
case 9:
|
break;
|
||||||
$messageOtp = "Code incorrect, veuillez réessayer!";
|
case 9:
|
||||||
break;
|
$messageOtp = "Code incorrect, veuillez réessayer!";
|
||||||
default:
|
break;
|
||||||
$messageOtp = "Veuillez envoyer un code de vérification à l'assuré!";
|
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>
|
?>
|
||||||
|
<h5 class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;"> <?= $messageOtp ?> </h5>
|
||||||
|
|
||||||
<?php if($otpStatus=='0') : ?>
|
<?php if($otpStatus=='0') : ?>
|
||||||
<form action="Opticien/envoyerotp" method="post">
|
<form action="Opticien/envoyerotp" method="post">
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<form action="Opticien/confirmerotp" method="post">
|
<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; ?>
|
<?php endif; ?>
|
||||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
<!-- 26/07/2026 => FIN gérer les OTP ici -->
|
||||||
<tbody>
|
<?php endif; ?>
|
||||||
|
|
||||||
<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 -->
|
|
||||||
|
|
||||||
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user