+ Les 4 derniers articles
+
+
+ getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrProjectToDisplay'), 'objProject');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) {
$foreach0DoElse = false;
?>
- renderSubTemplate("file:views/_partial/preview.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
+ renderSubTemplate("file:views/_partial/preview.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
- getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
-
+$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
+
getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.7.0',
- 'unifunc' => 'content_6989f71c761896_25894348',
+ 'unifunc' => 'content_69949cc31946f2_99570077',
'has_nocache_code' => false,
'file_dependency' =>
array (
@@ -20,18 +20,18 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
array (
),
))) {
-function content_6989f71c761896_25894348 (\Smarty\Template $_smarty_tpl) {
+function content_69949cc31946f2_99570077 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>
getInheritance()->instanceBlock($_smarty_tpl, 'Block_19992775976989f71c758fc2_34188356', "content");
+$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_48413822169949cc30e4725_27989269', "content");
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
}
/* {block "content"} */
-class Block_19992775976989f71c758fc2_34188356 extends \Smarty\Runtime\Block
+class Block_48413822169949cc30e4725_27989269 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
diff --git a/templates_c/cef94db5b9dde613f0f79dcacc6c7b4e161e98a2_0.file_footer.tpl.php b/templates_c/cef94db5b9dde613f0f79dcacc6c7b4e161e98a2_0.file_footer.tpl.php
index 3a5773c..e62caed 100644
--- a/templates_c/cef94db5b9dde613f0f79dcacc6c7b4e161e98a2_0.file_footer.tpl.php
+++ b/templates_c/cef94db5b9dde613f0f79dcacc6c7b4e161e98a2_0.file_footer.tpl.php
@@ -1,11 +1,11 @@
getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.7.0',
- 'unifunc' => 'content_6989f726ac4850_67307943',
+ 'unifunc' => 'content_69949cd5b10bc9_79471252',
'has_nocache_code' => false,
'file_dependency' =>
array (
@@ -20,7 +20,7 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
array (
),
))) {
-function content_6989f726ac4850_67307943 (\Smarty\Template $_smarty_tpl) {
+function content_69949cd5b10bc9_79471252 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views\\_partial';
?>
+
+
+
Image thumbnail
@@ -73,7 +100,7 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
-
+
@@ -102,9 +129,9 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrProjectToDisplay'), 'objProject');
-$foreach0DoElse = true;
+$foreach1DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) {
-$foreach0DoElse = false;
+$foreach1DoElse = false;
?>
renderSubTemplate("file:../app/views/partials/preview.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
diff --git a/views/project_display.tpl b/views/project_display.tpl
index bd386e2..e0434a6 100644
--- a/views/project_display.tpl
+++ b/views/project_display.tpl
@@ -74,23 +74,25 @@
{*Controle de l'utilisateur ainsi que du status du projet + Suppression disponible pour l'utilisateur possédant le projet*}
- {if isset($smarty.session.user) and $smarty.session.user.user_status eq 2 or $smarty.session.user.user_id eq $objProject->getUser_id()}
-
-
Supprimer le projet
- {/if}
-
-
- {if isset($smarty.session.user) and $smarty.session.user.user_id eq $objProject->getUser_id()}
-
Modifier le projet
- {/if}
-
- {*Conditions permettant au Modérateur de modifier le status d'un projet*}
- {if isset($smarty.session.user) and $smarty.session.user.user_status eq 2 and $objProject->getStatus() eq "en_attente"}
-
Accepter
-
Refuser
-
- {elseif $projectStatus eq "refusé"}
- Portfolio refusé
+ {if isset($smarty.session.user)}
+ {if ($smarty.session.user.user_status == 2 || $smarty.session.user.user_id == $objProject->getUser_id())}
+
+
Supprimer le projet
+ {/if}
+
+
+ {if $smarty.session.user.user_id == $objProject->getUser_id()}
+
Modifier le projet
+ {/if}
+
+ {*Conditions permettant au Modérateur de modifier le status d'un projet*}
+ {if $smarty.session.user.user_status == 2 && $objProject->getStatus() == "en_attente"}
+
Accepter
+
Refuser
+
+ {elseif $projectStatus == "refusé"}
+ Portfolio refusé
+ {/if}
{/if}