a
This commit is contained in:
parent
8288ae875a
commit
75df8c2f47
|
|
@ -92,8 +92,6 @@ class ControleurAjaxprixseancesea extends Controleur {
|
|||
{
|
||||
$this->feuille->maj_otp($idOtpFacturePrestation, '9'); // incorrect
|
||||
}
|
||||
|
||||
$this->executerAction("raffraichir");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -102,8 +100,6 @@ class ControleurAjaxprixseancesea extends Controleur {
|
|||
$codeTypeFacture = "SEA";
|
||||
$otpValue = mt_rand(100000, 999999);
|
||||
$this->feuille->envoyer_otp($codeTypeFacture, $otpValue);
|
||||
|
||||
$this->executerAction("raffraichir");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29202,3 +29202,63 @@ function init_prolongation_hospit()
|
|||
function handlehistoriqueproformahospitalisation() {
|
||||
listerproformahospitalisation();
|
||||
}
|
||||
|
||||
function ajax_envoyer_code_otp_sea()
|
||||
{
|
||||
alert("ajax_envoyer_code_otp_sea");
|
||||
return;
|
||||
|
||||
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxprixseancesea/envoyerotp/",
|
||||
type : 'post',
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
ajaxprixseancesea_raffraichir();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ajax_verifier_code_otp_sea()
|
||||
{
|
||||
alert("ajax_verifier_code_otp_sea");
|
||||
return;
|
||||
|
||||
$("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxprixseancesea/confirmerotp/",
|
||||
type : 'post',
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
ajaxprixseancesea_raffraichir();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ajaxprixseancesea_raffraichir()
|
||||
{
|
||||
alert("ajaxprixseancesea_raffraichir");
|
||||
return;
|
||||
|
||||
// $("#infosacte").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxprixseancesea/raffraichir/",
|
||||
type : 'post',
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
$("#infosacte").html(data);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,29 +171,23 @@ Index => NAMOGO
|
|||
?>
|
||||
<h5 class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;"> <?= $messageOtp ?> </h5>
|
||||
|
||||
<?php if($otpStatus=='0') : ?>
|
||||
<form action="Ajaxprixseancesea/envoyerotp" method="post">
|
||||
<?php else: ?>
|
||||
<form action="Ajaxprixseancesea/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="button" onClick='javascript:ajax_envoyer_code_otp_sea();' value="<?= _("Envoyer Code") ?>" /> </td>
|
||||
</button>
|
||||
|
||||
<?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-info" type="button" onClick='javascript:ajax_verifier_code_otp_sea();' 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-info" type="button" onClick='javascript:ajax_verifier_code_otp_sea();' value="<?= _("Vérifier Code à nouveau") ?>" /> </td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- 26/07/2026 => FIN gérer les OTP ici -->
|
||||
|
||||
<div id="div_fraisExclu">
|
||||
|
|
|
|||
|
|
@ -171,29 +171,23 @@ raffraichir => KANE
|
|||
?>
|
||||
<h5 class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;"> <?= $messageOtp ?> </h5>
|
||||
|
||||
<?php if($otpStatus=='0') : ?>
|
||||
<form action="Ajaxprixseancesea/envoyerotp" method="post">
|
||||
<?php else: ?>
|
||||
<form action="Ajaxprixseancesea/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="button" onClick='javascript:ajax_envoyer_code_otp_sea();' value="<?= _("Envoyer Code") ?>" /> </td>
|
||||
</button>
|
||||
|
||||
<?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-info" type="button" onClick='javascript:ajax_verifier_code_otp_sea();' 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-info" type="button" onClick='javascript:ajax_verifier_code_otp_sea();' value="<?= _("Vérifier Code à nouveau") ?>" /> </td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- 26/07/2026 => FIN gérer les OTP ici -->
|
||||
|
||||
<div id="div_fraisExclu">
|
||||
|
|
|
|||
|
|
@ -885,7 +885,7 @@
|
|||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.css" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/toastr@2.1.4/build/toastr.min.js" crossorigin="anonymous"></script>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2026.07.28.05"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.07.28.06"></script>
|
||||
<script src="Bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user