a
This commit is contained in:
parent
7b99722098
commit
37cdd36c89
|
|
@ -156,18 +156,15 @@ class Beneficiaire extends Modele {
|
|||
$_SESSION['faceRegistered_C'] = $context['faceRegistered'];
|
||||
|
||||
$photoFace = "";
|
||||
|
||||
if ($_SESSION['lienPhoto_C']>" ")
|
||||
$photo = "";
|
||||
$_SESSION['photoAssureCrypte'] = "";
|
||||
|
||||
if ($_SESSION['faceRegistered_C'] == "1" && $_SESSION['lienPhoto_C']>" ")
|
||||
{
|
||||
$photoFace = $_SESSION['dossierSociete'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'];
|
||||
/*
|
||||
if(!@fopen($photoFace, 'r'))
|
||||
{
|
||||
$_SESSION['lienPhoto_C'] = "";
|
||||
}
|
||||
*/
|
||||
$photo = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'];
|
||||
$_SESSION['photoAssureCrypte'] = $photo;
|
||||
}
|
||||
|
||||
$photoFace = $photo;
|
||||
}
|
||||
|
||||
public function getContexteBeneficiaireAssure($id) {
|
||||
|
|
@ -214,20 +211,16 @@ class Beneficiaire extends Modele {
|
|||
$_SESSION['fraisFunerairePaye_C'] = $context['fraisFunerairePaye'];
|
||||
$_SESSION['garantieArchive_C'] = $context['garantieArchive'];
|
||||
|
||||
// vérifier que la photo du bénéficiaire existe
|
||||
|
||||
$photoFace = "";
|
||||
|
||||
if ($_SESSION['lienPhoto_C']>" ")
|
||||
$photo = "";
|
||||
$_SESSION['photoAssureCrypte'] = "";
|
||||
|
||||
if ($_SESSION['faceRegistered_C'] == "1" && $_SESSION['lienPhoto_C']>" ")
|
||||
{
|
||||
$photoFace = $_SESSION['dossierSociete'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'];
|
||||
/*
|
||||
if(!@fopen($photoFace, 'r'))
|
||||
{
|
||||
$_SESSION['lienPhoto_C'] = "";
|
||||
}
|
||||
*/
|
||||
$photo = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'];
|
||||
$_SESSION['photoAssureCrypte'] = $photo;
|
||||
}
|
||||
$photoFace = $photo;
|
||||
}
|
||||
|
||||
public function getContexteAdherentId($id) {
|
||||
|
|
|
|||
|
|
@ -284,6 +284,14 @@
|
|||
|
||||
</FORM>
|
||||
|
||||
<img
|
||||
src="<?=$photoAssureCrypte?>"
|
||||
class="img-fluid rounded-circle shadow"
|
||||
style="width: 120px; height: 120px; object-fit: cover; cursor:pointer;"
|
||||
data-bs-toggle="modal"
|
||||
data-bs-target="#pop_photo"
|
||||
alt="Photo du bénéficiaire">
|
||||
|
||||
<form enctype="multipart/form-data" action="Fichebeneficiaire/<?= $_SESSION['idBeneficiaire_C'] ?>/" method="post">
|
||||
<?php if ($beneficiaire['lienPhoto']<=' '): ?>
|
||||
<div class="col-xs-12">
|
||||
|
|
|
|||
|
|
@ -53,6 +53,10 @@ function detectActiveMenu($activeLink, $menus, $gabary) {
|
|||
$menuData = detectActiveMenu($activeLink, $menus, $gabary);
|
||||
$activeParentId = $menuData['parent'];
|
||||
$activeChildId = $menuData['child'];
|
||||
|
||||
$imgData = $_SESSION['photoAssureCrypte'];
|
||||
$photoAssureCrypte = $_SESSION['photoAssureCrypte'];
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
|
@ -577,7 +581,26 @@ $activeChildId = $menuData['child'];
|
|||
|
||||
<div id="div_ajaxgabarit">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal fade" id="pop_photo" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
||||
<h4 class="modal-title"> <?= _("Photo") ?> </h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<img src="<?=$photoAssureCrypte?>" style="width: 450px;" >
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*$('#timer').timer({
|
||||
duration: '60s',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user