c
This commit is contained in:
parent
1fe24e0fd3
commit
a856ae0bc8
39
Controleur/ControleurAjaxavenant.php
Normal file
39
Controleur/ControleurAjaxavenant.php
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
<?php
|
||||||
|
require_once 'Framework/Controleur.php';
|
||||||
|
require_once 'Modele/Avenant.php';
|
||||||
|
|
||||||
|
class ControleurAjaxavenant extends Controleur {
|
||||||
|
private $avenant;
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
$this->avenant = new Avenant();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$this->genererVueAjax();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getdateavenant()
|
||||||
|
{
|
||||||
|
$idAvenant = $this->requete->getParametre("idAvenant");
|
||||||
|
$dateAvenant = $this->avenant->getdateavenant($idAvenant);
|
||||||
|
|
||||||
|
// echo "dateAvenant => $dateAvenant";
|
||||||
|
// exit();
|
||||||
|
|
||||||
|
$this->genererVueAjax(array('dateAvenant' => $dateAvenant));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getdateavenantbeneficiaire()
|
||||||
|
{
|
||||||
|
$idAvenant = $this->requete->getParametre("idAvenant");
|
||||||
|
$dateAvenant = $this->avenant->getdateavenant($idAvenant);
|
||||||
|
|
||||||
|
// echo "dateAvenant => $dateAvenant";
|
||||||
|
// exit();
|
||||||
|
|
||||||
|
$this->genererVueAjax(array('dateAvenant' => $dateAvenant));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1152,4 +1152,37 @@ function prorater_prime_adherent()
|
||||||
complete: function() {
|
complete: function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function changer_avenant_incorporation()
|
||||||
|
{
|
||||||
|
idAvenant = $("#idAvenant").val();
|
||||||
|
|
||||||
|
if(idAvenant<=" ")
|
||||||
|
{
|
||||||
|
v_msg="Veuillez sélectionner un avenant!";
|
||||||
|
v_msgEng="Please select an Amendment!";
|
||||||
|
alert_ebene(v_msg, v_msgEng);
|
||||||
|
|
||||||
|
$("#idAvenant").focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
donnees = 'idAvenant='+idAvenant;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: $("#racineWeb").val()+"Ajaxavenant/getdateavenant/",
|
||||||
|
type : 'post',
|
||||||
|
data: donnees,
|
||||||
|
error: function(errorData) {
|
||||||
|
},
|
||||||
|
success: function(data) {
|
||||||
|
$("#div_date_avenant").html(data);
|
||||||
|
$(".datepicker" ).datepicker();
|
||||||
|
},
|
||||||
|
complete: function()
|
||||||
|
{
|
||||||
|
prorater_prime_adherent();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
2
Vue/Ajaxavenant/getdateavenant.php
Normal file
2
Vue/Ajaxavenant/getdateavenant.php
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
<INPUT style='font-size:10pt;' class="form-control datepicker" TYPE="text" id="dateEntree" NAME="dateEntree" value="<?= dateLang($dateAvenant) ?>" required
|
||||||
|
onChange="prorater_prime_adherent();" style='font-size:10pt;'>
|
||||||
2
Vue/Ajaxavenant/getdateavenantbeneficiaire.php
Normal file
2
Vue/Ajaxavenant/getdateavenantbeneficiaire.php
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
<INPUT style='font-size:10pt;' class="form-control datepicker" TYPE="text" id="dateEntree" NAME="dateEntree" value="<?= dateLang($dateAvenant) ?>" required
|
||||||
|
onChange="prorater_prime_beneficiaire();" style='font-size:10pt;'>
|
||||||
0
Vue/Ajaxavenant/index.php
Normal file
0
Vue/Ajaxavenant/index.php
Normal file
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="div_prime" class="card border-0 shadow-sm mt-4 animate__animated animate__fadeInUp">
|
<div id="div_prime" class="card border-0 shadow-sm mt-4 animate__animated animate__fadeInUp">
|
||||||
<div class="card-header bg-office-dark text-white py-3 d-flex justify-content-between align-items-center">
|
<div class="card-header bg-office-dark text-white py-3 d-flex justify-content-between align-items-center">
|
||||||
<h6 class="mb-0 fw-bold">
|
<h6 class="mb-0 fw-bold text-dark" >
|
||||||
<i class="fas fa-file-invoice-dollar me-2 text-primary"></i>
|
<i class="fas fa-file-invoice-dollar me-2 text-primary"></i>
|
||||||
<?= _("DÉCOMPTE DÉTAILLÉ DES PRIMES") ?>
|
<?= _("DÉCOMPTE DÉTAILLÉ DES PRIMES") ?>
|
||||||
</h6>
|
</h6>
|
||||||
|
|
|
||||||
|
|
@ -595,7 +595,7 @@ $activeChildId = $menuData['child'];
|
||||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
|
||||||
<!-- Application Scripts -->
|
<!-- Application Scripts -->
|
||||||
<script src="/Js/fonctions.js?ver=2026.01.02.00"></script>
|
<script src="/Js/fonctions.js?ver=2026.01.02.01"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user