171 lines
11 KiB
PHP
Executable File
171 lines
11 KiB
PHP
Executable File
<div class="page-content">
|
|
<input class="sr-only" type="text" id="idSocieteuser" name="idSocieteuser" value="<?= $this->nettoyer($societeuser['idSocieteuser']) ?>">
|
|
|
|
<div class="header-section mb-4">
|
|
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-primary border-4" style="border-radius: var(--radius-md);">
|
|
<div class="d-flex align-items-center">
|
|
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
|
|
<i class="fas fa-sliders-h fs-4"></i>
|
|
</div>
|
|
<div>
|
|
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Configuration Globale") ?></h4>
|
|
<p class="text-muted small mb-0"><?= _("Profil institutionnel et passerelles de communication du centre") ?></p>
|
|
</div>
|
|
</div>
|
|
<div class="text-end d-none d-md-block">
|
|
<span class="badge bg-light text-dark border px-3 py-2 fw-bold" style="border-radius: var(--radius-sm);">
|
|
<i class="fas fa-globe me-2 text-primary"></i><?= $this->nettoyer($_SESSION['libelleLang']) ?>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row g-4">
|
|
<div class="col-xl-7">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-header bg-white py-3 border-bottom border-light">
|
|
<h6 class="mb-0 fw-bold text-primary text-uppercase small" style="letter-spacing: 1px;">
|
|
<i class="fas fa-id-badge me-2"></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-dark fw-bold"><?= _("Code Interne") ?></label>
|
|
<div class="p-2 bg-light border-0 rounded text-center fw-bold text-primary"><?= $this->nettoyer($societeuser['codeSociete']) ?></div>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<label class="form-label small text-dark fw-bold"><?= _("Dénomination Officielle") ?></label>
|
|
<input class="form-control border-0 bg-light fw-bold text-dark" type="text" value="<?=$this->nettoyer($societeuser['nomSociete'])?>" readonly>
|
|
</div>
|
|
|
|
<div class="col-12 mt-4">
|
|
<div class="p-3 rounded-3 bg-primary-ghost border border-white">
|
|
<div class="row g-3">
|
|
<div class="col-md-6">
|
|
<label class="form-label small fw-bold text-dark"><i class="fas fa-map-marker-alt me-1 text-primary"></i> <?= _("Siège Social") ?></label>
|
|
<div class="small fw-medium text-dark bg-white p-2 rounded border-light border"><?= $this->nettoyer($societeuser['adresseGeoSociete']) ?></div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small fw-bold text-dark"><i class="fas fa-box me-1 text-primary"></i> <?= _("Boite Postale") ?></label>
|
|
<div class="small fw-medium text-dark bg-white p-2 rounded border-light border"><?= $this->nettoyer($societeuser['adressePostSociete']) ?></div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small fw-bold text-dark"><?= _("Ville") ?></label>
|
|
<input class="form-control form-control-sm border-0 bg-white fw-bold" type="text" value="<?=$this->nettoyer($societeuser['ville'])?>" readonly>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small fw-bold text-dark"><?= _("Pays") ?></label>
|
|
<input class="form-control form-control-sm border-0 bg-white fw-bold text-primary" type="text" value="<?=$societeuser['pays']?>" readonly>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xl-5">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-header bg-white py-3 border-bottom border-light text-center">
|
|
<div class="icon-shape bg-primary-ghost text-primary rounded-circle mx-auto mb-2" style="width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;">
|
|
<i class="fas fa-user-tie fs-4"></i>
|
|
</div>
|
|
<h6 class="fw-bold mb-0 text-dark"><?= $this->nettoyer($societeuser['nomResponsable']) ?></h6>
|
|
<span class="badge bg-primary-ghost text-primary rounded-pill small mt-1"><?= _("Responsable du Centre") ?></span>
|
|
</div>
|
|
<div class="card-body px-4">
|
|
<ul class="list-group list-group-flush">
|
|
<li class="list-group-item d-flex justify-content-between align-items-center px-0 py-3 bg-transparent">
|
|
<span class="small text-dark fw-bold"><i class="fas fa-phone-alt me-2 text-primary opacity-50"></i><?= _("Standard Fixe") ?></span>
|
|
<span class="fw-bold text-dark"><?= $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-dark fw-bold"><i class="fas fa-mobile-alt me-2 text-primary opacity-50"></i><?= _("Ligne Directe") ?></span>
|
|
<span class="fw-bold text-primary"><?= $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-dark fw-bold"><i class="fas fa-envelope me-2 text-primary opacity-50"></i><?= _("Email Officiel") ?></span>
|
|
<span class="fw-bold text-dark small"><?= $this->nettoyer($societeuser['emailSociete']) ?></span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="card border-0 shadow-sm">
|
|
<div class="card-header bg-white py-3 border-bottom border-light d-flex align-items-center">
|
|
<i class="fas fa-envelope-open-text me-3 text-primary fs-5"></i>
|
|
<div>
|
|
<h6 class="mb-0 fw-bold"><?= _("Passerelles de Notification par Service") ?></h6>
|
|
<p class="mb-0 text-muted small"><?= _("Canaux de communication automatisés pour la gestion des flux") ?></p>
|
|
</div>
|
|
</div>
|
|
<div class="card-body p-4">
|
|
<div class="row g-3">
|
|
<?php
|
|
$services = [
|
|
['l' => 'Médecin Conseil', 'v' => 'emailMedecinConseil', 'i' => 'fa-user-md', 'sms' => 'smsMedecinConseil'],
|
|
['l' => 'Gestion des Bons', 'v' => 'emailGestionBon', 'i' => 'fa-ticket-alt', 'sms' => 'smsGestionBon'],
|
|
['l' => 'Dérogation', 'v' => 'emailDerogation', 'i' => 'fa-exclamation-circle', 'sms' => 'smsDerogation'],
|
|
['l' => 'Remboursements', 'v' => 'emailRd', 'i' => 'fa-hand-holding-usd', 'sms' => 'smsRd'],
|
|
];
|
|
foreach($services as $s): ?>
|
|
<div class="col-md-6 col-lg-3">
|
|
<div class="p-3 border rounded-3 bg-light hover-shadow-sm transition-all h-100">
|
|
<div class="d-flex align-items-center mb-2">
|
|
<i class="fas <?= $s['i'] ?> text-primary opacity-50 me-2"></i>
|
|
<span class="small fw-bold text-dark text-uppercase" style="font-size: 0.7rem;"><?= _($s['l']) ?></span>
|
|
</div>
|
|
<div class="small text-primary fw-bold text-truncate mb-1"><?= $this->nettoyer($societeuser[$s['v']]) ?></div>
|
|
<div class="small text-muted"><i class="fas fa-sms me-1"></i> <?= $this->nettoyer($societeuser[$s['sms']]) ?></div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-5">
|
|
<div class="card border-0 shadow-sm bg-primary text-white" style="border-radius: var(--radius-md);">
|
|
<div class="card-body p-4">
|
|
<div class="row g-4 text-center">
|
|
<div class="col-md-4 border-end border-white border-opacity-25">
|
|
<label class="small text-white text-opacity-75 text-uppercase fw-bold"><?= _("Alerte Conso") ?></label>
|
|
<div class="h3 mb-0 fw-bold"><?= $this->nettoyer($societeuser['alertLimiteConsommation']) ?> %</div>
|
|
</div>
|
|
<div class="col-md-4 border-end border-white border-opacity-25">
|
|
<label class="small text-white text-opacity-75 text-uppercase fw-bold"><?= _("Taux S/P Max") ?></label>
|
|
<div class="h3 mb-0 fw-bold text-warning"><?= $this->nettoyer($societeuser['spMax']) ?> %</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="small text-white text-opacity-75 text-uppercase fw-bold"><?= _("Frais Carte AFN") ?></label>
|
|
<div class="h3 mb-0 fw-bold"><?= format_N($this->nettoyer($societeuser['fraisCarteAN'])) ?> <small class="fs-6">FCFA</small></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.header-section {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1020;
|
|
background: rgba(244, 247, 250, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
padding: 10px 0;
|
|
}
|
|
#titre-page {
|
|
color: var(--color-primary);
|
|
letter-spacing: -0.5px;
|
|
}
|
|
.bg-primary-ghost { background: rgba(33, 46, 83, 0.08) !important; }
|
|
.transition-all { transition: all 0.3s ease; }
|
|
.hover-shadow-sm:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important; }
|
|
</style>
|