ser
This commit is contained in:
parent
3dfd12a961
commit
603ec9dce2
|
|
@ -1,121 +1,73 @@
|
|||
<?php
|
||||
$idBareme = $_SESSION['idBaremePriseEnCharge'];
|
||||
$libelleBareme = $this->nettoyer($bareme['libelle']);
|
||||
$isAnglais = est_anglophone();
|
||||
?>
|
||||
|
||||
<div class="page-content animate__animated animate__fadeIn">
|
||||
<div class="mb-4">
|
||||
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-primary border-4 rounded">
|
||||
<div class="modal-dialog modal-dialog-centered shadow-lg">
|
||||
<div class="modal-content border-0">
|
||||
|
||||
<div class="modal-header border-bottom-0 pb-3 pt-4 px-4"
|
||||
style="background-color: var(--color-primary); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="bg-light text-primary rounded-circle me-3 d-flex align-items-center justify-content-center" style="width: 48px; height: 48px;">
|
||||
<i class="fas fa-cogs fs-4"></i>
|
||||
<div class="icon-shape bg-white text-primary rounded-circle me-3 d-flex align-items-center justify-content-center shadow-sm"
|
||||
style="width: 40px; height: 40px; color: var(--color-primary) !important;">
|
||||
<i class="fas fa-edit"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="mb-0 fw-bold text-uppercase"><?= _("Pilotage du Barème Modèle") ?></h4>
|
||||
<p class="text-muted small mb-0"><?= _("Structure") ?> : <span class="fw-bold text-dark"><?= $libelleBareme ?></span></p>
|
||||
<h5 class="modal-title fw-bold text-uppercase mb-0"
|
||||
style="color: #ffffff !important; letter-spacing: 0.5px; font-size: 1rem; font-family: 'Syne', sans-serif;">
|
||||
<?= _("Mise à jour du paramètre") ?>
|
||||
</h5>
|
||||
<small style="color: rgba(255,255,255,0.8); font-family: 'DM Sans', sans-serif;">
|
||||
<?= $this->nettoyer($typebon['libelleTypebon']) ?>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge bg-light text-primary border border-primary px-3">ID #<?= $idBareme ?></span>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="nomForm" name="nomForm" value="frmDetailBareme">
|
||||
<input type="hidden" id="idBaremePriseEnCharge" name="idBaremePriseEnCharge" value="<?= $idBareme ?>">
|
||||
<div class="modal-body p-4 bg-white">
|
||||
<input class="sr-only" type="text" id="idTypebon" name="idTypebon" value="<?= $this->nettoyer($typebon['idTypebon']) ?>">
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-12">
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-header bg-white py-3">
|
||||
<h6 class="mb-0 fw-bold text-primary text-uppercase small">
|
||||
<i class="fas fa-sync-alt me-2"></i><?= _("Taux applicables sur tous les actes") ?>
|
||||
</h6>
|
||||
</div>
|
||||
<div class="card-body bg-light">
|
||||
<div class="row g-3 align-items-end">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase"><?= _("Date de mise en vigueur") ?></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text bg-white"><i class="fas fa-calendar-alt text-primary"></i></span>
|
||||
<input type="text" id="dateEffetBareme" name="dateEffetBareme" class="form-control datepicker fw-bold text-center" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase"><?= _("Part Patient (TM) Global") ?></label>
|
||||
<div class="input-group">
|
||||
<input type="number" id="ticketModerateurBareme" name="ticketModerateurBareme" class="form-control fw-bold text-center" value="<?= $tmBareme ?>">
|
||||
<span class="input-group-text bg-white fw-bold">%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<button type="button" class="btn btn-primary w-100 fw-bold shadow-sm" onclick="inserer_bareme();">
|
||||
<?= _("Mettre à jour tous les actes") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="p-3 mb-4 rounded-3 border" style="background-color: #faf9f8; border-color: var(--border-light) !important;">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase mb-2" style="font-size: 0.65rem; letter-spacing: 0.05em;">
|
||||
<?= _("Configuration Actuelle") ?>
|
||||
</label>
|
||||
<div class="row g-2 text-center">
|
||||
<div class="col-6">
|
||||
<div class="small text-muted mb-1" style="font-size: 0.75rem;"><?= _("Durée") ?></div>
|
||||
<div class="h5 mb-0 fw-bold" style="color: var(--text-main);"><?= $this->nettoyer($typebon['dureeVie']) ?> <?= _("Jours") ?></div>
|
||||
</div>
|
||||
<div class="col-6 border-start" style="border-color: var(--border-light) !important;">
|
||||
<div class="small text-muted mb-1" style="font-size: 0.75rem;"><?= _("Gestion") ?></div>
|
||||
<div class="h5 mb-0 fw-bold" style="color: var(--text-main);"><?= $this->nettoyer($typebon['libelleTypeGestionBon']) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer bg-white p-0 text-center">
|
||||
<button class="btn btn-light w-100 rounded-0 small fw-bold py-2" onclick="afficherDetailBareme();">
|
||||
<i class="fas fa-history me-2"></i><?= _("Historique des changements") ?> <i id="span_bareme" class="fas fa-chevron-down ms-2"></i>
|
||||
</button>
|
||||
<div id="div_bareme" class="p-3 border-top" style="display:none;"></div>
|
||||
</div>
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase" style="font-size: 0.65rem;"><?= _("Nouvelle Durée (Jours)") ?></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text bg-light border-end-0 text-muted" style="border-color: var(--border-light);"><i class="fas fa-clock small"></i></span>
|
||||
<input id="dureeVie" name="dureeVie" class="form-control fw-bold shadow-none" type="number"
|
||||
style="border-color: var(--border-light); color: var(--text-main);"
|
||||
value="<?= $this->nettoyer($typebon['dureeVie']) ?>"
|
||||
onChange="this.value=supprimer_espace_nombre(this.value); controle_numerique(this);">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase" style="font-size: 0.65rem;"><?= _("Nouveau Type Gestion") ?></label>
|
||||
<select class="form-select fw-bold shadow-none" id="codeGestionBon" name="codeGestionBon" style="border-color: var(--border-light); color: var(--text-main);">
|
||||
<?php liste_options($typegestion, $typebon['codeGestionBon'], true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div class="card border-0 shadow-sm border-top border-primary border-4">
|
||||
<div class="card-header bg-white py-3 d-flex justify-content-between align-items-center">
|
||||
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><?= _("Détail par Famille") ?></h6>
|
||||
<span class="badge bg-primary rounded-pill"><?= count($garantiesajoutees) ?> <?= _("Familles") ?></span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="ps-4" width="120px"><?= _("Code") ?></th>
|
||||
<th><?= _("Libellé de la Famille") ?></th>
|
||||
<th class="text-center"><?= _("Actes Paramétrés") ?></th>
|
||||
<th class="text-center"><?= _("Non Paramétrés") ?></th>
|
||||
<th class="text-center" width="80px"><?= _("Action") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($garantiesajoutees as $v):
|
||||
$codeG = $this->nettoyer($v['codeGarantie']);
|
||||
$nomG = $isAnglais ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
|
||||
$actives = (int)$v['nbre_lignes_actives'];
|
||||
$inactives = (int)$v['nbre_lignes_inactives'];
|
||||
?>
|
||||
<tr style="cursor: pointer;" ondblclick="afficher_actes_garantiebareme(<?= $idBareme ?>,'<?= $codeG ?>');">
|
||||
<td class="ps-4"><code class="fw-bold text-primary"><?= $codeG ?></code></td>
|
||||
<td>
|
||||
<div class="fw-bold"><?= $nomG ?></div>
|
||||
<div class="text-muted extra-small italic"><?= _("Double-cliquez pour ouvrir") ?></div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="badge rounded-pill <?= $actives > 0 ? 'bg-success' : 'bg-light text-muted border' ?>">
|
||||
<?= str_pad($actives, 2, "0", STR_PAD_LEFT) ?>
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="badge rounded-pill <?= $inactives > 0 ? 'bg-danger' : 'bg-light text-muted border' ?>">
|
||||
<?= str_pad($inactives, 2, "0", STR_PAD_LEFT) ?>
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<button class="btn btn-sm btn-outline-primary rounded-circle" onclick="afficher_actes_garantiebareme(<?= $idBareme ?>,'<?= $codeG ?>');">
|
||||
<i class="fas fa-arrow-right"></i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer border-0 p-3" style="background-color: #faf9f8; border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg);">
|
||||
<button type="button" class="btn btn-light btn-sm px-3 fw-bold" style="color: var(--text-muted); border: 1px solid var(--border-light);" data-bs-dismiss="modal">
|
||||
<?= _("Annuler") ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm px-4 fw-bold shadow-sm" onclick="javascript:enregistrer_modif_type_bon();">
|
||||
<i class="fas fa-check-circle me-1"></i> <?= _("Appliquer") ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user