production/Vue/Collegepolice/index.php
2025-12-01 16:12:12 +00:00

113 lines
4.4 KiB
PHP
Executable File

<?php
$this->titre = "INTER SANTE - Collèges de la police";
$superUser = $_SESSION['superUser'];
$nbreTotal = count($colleges);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
?>
<INPUT class="sr-only" TYPE="text" id="nomForm" NAME="nomForm" value="collegepolice" readonly>
<script type="text/javascript">
</script>
<FORM method="POST">
<INPUT class="sr-only" TYPE="text" id="idCollege" name="idCollege" >
<fieldset>
<legend><?= _("Liste des collèges de la police Numéro") . " : " . $this->nettoyer($police['numeroPolice']) ?></legend>
<div class="tab-container">
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("ID") ?> </th>
<th> <?= _("Collège") ?> </th>
<th style='text-align:center'> <?= _("Produit") ?> </th>
<th style="text-align:center" > <?= _("Mode Prime") ?> </th>
<th style='text-align:center'> <?= _("Tarification") ?> </th>
<th style='text-align:center'> <?= _("Ouvrir") ?> </th>
<th style='text-align:center'> <?= _("Validation") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($colleges as $college):
$idCollege=$college['id'];
$codeModecalculPrime=$this->nettoyer($college['codeModecalculPrime']);
$modeprime = $this->nettoyer($college['modeprime']);
$libelleProduit = $this->nettoyer($college['produit']);
$tarification = $this->nettoyer($college['tarification']);
if (est_anglophone()){
$libelleProduit = $this->nettoyer($college['produitEng']);
$modeprime = $this->nettoyer($college['modeprimeEng']);
$tarification = $this->nettoyer($college['tarificationEng']);
}
$archive = $college['garantieArchive'];
?>
<?php if($codeModecalculPrime=='TA'): ?>
<tr valign="top" style="background-color: #ffefd5;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'> <?= $idCollege ?> </td>
<td> <?= $this->nettoyer($college['libelleCollege']) ?> </td>
<td > <?= $libelleProduit ?> </td>
<td align='center'> <?= $modeprime ?> </td>
<td> <?= $tarification ?> </td>
<!--
<td align='center'><?= format_N($this->nettoyer($college['nbAdherent'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($college['nbAyantdroit'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($college['nbPersonne'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($college['primeTtcTotal'])) ?></td>
-->
<?php if($archive=='1'): ?>
<td align='center'> <input style="font-size:10pt;" class = "form-control btn btn-primary" type="button"
value="<?= _("Consulter") ?>"
onClick="javascript:selectionner_college(<?= $idCollege ?>);
consulter_college(<?= $idCollege ?>)">
</td>
<?php if ($superUser=="1"): ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-warning" type="button" value="<?= _("Dévalider") ?>" onClick="javascript:de_archiver_garantie_college('<?= $idCollege ?>');"></td>
<?php else : ?>
<td> </td>
<?php endif; ?>
<?php else: ?>
<td align='center'> <input style="font-size:10pt;" class = "form-control btn btn-primary" type="button"
value="<?= _("Modifier") ?>"
onClick="javascript:selectionner_college(<?= $idCollege ?>);
modifier_college(<?= $idCollege ?>)">
</td>
<td> <input style="font-size:10pt;" class = "form-control btn btn-info" type="button" value="<?= _("Valider") ?>" onClick="javascript:archiver_garantie_college('<?= $idCollege ?>');"></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</fieldset>
</FORM>