126 lines
6.9 KiB
PHP
126 lines
6.9 KiB
PHP
<div class="table-responsive" style="border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
|
|
<div id="div_patienter"></div>
|
|
<table class="table table-hover table-striped table-bordered" style="font-size: 12px; vertical-align: middle;">
|
|
<thead>
|
|
<tr >
|
|
<th class="text-center" style="border-bottom: 0; padding: 12px;"><?= _("Date Effet") ?></th>
|
|
<th class="text-center" style="border-bottom: 0;"><?= _("Mvt") ?></th>
|
|
<th style="border-bottom: 0;"><?= _("Bénéficiaire / Matricule") ?></th>
|
|
<th style="border-bottom: 0;"><?= _("Adhérent") ?></th>
|
|
<th class="text-center" style="border-bottom: 0;"><?= _("Lien") ?></th>
|
|
<th class="text-center" style="border-bottom: 0;"><?= _("Consulter") ?></th>
|
|
<th class="text-center" style="border-bottom: 0;"><?= _("Saisie / Par") ?></th>
|
|
<th class="text-center" style="border-bottom: 0;"><?= _("Prime Ttc") ?></th>
|
|
<th colspan="2" class="text-center" style="border-bottom: 0;"><?= _("Choix") ?></th>
|
|
</tr>
|
|
<tr style="background-color: #eee;">
|
|
<th colspan="8" style="text-align:center; padding: 5px;">
|
|
<input class="btn btn-primary btn-sm btn-block" type="button" value="<?= _("Valider la sélection") ?>" onClick="valider_mouvement_rh();">
|
|
</th>
|
|
<th style="text-align:center; padding: 5px;">
|
|
<input class="btn btn-info btn-sm" type="button" value="V" onClick="selectionner_mouvement_rh_tout('1');" style="width: 30px;">
|
|
</th>
|
|
<th style="text-align:center; padding: 5px;">
|
|
<input class="btn btn-danger btn-sm" type="button" value="X" onClick="selectionner_mouvement_rh_tout('0');" style="width: 30px;">
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($mouvementassures as $mvt):
|
|
$choix = $this->nettoyer($mvt['choix']);
|
|
$idMvtTemp = $this->nettoyer($mvt['id']);
|
|
$sensMvt = $mvt['sensMouvement'];
|
|
$libelleSensMouvement = est_anglophone() ? $mvt['libelleSensMouvementEng'] : $mvt['libelleSensMouvement'];
|
|
$nombreGed = $mvt['nombreGed'];
|
|
$idBeneficiaire = $mvt['idBeneficiaire'];
|
|
?>
|
|
<tr>
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<strong><?= dateLang($this->nettoyer($mvt['dateEffet']), $_SESSION['lang']) ?></strong>
|
|
</td>
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<?php if ($sensMvt == '1'): // Entrée ?>
|
|
<span class="label label-success" style="padding: 4px 8px; border-radius: 10px; display: inline-block;">
|
|
<span class="glyphicon glyphicon-import" style="margin-right: 3px;"></span> <?= $libelleSensMouvement ?>
|
|
</span>
|
|
<?php else: // Sortie ?>
|
|
<span class="label label-danger" style="padding: 4px 8px; border-radius: 10px; display: inline-block;">
|
|
<span class="glyphicon glyphicon-export" style="margin-right: 3px;"></span> <?= $libelleSensMouvement ?>
|
|
</span>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td style="vertical-align: middle;">
|
|
<div style="font-weight: bold; text-transform: uppercase; color: #333;"><?= $this->nettoyer($mvt['beneficiaire']) ?></div>
|
|
<div style="color: #777; font-size: 10px;">
|
|
<span class="glyphicon glyphicon-credit-card" style="margin-right: 3px;"></span><?= $this->nettoyer($mvt['numeroBeneficiaire']) ?>
|
|
</div>
|
|
</td>
|
|
|
|
<td style="vertical-align: middle; font-size: 11px;">
|
|
<span class="glyphicon glyphicon-briefcase" style="color: #999; margin-right: 3px;"></span> <?= $this->nettoyer($mvt['adherent']) ?>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<span class="label label-default" style="color: #555; background-color: #fff; border: 1px solid #ccc;"><?= $this->nettoyer($mvt['codeLienParente']) ?></span>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<?php if ($nombreGed > '0'): ?>
|
|
<button class="btn btn-primary btn-xs" onClick="javascript:consulter_ged_assure_mvt('<?= $idBeneficiaire ?>');">
|
|
<?= _("GED") ?>
|
|
</button>
|
|
<?php else: ?>
|
|
<span style="color: #ccc;">-</span>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<div style="font-size: 10px;"><?= dateheureLang($this->nettoyer($mvt['dateSysteme'])) ?></div>
|
|
<div style="font-size: 9px; color: #777; font-weight: bold;"><?= $this->nettoyer($mvt['codeUtilisateur']) ?></div>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<span class="label label-default" style="color: #555; background-color: #fff; border: 1px solid #ccc;"><?= format_N($this->nettoyer($mvt['primeTtc'])) ?></span>
|
|
</td>
|
|
|
|
<td colspan="2" class="text-center" style="vertical-align: middle;">
|
|
<?php //if ($nombreGed > '0'): ?>
|
|
<input type="checkbox"
|
|
<?= ($choix == '1') ? 'checked' : '' ?>
|
|
value="<?= $choix ?>"
|
|
onClick="javascript:this.value=(this.value=='1'?'0':'1');selectionner_mouvement_rh(<?= $idMvtTemp ?>, this.value);">
|
|
|
|
<?php //else: ?>
|
|
<!-- <span style="color: #ccc;">-</span>-->
|
|
<?php //endif; ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_ged" class="modal fade" tabindex="-1" role="dialog"></div>
|
|
|
|
<style>
|
|
/* Simulation des comportements de la version précédente en BS3 */
|
|
.table > tbody > tr > td {
|
|
vertical-align: middle !important;
|
|
border-top: 1px solid #f2f2f2;
|
|
}
|
|
|
|
.label-default {
|
|
font-weight: normal;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
/* Animation simple */
|
|
.table-responsive {
|
|
animation: fadeIn 0.4s ease;
|
|
}
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; } to { opacity: 1; }
|
|
}
|
|
</style>
|