This commit is contained in:
KONE SOREL 2025-12-29 14:49:49 +00:00
parent 3581acb862
commit 5e3fe29257
2 changed files with 18 additions and 17 deletions

View File

@ -433,7 +433,7 @@ require_once 'Framework/Localisation.php';
} }
$this->requete->getSession()->setAttribut("dossierSociete", $filename); $this->requete->getSession()->setAttribut("dossierSociete", $filename);
$this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienAssure_C'].$_SESSION['dossierSociete'].'/Ged/'); $this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienProduction_C'].$_SESSION['dossierSociete'].'/Ged/');
$this->requete->getSession()->setAttribut("cheminGed", $_SESSION['dossierSociete'].'/Ged/'); $this->requete->getSession()->setAttribut("cheminGed", $_SESSION['dossierSociete'].'/Ged/');
$this->requete->getSession()->setAttribut("devise_C", $utilisateur['devise']); $this->requete->getSession()->setAttribut("devise_C", $utilisateur['devise']);

View File

@ -126,29 +126,30 @@
</h6> </h6>
<form enctype="multipart/form-data" action="Fichepolice" method="post" class="row g-3"> <form enctype="multipart/form-data" action="Fichepolice" method="post" class="row g-3">
<div class="col-md-9"> <!-- Zone d'information sur les extensions -->
<input class="form-control custom-file-input" name="fichier_upload" type="file" id="fichier_upload"> <div class="alert alert-info mt-2 py-2 small col-md-12">
<strong><?= _("Extensions autorisées :") ?></strong>
<!-- Zone d'information sur les extensions --> <div class="d-flex flex-wrap mt-2">
<div class="alert alert-info mt-2 py-2 small w-100"> <?php foreach ($tabExt as $ext): ?>
<strong><?= _("Extensions autorisées :") ?></strong> <?php
<div class="d-flex flex-wrap mt-2"> $style = isset($extStyles[$ext]) ? $extStyles[$ext] : ["color" => "secondary", "icon" => "fas fa-file"];
<?php foreach ($tabExt as $ext): ?> ?>
<?php <span class="badge bg-<?= $style["color"] ?> me-2 mb-2">
$style = isset($extStyles[$ext]) ? $extStyles[$ext] : ["color" => "secondary", "icon" => "fas fa-file"]; <i class="<?= $style["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
?> </span>
<span class="badge bg-<?= $style["color"] ?> me-2 mb-2"> <?php endforeach; ?>
<i class="<?= $style["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
</span>
<?php endforeach; ?>
</div>
</div> </div>
</div> </div>
<div class="col-md-9">
<input class="form-control custom-file-input" name="fichier_upload" type="file" id="fichier_upload">
</div>
<div class="col-md-3"> <div class="col-md-3">
<button type="submit" name="submit" class="btn btn-secondary w-100 fw-bold"> <button type="submit" name="submit" class="btn btn-secondary w-100 fw-bold">
<i class="fas fa-paper-plane me-2"></i><?= _("Envoyer") ?> <i class="fas fa-paper-plane me-2"></i><?= _("Envoyer") ?>
</button> </button>
</div> </div>
</form> </form>
<?php if(isset($msgErreur) && trim($msgErreur) != ""): ?> <?php if(isset($msgErreur) && trim($msgErreur) != ""): ?>