This commit is contained in:
KONE SOREL 2025-12-27 22:05:52 +00:00
parent 2d7932d392
commit b35b089f78
2 changed files with 14 additions and 8 deletions

View File

@ -11,4 +11,14 @@ class Ged extends Modele {
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function enregistrergedfichepolice($idPolice, $nomOrigine, $nouveau_fichier, $taille)
{
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
$user = $_SESSION['login'];
$sql = 'call sp_r_ajouter_ged_fiche_police(?, ?, ?, ?, ?)';
$this->executerRequete($sql, array($idPolice, $nomOrigine, $cheminFichier, $taille, $user));
}
}

View File

@ -19,6 +19,7 @@
<div id="div_police" class="container-fluid py-4">
<input type="hidden" id="gestionConfiee" value="<?= $this->nettoyer($police['gestionConfiee']) ?>">
<input type="hidden" id="prestationPossible" value="<?= $prestationPossible ?>">
<input type="hidden" id="idPolice_C" value="<?= $_SESSION['idPolice_C'] ?>">
<h1 class="text-primary"><i class="fas fa-shield-alt me-2"></i></i> <?= _('Fiche Police') ?></h1>
@ -154,14 +155,9 @@
<?= $this->nettoyer($ged['nomOrigine']) ?>
</td>
<td class="text-center">
<div class="btn-group btn-group-sm">
<a href="<?= $this->nettoyer($ged['cheminFichier']) ?>" target="_blank" class="btn btn-light border" title="Télécharger">
<i class="fas fa-download text-primary"></i>
</a>
<button type="button" class="btn btn-light border" onclick="javascript:supprimer_ged(<?= $this->nettoyer($ged['idGed']) ?>);" title="Supprimer">
<i class="fas fa-trash text-danger"></i>
</button>
</div>
<a href="<?= $this->nettoyer($ged['cheminFichier']) ?>" target="_blank" class="btn btn-light border" title="Télécharger">
<i class="fas fa-download text-primary"></i>
</a>
</td>
</tr>
<?php endforeach; ?>