newdesigngestionnaire/Vue/Modifparamseuilalerte/index.php
2026-03-06 11:04:22 +00:00

64 lines
3.5 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$codeGcAssureur = isset($_SESSION['codeGcAssureur_S']) ? $_SESSION['codeGcAssureur_S'] : "";
$codeProduit = isset($_SESSION['codeProduit_S']) ? $_SESSION['codeProduit_S'] : "";
?>
<div class="page-content">
<div class="header-section mb-4">
<div class="bg-white p-3 shadow-sm border-start border-warning border-4" style="border-radius: var(--radius-md);">
<div class="d-flex align-items-center mb-3">
<div class="icon-shape bg-warning-ghost text-warning rounded-circle me-3" style="width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-edit fs-5"></i>
</div>
<div>
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Modification des Seuils de consommation") ?></h4>
<p class="text-muted small mb-0"><?= _("Ajustez les taux et forfaits d'alerte par produit de santé") ?></p>
</div>
</div>
<div class="row g-2 align-items-end p-2 rounded-3 border" style="background-color: #fafafa;">
<div class="col-md-5">
<label class="form-label small fw-bold text-muted ps-2 mb-1"><?= _("Garant") ?></label>
<select class="form-select selectpicker w-100" data-live-search="true" id="codeGcAssureur" name="codeGcAssureur" required onchange="javascript:filtreproduitgarant();">
<?php liste_options($garant, $codeGcAssureur); ?>
</select>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted ps-2 mb-1"><?= _("Produit Santé") ?></label>
<div id="div_produit">
<select class="form-select selectpicker w-100" data-live-search="true" id="codeProduit" name="codeProduit" required>
<?php liste_options($produits, $codeProduit); ?>
</select>
</div>
</div>
<div class="col-md-2">
<button class="btn btn-warning w-100 fw-bold text-white shadow-sm" onclick="javascript:afficher_garantie_produit();">
<i class="fas fa-search me-2"></i><?= _("Actualiser") ?>
</button>
</div>
</div>
</div>
</div>
<div id="div_garantieproduit" class="mt-4">
<?php if($codeGcAssureur != "" && $codeProduit != ""): ?>
<script>window.addEventListener('load', function() { afficher_garantie_produit(); });</script>
<?php else: ?>
<div class="text-center p-5 bg-white shadow-sm rounded-3">
<div class="icon-shape bg-light text-muted rounded-circle mx-auto mb-3" style="width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-mouse-pointer fa-2x"></i>
</div>
<h6 class="text-muted"><?= _("Sélectionnez un couple Garant/Produit pour modifier les seuils") ?></h6>
</div>
<?php endif; ?>
</div>
</div>
<style>
.bg-warning-ghost { background-color: rgba(243, 156, 18, 0.1) !important; color: #e67e22 !important; }
.breadcrumb-item + .breadcrumb-item::before { content: ""; }
.form-select.selectpicker + .btn { border: 2px solid #eee !important; border-radius: 8px; }
</style>