This commit is contained in:
KANE LAZENI 2026-03-29 20:22:06 +00:00
parent 7b0deacc91
commit 1a2d2b05c3
4 changed files with 209 additions and 9 deletions

View File

@ -17,15 +17,10 @@ class ControleurBaremepriseenchargelettrecletemp extends Controleur
public function index()
{
/*
var_dump
(
array(
"OrigineBaremeControleur" => $_SESSION['OrigineBareme'],
)
);
*/
if($_SESSION['OrigineBareme']=="Detailbaremecollegetemp" && $_SESSION['vueCollege']=="Consultercollege"){
// $this->rediriger("Baremepriseenchargelettrecletcons");
$this->executerAction("consulter");
}
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
@ -42,4 +37,17 @@ class ControleurBaremepriseenchargelettrecletemp extends Controleur
'maxDateEffetBareme'=> $maxDateEffetBareme,
));
}
public function consulter()
{
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$actes = $this->garantie->getLettreclesGarantieBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
$this->genererVue(array(
'actes' => $actes
));
}
}

View File

@ -0,0 +1,70 @@
<?php
$adminProd = $_SESSION['adminProd'];
?>
<?php if(count($actes) > "0"): ?>
Ajax consulter
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;" >
<thead >
<tr>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Détail") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Lettre Clé") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Désignation") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Effet") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond Acte") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nbre Actes") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Actif") ?> </th>
</tr>
</thead>
<tbody >
<?php foreach ($actes as $v):
$idActe = $this->nettoyer($v['id']);
$supprime = $v['supprime'];
$lettreCle = $this->nettoyer($v['lettreCle']);
$libelle = $this->nettoyer($v['description']);
if (est_anglophone())
{
$libelle = $this->nettoyer($v['descriptionEng']);
}
if($this->nettoyer($v['actif'])=="1"){
$actif = "Oui";
}else{
$actif = "Non";
}
?>
<?php if($supprime=='1'): ?>
<tr valign="top" style="text-decoration: line-through red;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td style='text-align:center; border: 2px solid #939597;'>
<button type="button" class="form-control btn btn-info" onClick="javascript:detail_baremeacte_lettre_cle_temp(<?= $idActe ?>, '<?= $lettreCle?>');">
<?= $idActe ?>
</button>
</td>
<td style='text-align:center; border: 2px solid #939597;'><?= $lettreCle ?></td>
<td style='border: 2px solid #939597;'><?= $libelle ?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= datefr($this->nettoyer($v['dateEffet'])); ?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= format_N($this->nettoyer($v['forfaitPlafond']));?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= $this->nettoyer($v['ticketModerateur']);?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= format_N($this->nettoyer($v['nbActes']));?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= $actif;?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<div class="col-12 alert alert-danger text-center">
<?= _("Aucune ligne insérée") ?>
</div>
<?php endif; ?>
<div class="modal fade" id="div_detail_bareme_actes" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false">
</div>

View File

@ -0,0 +1,103 @@
<?php
$adminProd = $_SESSION['adminProd'];
$idActesbaremepriseenchargelettrecle_temp = $_SESSION['idActesbaremepriseenchargelettrecle_temp'];
$lettreCle = $_SESSION['lettreCle'];
?>
<input type="hidden" id="idActesbaremepriseenchargelettrecle_temp" name="idActesbaremepriseenchargelettrecle_temp" value="<?= $idActesbaremepriseenchargelettrecle_temp ?>">
<input type="hidden" id="lettreCle" name="lettreCle" value="<?=$_SESSION['lettreCle']?>">
<div class="modal-dialog" style="max-width: 85%;" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal" >&times;</button>
<legend class="modal-title text-center"> <?= $lettreCle . " => " . _("Détail des actes impactés") ?> </legend>
</div>
<div class="modal-body">
<INPUT class="sr-only" TYPE="text" id="datejour" NAME="datejour" value="<?= datefr(date('Y/m/d')); ?>">
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
<?php if(count($detailactes) > "0"): ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;" >
<thead >
<tr>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Acte") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Coefficient") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond Acte") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Actif") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Ajout") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Suppr") ?> </th>
</tr>
</thead>
<tbody >
<?php foreach ($detailactes as $v):
$idActe = $this->nettoyer($v['id']);
$supprime = $v['supprime'];
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone())
{
$libelle = $this->nettoyer($v['libelleEng']);
}
if($this->nettoyer($v['actif'])=="1"){
$actif = "Oui";
}else{
$actif = "Non";
}
if($this->nettoyer($v['ajout'])=="1"){
$ajout = "Oui";
}else{
$ajout = "Non";
}
?>
<?php if($supprime=='1'): ?>
<tr valign="top" style="text-decoration: line-through red;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td style='border: 2px solid #939597;'><?= $libelle ?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= $this->nettoyer($v['coefficient']); ?> </td>
<td style='text-align:center; border: 2px solid #939597;'><?= format_N($this->nettoyer($v['forfaitPlafond']));?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= $this->nettoyer($v['ticketModerateur']);?></td>
<td style='text-align:center; border: 2px solid #939597;'><?= $actif;?></td>
<?php if($ajout=='Oui'): ?>
<td style='text-align:center; border: 2px solid #939597; background-color: #FFC107;'><?= $ajout;?></td>
<?php else: ?>
<td style='text-align:center; border: 2px solid #939597;'><?= $ajout;?></td>
<?php endif; ?>
<?php if($supprime=='0'): ?>
<td style='text-align:center; border: 2px solid #939597;'>
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_baremeacte_lettre_cle_detail_temp('<?= $adminProd?>',<?= $idActe ?>);">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
</td>
<?php else: ?>
<td style='text-align:center; border: 2px solid #939597;'> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<div class="col-12 alert alert-danger text-center">
<?= _("Aucune ligne insérée") ?>
</div>
<?php endif; ?>
</div>
<div class="modal-footer">
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal" >Fermer</button>
</div>
</div>
</div>

View File

@ -0,0 +1,19 @@
<?php
$adminSin = $_SESSION['adminSin'];
?>
<input type="hidden" id="idBaremePriseEnCharge" name="idBaremePriseEnCharge" value="<?=$_SESSION['idBaremePriseEnCharge']?>">
<input class="sr-only" id="adminSin" name="adminSin" type="text" value="<?= $adminSin ;?>" >
<div id="div_entete_bareme">
<legend class="text-center" style="margin-bottom: 10px; background-color: #a6a6a6; font-size:13pt; font-weight: bold; color: white;">
<?= _("Barème de prestations par lettres clés") ?>
</legend>
</div>
<div id="div_detail_bareme">
vue Consulter
<?php
require "Vue/Ajaxbaremelettrecletemp/consulter.php";
?>
</div>