registre
This commit is contained in:
parent
2d7932d392
commit
b35b089f78
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
@ -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; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user