This commit is contained in:
KONE SOREL 2025-12-31 18:54:31 +00:00
parent ecef2c30d1
commit 82d7298d1c
3 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,20 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/College_temp.php';
class ControleurAjaxconsultertableauprestation extends Controleur {
private $college_temp2;
public function __construct() {
$this->college_temp2 = new College_temp();
}
public function index()
{
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$tableau_prestations = $this->college_temp2->getPrestation($idCollegeTemp);
$this->genererVueAjax(array('tableau_prestations' => $tableau_prestations));
}
}

View File

@ -1097,4 +1097,20 @@ function consulter_college(idCollege)
{
window.location.assign($("#racineWeb" ).val()+"Consultercollege/"+idCollege+"/");
}
}
function pop_consulter_tableau_prestation()
{
$.ajax({
url: $("#racineWeb").val()+"Ajaxconsultertableauprestation/",
type : 'post',
error: function(errorData) {
},
success: function(data) {
$("#div_tableau_prestation").html(data);
},
complete: function() {
$("#btn_pop").click();
}
});
}

View File

@ -595,7 +595,7 @@ $activeChildId = $menuData['child'];
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Application Scripts -->
<script src="/Js/fonctions.js?ver=2025.12.31.11"></script>
<script src="/Js/fonctions.js?ver=2025.12.31.12"></script>
<script type="text/javascript">
setInterval(function() {