This commit is contained in:
KANE LAZENI 2026-01-03 09:53:56 +00:00
parent 7595e84797
commit a5dcddc4f7
3 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Police.php';
require_once 'Modele/Avenant.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurListeavenant extends Controleur {
private $police;
private $avenant;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Listeavenant");
$this->police = new Police();
$this->avenant = new Avenant();
}
public function index() {
$idPolice = $_SESSION['idPolice_C'];
$this->police->getContextePoliceId($idPolice);
$police = $this->police->getPoliceId($idPolice);
$avenants = $this->avenant->getAvenant($idPolice);
$this->genererVue(array('police' => $police, 'avenants' => $avenants));
}
}

View File

@ -1555,3 +1555,7 @@ function enregistrer_retrait()
});
}
function liste_avenant()
{
window.location.assign($("#racineWeb" ).val()+"Listeavenant/");
}

View File

@ -0,0 +1,49 @@
<?php
// $this->titre = "INTER-SANTE - Liste Avenants police";
?>
<legend> <?= _("Avenants de la police") . " => " . $_SESSION['nomClient_C'] . " => " . $police['numeroPolice'] . " => " . $police['idPolice'] ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style='text-align:center' > <?= _("Numéro") ?> </th>
<th style='text-align:center'> <?= _("Effet") ?> </th>
<th> <?= _("Libellé") ?> </th>
<th> <?= _("Commentaires") ?> </th>
<th> <?= _("Producteur") ?> </th>
<th style='text-align:center'> <?= _("Saisie") ?> </th>
<th colspan="3"style='text-align:center'> <?= _("Facturation") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($avenants as $avenant):
$libelleAvenant = $avenant['libelleAvenant'];
if (est_anglophone())
{
$libelleAvenant = $avenant['libelleAvenantEng'];
}
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($avenant['numeroAvenant']) ?></td>
<td align='center'><?= dateLang($this->nettoyer($avenant['dateEffet']), $_SESSION['lang']) ?></td>
<td><?= $libelleAvenant ?></td>
<td><?= $this->nettoyer($avenant['motifavenant']) ?></td>
<td><?= $this->nettoyer($avenant['utilisateur']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($avenant['dateSysteme'])) ?></td>
<td align='center'>
<?php if($avenant['facture']=='1'): ?>
<input type="checkbox" checked disabled>
<?php else: ?>
<input type="checkbox" disabled>
<?php endif; ?>
</td>
<td align='center'> <?= dateheureLang($this->nettoyer($avenant['dateFacturation'])) ?></td>
<td align='center'> <?= $this->nettoyer($avenant['userFacturation']) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>