From 485641ed6d5a95c4add90e45bbd4ecf84969e945 Mon Sep 17 00:00:00 2001 From: Yasder5 <102179445+Yasder5@users.noreply.github.com> Date: Tue, 24 Feb 2026 16:18:20 +0100 Subject: [PATCH] display qui etait kc --- views/project_display.tpl | 168 +++++++++++++++++++++----------------- 1 file changed, 95 insertions(+), 73 deletions(-) diff --git a/views/project_display.tpl b/views/project_display.tpl index fb483e0..574c6ad 100644 --- a/views/project_display.tpl +++ b/views/project_display.tpl @@ -1,96 +1,118 @@ {extends file="views/layout.tpl"} -{block name="title" append} - Portfolio{/block} {block name="content"} -
+
- - {if isset($smarty.get.mail) && $smarty.get.mail === 'ok'} -
Email envoyé avec succès.
- {elseif isset($smarty.get.mail) && $smarty.get.mail === 'fail'} -
Erreur lors de l'envoi de l'email.
- {/if} + + {if isset($smarty.get.mail) && $smarty.get.mail === 'ok'} +
Email envoyé avec succès.
+ {elseif isset($smarty.get.mail) && $smarty.get.mail === 'fail'} +
Erreur lors de l'envoi de l'email.
+ {/if} -
+
- -
+ +
-

{$objProject->getTitle()}

+

{$objProject->getTitle()}

-

- {$arrProject.category_name ?? 'Général'} -

+

+ {$arrProject.category_name ?? 'Général'} +

-
- Aperçu du projet -
+
+ +
-
-

Description

-

{$objProject->getDescription()}

+
+

Description

+

{$objProject->getDescription()}

-
- {$objProject->getContent()} -
-
+
+ {$objProject->getContent()} +
+
+ + + +
+

Galerie du projet

+
+ {foreach $arrImages as $image} + + {* On affiche l'image si elle est approuvée OU si l'utlilisateur possède le projet OU si l'utlilisateur est Modérateur*} + {if ($image.image_status == 'approuvé') || + (isset($smarty.session.user) && $smarty.session.user.user_status == 2) || + (isset($smarty.session.user) && $smarty.session.user.user_id == $objProject->getUser_id())} + +
+
+ + {$image.image_alt} - -
-
+ {* Visible uniquement par le modérateur *} + {if isset($smarty.session.user.user_status) && $smarty.session.user.user_status == 2} +
+
+ Valider + + Supprimer +
+
+ {/if} +
+
+ {/if} + {foreachelse} +

Aucune image disponible pour ce projet.

+ {/foreach} +
+
+ + + +
+ - + - + - + - -
+ +
-
+
- -
+ +
+
+ + + +
{$objProject->getCreatorName()}
-
- - Photo du créateur - +

+ Publié le {$objProject->getCreation_date()} +

-
{$objProject->getCreatorName()}
+ -

- Publié le {$objProject->getCreation_date()} -

- - -
- {*Controle de l'utilisateur ainsi que du status du projet + Suppression disponible pour l'utilisateur possédant le projet*} +
+ {*Controle de l'utilisateur ainsi que du status du projet + Suppression disponible pour l'utilisateur possédant le projet*} {if isset($smarty.session.user)} {if ($smarty.session.user.user_status == 2 || $smarty.session.user.user_id == $objProject->getUser_id())}
@@ -116,4 +138,4 @@
-{/block} +{/block} \ No newline at end of file