g
This commit is contained in:
parent
8ad7fd57c7
commit
f6375fc0aa
20
Controleur/ControleurAjaximprimercp.php
Normal file
20
Controleur/ControleurAjaximprimercp.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleurrequete.php'; // OK
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
class ControleurAjaximprimercp extends Controleurrequete
|
||||
{
|
||||
private $police;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->police = new Police();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$lienEtat = $this->requete->getParametreFormulaire("lienEtat");
|
||||
|
||||
require_once $_SESSION['dossierSociete'].'/Tarifs/Controleur/'.$lienEtat.'.php';
|
||||
}
|
||||
}
|
||||
|
|
@ -1325,3 +1325,27 @@ function imprimer_contrat()
|
|||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Contrat/");
|
||||
}
|
||||
|
||||
function imprimer_cp(lienEtat)
|
||||
{
|
||||
var div_export = $('#div_export_a');
|
||||
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
donnees = 'lienEtat='+lienEtat;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximprimercp/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data)
|
||||
{
|
||||
div_export.html(data);
|
||||
},
|
||||
error : function(resultat, statut, erreur)
|
||||
{
|
||||
},
|
||||
complete: function(data)
|
||||
{
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -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=2026.01.02.06"></script>
|
||||
<script src="/Js/fonctions.js?ver=2026.01.02.07"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
setInterval(function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user