This commit is contained in:
KONE SOREL 2026-02-26 15:38:40 +00:00
parent 3b34a3a19d
commit 5e2a50ddfb

View File

@ -14,7 +14,7 @@
<h4 class="mb-0 fw-bold" style="color: var(--color-primary); letter-spacing: -0.5px;"><?= _("Paramètres Système") ?></h4>
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0 small">
<li class="breadcrumb-item text-muted"><?= $this->nettoyer($societeuser['nomSociete']) ?></li>
<li class="breadcrumb-item text-dark"><?= $this->nettoyer($societeuser['nomSociete']) ?></li>
<li class="breadcrumb-item active text-primary fw-medium" aria-current="page"><?= _("Configuration Globale") ?></li>
</ol>
</nav>
@ -32,41 +32,41 @@
<div class="col-xl-7">
<div class="card border-0 shadow-sm h-100" style="border-radius: var(--radius-md);">
<div class="card-header bg-transparent border-0 pt-4 px-4">
<h6 class="fw-bold mb-0 text-uppercase small text-muted" style="letter-spacing: 1px;">
<h6 class="fw-bold mb-0 text-uppercase small text-dark" style="letter-spacing: 1px;">
<i class="fas fa-id-badge me-2 text-primary"></i><?= _("Profil Institutionnel") ?>
</h6>
</div>
<div class="card-body p-4">
<div class="row g-3">
<div class="col-md-3">
<label class="form-label small text-muted fw-bold"><?= _("Code") ?></label>
<label class="form-label small text-dark fw-bold"><?= _("Code") ?></label>
<div class="p-2 bg-light border rounded text-center fw-bold text-primary"><?= $this->nettoyer($societeuser['codeSociete']) ?></div>
</div>
<div class="col-md-6">
<label class="form-label small text-muted fw-bold"><?= _("Dénomination") ?></label>
<label class="form-label small text-dark fw-bold"><?= _("Dénomination") ?></label>
<input class="form-control border-0 bg-light" type="text" value="<?=$this->nettoyer($societeuser['nomSociete'])?>" readonly>
</div>
<div class="col-md-3">
<label class="form-label small text-muted fw-bold"><?= _("Sigle") ?></label>
<label class="form-label small text-dark fw-bold"><?= _("Sigle") ?></label>
<input class="form-control border-0 bg-light" type="text" value="<?=$this->nettoyer($societeuser['sigleSociete'])?>" readonly>
</div>
<div class="col-12 mt-4">
<div class="row g-3 p-3 rounded" style="background-color: #f8f9fa;">
<div class="col-md-6">
<label class="form-label small text-muted"><i class="fas fa-map-marker-alt me-1"></i> <?= _("Siège Social") ?></label>
<label class="form-label small text-dark"><i class="fas fa-map-marker-alt me-1"></i> <?= _("Siège Social") ?></label>
<textarea class="form-control form-control-sm border-0 bg-white" rows="2" readonly><?=$this->nettoyer($societeuser['adresseGeoSociete'])?></textarea>
</div>
<div class="col-md-6">
<label class="form-label small text-muted"><i class="fas fa-box me-1"></i> <?= _("Boite Postale") ?></label>
<label class="form-label small text-dark"><i class="fas fa-box me-1"></i> <?= _("Boite Postale") ?></label>
<textarea class="form-control form-control-sm border-0 bg-white" rows="2" readonly><?=$this->nettoyer($societeuser['adressePostSociete'])?></textarea>
</div>
<div class="col-md-6">
<label class="form-label small text-muted"><?= _("Ville") ?></label>
<label class="form-label small text-dark"><?= _("Ville") ?></label>
<input class="form-control form-control-sm border-0 bg-white" type="text" value="<?=$this->nettoyer($societeuser['ville'])?>" readonly>
</div>
<div class="col-md-6">
<label class="form-label small text-muted"><?= _("Pays") ?></label>
<label class="form-label small text-dark"><?= _("Pays") ?></label>
<input class="form-control form-control-sm border-0 bg-white fw-bold" type="text" value="<?=$societeuser['pays']?>" readonly>
</div>
</div>
@ -85,24 +85,24 @@
</div>
</div>
<h6 class="fw-bold mb-1"><?= $this->nettoyer($societeuser['nomResponsable']) ?></h6>
<p class="text-muted small"><?= _("Responsable du Centre") ?></p>
<p class="text-dark small"><?= _("Responsable du Centre") ?></p>
</div>
<div class="card-body px-4 pt-0">
<ul class="list-group list-group-flush border-top border-light">
<li class="list-group-item d-flex justify-content-between align-items-center px-0 py-3 bg-transparent">
<span class="small text-muted"><i class="fas fa-phone-alt me-2 text-primary opacity-50"></i><?= _("Standard Fixe") ?></span>
<span class="small text-dark"><i class="fas fa-phone-alt me-2 text-primary opacity-50"></i><?= _("Standard Fixe") ?></span>
<span class="fw-medium"><?= $this->nettoyer($societeuser['telephoneSociete']) ?></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center px-0 py-3 bg-transparent">
<span class="small text-muted"><i class="fas fa-mobile-alt me-2 text-primary opacity-50"></i><?= _("Ligne Directe") ?></span>
<span class="small text-dark"><i class="fas fa-mobile-alt me-2 text-primary opacity-50"></i><?= _("Ligne Directe") ?></span>
<span class="fw-medium"><?= $this->nettoyer($societeuser['portable']) ?></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center px-0 py-3 bg-transparent">
<span class="small text-muted"><i class="fas fa-envelope me-2 text-primary opacity-50"></i><?= _("Email Officiel") ?></span>
<span class="small text-dark"><i class="fas fa-envelope me-2 text-primary opacity-50"></i><?= _("Email Officiel") ?></span>
<span class="fw-medium"><?= $this->nettoyer($societeuser['emailSociete']) ?></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center px-0 py-3 bg-transparent border-bottom-0">
<span class="small text-muted"><i class="fas fa-fax me-2 text-primary opacity-50"></i><?= _("Fax") ?></span>
<span class="small text-dark"><i class="fas fa-fax me-2 text-primary opacity-50"></i><?= _("Fax") ?></span>
<span class="fw-medium"><?= $this->nettoyer($societeuser['faxSociete']) ?></span>
</li>
</ul>
@ -116,7 +116,7 @@
<i class="fas fa-envelope-open-text me-3 text-primary fs-5"></i>
<div>
<h6 class="mb-0 fw-bold"><?= _("Points de Contact par Service") ?></h6>
<p class="mb-0 text-muted small"><?= _("Configuration des passerelles emails pour la gestion automatisée") ?></p>
<p class="mb-0 text-dark small"><?= _("Configuration des passerelles emails pour la gestion automatisée") ?></p>
</div>
</div>
<div class="card-body p-4">
@ -140,12 +140,12 @@
<span class="small fw-bold text-dark"><?= _($s['l']) ?></span>
</div>
<div class="mb-2">
<label class="text-muted" style="font-size: 0.65rem; text-uppercase; font-weight: 700;"><?= _("Email Service") ?></label>
<label class="text-dark" style="font-size: 0.65rem; text-uppercase; font-weight: 700;"><?= _("Email Service") ?></label>
<div class="small text-truncate text-primary"><?= $this->nettoyer($societeuser[$s['v']]) ?></div>
</div>
<?php if($s['sms']): ?>
<div>
<label class="text-muted" style="font-size: 0.65rem; text-uppercase; font-weight: 700;"><?= _("SMS Alertes") ?></label>
<label class="text-dark" style="font-size: 0.65rem; text-uppercase; font-weight: 700;"><?= _("SMS Alertes") ?></label>
<div class="small text-dark fw-medium"><?= $this->nettoyer($societeuser[$s['sms']]) ?></div>
</div>
<?php endif; ?>
@ -167,11 +167,11 @@
<i class="fas fa-chart-line"></i>
</div>
<div class="flex-grow-1">
<label class="form-label small text-muted mb-0"><?= _("Alerte Consommation") ?></label>
<label class="form-label small text-dark mb-0"><?= _("Alerte Consommation") ?></label>
<div class="d-flex align-items-center mt-1">
<span class="h4 mb-0 fw-bold text-dark"><?= $this->nettoyer($societeuser['alertLimiteConsommation']) ?></span>
<span class="ms-1 text-muted fw-bold">%</span>
<div class="ms-3 small text-muted text-truncate" style="max-width: 150px;" title="<?= $this->nettoyer($societeuser['emailAlertLimiteConsommation']) ?>">
<span class="ms-1 text-dark fw-bold">%</span>
<div class="ms-3 small text-dark text-truncate" style="max-width: 150px;" title="<?= $this->nettoyer($societeuser['emailAlertLimiteConsommation']) ?>">
<i class="fas fa-paper-plane me-1"></i><?= $this->nettoyer($societeuser['emailAlertLimiteConsommation']) ?>
</div>
</div>
@ -185,7 +185,7 @@
<i class="fas fa-shield-alt"></i>
</div>
<div>
<label class="form-label small text-muted mb-0"><?= _("Taux Alerte S/P Max") ?></label>
<label class="form-label small text-dark mb-0"><?= _("Taux Alerte S/P Max") ?></label>
<div class="h4 mb-0 fw-bold text-danger"><?= $this->nettoyer($societeuser['spMax']) ?> <small class="fs-6">%</small></div>
</div>
</div>
@ -197,14 +197,14 @@
<i class="fas fa-credit-card"></i>
</div>
<div>
<label class="form-label small text-muted mb-0"><?= _("Tarif Carte AFN") ?></label>
<div class="h4 mb-0 fw-bold text-dark"><?= format_N($this->nettoyer($societeuser['fraisCarteAN'])) ?> <small class="fs-6 fw-normal text-muted">FCFA</small></div>
<label class="form-label small text-dark mb-0"><?= _("Tarif Carte AFN") ?></label>
<div class="h4 mb-0 fw-bold text-dark"><?= format_N($this->nettoyer($societeuser['fraisCarteAN'])) ?> <small class="fs-6 fw-normal text-dark">FCFA</small></div>
</div>
</div>
</div>
<div class="col-md-2">
<label class="form-label small text-muted mb-1"><?= _("Logs Visites") ?></label>
<label class="form-label small text-dark mb-1"><?= _("Logs Visites") ?></label>
<?php
$logStatus = $this->nettoyer($societeuser['activerLogVisitePages']);
$badgeClass = ($logStatus == 'OUI' || $logStatus == '1') ? 'bg-success' : 'bg-secondary';