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("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("devise_C", $utilisateur['devise']);

View File

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