From edb6c00219f73e929f2d37d214bb92c60e0d7513 Mon Sep 17 00:00:00 2001 From: Yass Date: Sun, 8 Feb 2026 19:49:17 +0100 Subject: [PATCH] . --- controllers/admin_controller.php | 18 +- controllers/project_controller.php | 14 +- ...23bf5795a2721f507c3fc6_0.file_home.tpl.php | 31 ++- ...2de6dcd14dc34a20b16_0.file_preview.tpl.php | 66 ++++++ controllers/user_controller.php | 22 +- ...dad4b27dd58fe64_0.file_inscription.tpl.php | 218 ++++++++++++++++++ ...dfc9d5f8ae68eb5c308ba_0.file_login.tpl.php | 83 +++++++ ...9ecf544040a414ed627_0.file_preview.tpl.php | 69 ++++++ ...eaa5fc81e6e357127f49_0.file_footer.tpl.php | 63 +++++ ...53056a7c17f1dc50fcde_0.file_layout.tpl.php | 50 ++++ ...d7bc28a51149e2e63b3bf1_0.file_home.tpl.php | 71 ++++++ ...f80cb970eb1abb3c21fb_0.file_header.tpl.php | 108 +++++++++ .../footer.php => _partial/footer.tpl} | 0 .../header.php => _partial/header.tpl} | 0 .../preview.php => _partial/preview.tpl} | 3 + views/footer.tpl | 34 +++ views/header.tpl | 86 +++++++ views/home.tpl | 7 +- views/{inscription.php => inscription.tpl} | 5 +- views/layout.tpl | 4 +- views/login.php | 23 -- views/login.tpl | 35 +++ 22 files changed, 941 insertions(+), 69 deletions(-) rename templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php => controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php (63%) create mode 100644 controllers/templates_c/c724044e55872f26030b02de6dcd14dc34a20b16_0.file_preview.tpl.php create mode 100644 templates_c/6a0422fe7dc4be4b812fa3545dad4b27dd58fe64_0.file_inscription.tpl.php create mode 100644 templates_c/7a5d14230a80bcfb142dfc9d5f8ae68eb5c308ba_0.file_login.tpl.php create mode 100644 templates_c/8a75168f6980e04270d359ecf544040a414ed627_0.file_preview.tpl.php create mode 100644 templates_c/98cc8c099e0c6b2a1fe1eaa5fc81e6e357127f49_0.file_footer.tpl.php create mode 100644 templates_c/e18412d61db50ad0096e53056a7c17f1dc50fcde_0.file_layout.tpl.php create mode 100644 templates_c/ec3d3ee358d0cb60e3d7bc28a51149e2e63b3bf1_0.file_home.tpl.php create mode 100644 templates_c/fa32ecfd2db3b295fbf8f80cb970eb1abb3c21fb_0.file_header.tpl.php rename views/{partials/footer.php => _partial/footer.tpl} (100%) rename views/{partials/header.php => _partial/header.tpl} (100%) rename views/{partials/preview.php => _partial/preview.tpl} (99%) create mode 100644 views/footer.tpl create mode 100644 views/header.tpl rename views/{inscription.php => inscription.tpl} (99%) delete mode 100644 views/login.php create mode 100644 views/login.tpl diff --git a/controllers/admin_controller.php b/controllers/admin_controller.php index 74e74d5..de10b7a 100644 --- a/controllers/admin_controller.php +++ b/controllers/admin_controller.php @@ -1,13 +1,15 @@ findAll(4); + $arrProject = $objProjectModel->findAll(); $arrProjectToDisplay = array(); foreach($arrProject as $arrDetProject){ $objProject = new Project; @@ -28,10 +28,9 @@ $arrProjectToDisplay[] = $objProject; } - //$this->_arrData['arrArticleToDisplay'] = $arrArticleToDisplay; + $this->_arrData['arrProjectToDisplay'] = $arrProjectToDisplay; - var_dump($this->_arrData); - + $this->_display("home"); } @@ -70,10 +69,15 @@ $objCategoryModel = new CategoryModel; $arrCategory = $objCategoryModel->findAllCategory(); + + $this->_arrData['arrProjectToDisplay'] = $arrProjectToDisplay; + $this->_arrData['arrCategory'] = $arrCategory; + $this->_arrData['arrUser'] = $arrUser; + + include('../app/views/search.php'); - include('../app/views/partials/footer.php'); } /** diff --git a/templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php b/controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php similarity index 63% rename from templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php rename to controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php index 517d015..208dcfd 100644 --- a/templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php +++ b/controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php @@ -1,42 +1,41 @@ getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.7.0', - 'unifunc' => 'content_6983be8b334a57_18130562', + 'unifunc' => 'content_6985a47abcda40_19846426', 'has_nocache_code' => false, 'file_dependency' => array ( - '0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68' => + '299f75d7692a19207f23bf5795a2721f507c3fc6' => array ( 0 => 'views/home.tpl', - 1 => 1770240896, + 1 => 1770365364, 2 => 'file', ), ), 'includes' => array ( - 'file:views/partials/preview.php' => 1, + 'file:views/_partial/preview.tpl' => 1, ), ))) { -function content_6983be8b334a57_18130562 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'D:\\projetphp\\views'; +function content_6985a47abcda40_19846426 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; $_smarty_tpl->getInheritance()->init($_smarty_tpl, false); ?> -getInheritance()->instanceBlock($_smarty_tpl, 'Block_16697957106983be8b32f404_81038557', "content"); -$_prefixVariable1 = ob_get_clean(); -echo $_prefixVariable1;?> +getInheritance()->instanceBlock($_smarty_tpl, 'Block_3150142016985a47abb6c29_00747518', "content"); +?>
@@ -52,12 +51,12 @@ $_smarty_current_dir = 'D:\\projetphp\\views';
getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrArticleToDisplay'), 'objArticle'); +$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrProjectToDisplay'), 'objProject'); $foreach0DoElse = true; -foreach ($_from ?? [] as $_smarty_tpl->getVariable('objArticle')->value) { +foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) { $foreach0DoElse = false; ?> - renderSubTemplate("file:views/partials/preview.php", $_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); ?> getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985a47ad585d5_25749521', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'c724044e55872f26030b02de6dcd14dc34a20b16' => + array ( + 0 => 'views/_partial/preview.tpl', + 1 => 1770365554, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_6985a47ad585d5_25749521 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views\\_partial'; +?>
+
+ +
+ +
+ +
+ + Photo de profil + +
+

getValue('objProject')->getTitle();?> +

+ + + + – getValue('objProject')->getCreatorname();?> + + + + + Lire la suite → + +
+ +
+ +
+
_arrData['arrError'] = $arrError; + + + + $this->_display("login"); + } @@ -63,9 +67,6 @@ class UserCtrl{ public function signin(){ - // Inclusion du header - include("../app/views/partials/header.php"); - // Entité pour réafficher les valeurs dans le formulaire $objUser = new User(); @@ -138,8 +139,7 @@ class UserCtrl{ } // Affichage de la vue inscription - include("../app/views/inscription.php"); - include("../app/views/partials/footer.php"); + $this->_display("inscription"); } diff --git a/templates_c/6a0422fe7dc4be4b812fa3545dad4b27dd58fe64_0.file_inscription.tpl.php b/templates_c/6a0422fe7dc4be4b812fa3545dad4b27dd58fe64_0.file_inscription.tpl.php new file mode 100644 index 0000000..d10d9b3 --- /dev/null +++ b/templates_c/6a0422fe7dc4be4b812fa3545dad4b27dd58fe64_0.file_inscription.tpl.php @@ -0,0 +1,218 @@ +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985a77f8dfcd0_35158098', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '6a0422fe7dc4be4b812fa3545dad4b27dd58fe64' => + array ( + 0 => 'views/inscription.tpl', + 1 => 1770366787, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_6985a77f8dfcd0_35158098 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_4039535986985a77f8da504_37962670', "content"); +$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_4039535986985a77f8da504_37962670 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +?> + + + + +
+ + +
+
+ + +
+ + +

Inscription

+ + +

+ Créez votre compte utilisateur. +

+ + + +
+ +
+ + +
+ + +
+ + +
+ + +
+ + +
+ +
+ @ + +
+
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ +
+ + +
+ + Déjà un compte ? + Se connecter + +
+ + +
+ + +
+ +
+
+
+getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985a7843b8a09_57121812', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '7a5d14230a80bcfb142dfc9d5f8ae68eb5c308ba' => + array ( + 0 => 'views/login.tpl', + 1 => 1770366310, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_6985a7843b8a09_57121812 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_10260818746985a7843a3c23_56661515', "content"); +$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_10260818746985a7843a3c23_56661515 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +?> + +
+ getSmarty()->getModifierCallback('count')($_smarty_tpl->getValue('arrError')) > 0) {?> +
+ getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrError'), 'strError'); +$foreach0DoElse = true; +foreach ($_from ?? [] as $_smarty_tpl->getVariable('strError')->value) { +$foreach0DoElse = false; +?> +

getValue('strError');?> +

+ getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?> +
+ + +
+

+ + +

+ +

+ + +

+ +

+ +

+
+
+getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985d7fac4c158_24962671', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '8a75168f6980e04270d359ecf544040a414ed627' => + array ( + 0 => 'views/_partial/preview.tpl', + 1 => 1770366777, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_6985d7fac4c158_24962671 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views\\_partial'; +?> + + +
+
+ +
+ +
+ +
+ + Photo de profil + +
+

getValue('objProject')->getTitle();?> +

+ + + + – getValue('objProject')->getCreatorname();?> + + + + + Lire la suite → + +
+ +
+ +
+
getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985d7fad9ae79_00567614', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '98cc8c099e0c6b2a1fe1eaa5fc81e6e357127f49' => + array ( + 0 => 'views/_partial/footer.tpl', + 1 => 1770363982, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_6985d7fad9ae79_00567614 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views\\_partial'; +?> + + + src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"> +> + + src="js/scripts.js"> +> + +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985d7faa97148_49592200', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'e18412d61db50ad0096e53056a7c17f1dc50fcde' => + array ( + 0 => 'views/layout.tpl', + 1 => 1770366174, + 2 => 'file', + ), + ), + 'includes' => + array ( + 'file:views/_partial/header.tpl' => 1, + 'file:views/_partial/footer.tpl' => 1, + ), +))) { +function content_6985d7faa97148_49592200 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, false); +$_smarty_tpl->renderSubTemplate("file:views/_partial/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); +?> + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_5420313386985d7faa93b13_94487614', "content"); +?> + + +renderSubTemplate("file:views/_partial/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); +} +/* {block "content"} */ +class Block_5420313386985d7faa93b13_94487614 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +?> + + +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985d7fa8af3a1_55395258', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'ec3d3ee358d0cb60e3d7bc28a51149e2e63b3bf1' => + array ( + 0 => 'views/home.tpl', + 1 => 1770366165, + 2 => 'file', + ), + ), + 'includes' => + array ( + 'file:views/_partial/preview.tpl' => 1, + ), +))) { +function content_6985d7fa8af3a1_55395258 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_10419637376985d7fa8a0f96_31902176', "content"); +?> + +getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_10419637376985d7fa8a0f96_31902176 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views'; +?> + +
+

Folliow

+

Là où les talents rencontrent leur avenir

+

Une plateforme de portfolio adapté à vos besoins et aux besoins des entreprises. + Créer un portfolio réellement pertinent aux exigences du marché et rentrez + directement en contact avec les entreprises.

+
+ +
+

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); +?> + getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?> +
+getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_6985d7fab71ca5_68849299', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'fa32ecfd2db3b295fbf8f80cb970eb1abb3c21fb' => + array ( + 0 => 'views/_partial/header.tpl', + 1 => 1770363982, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_6985d7fab71ca5_68849299 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views\\_partial'; +?> + + + + + + + + + src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"> +> + Folliow + + + + +
diff --git a/views/footer.tpl b/views/footer.tpl new file mode 100644 index 0000000..38e86aa --- /dev/null +++ b/views/footer.tpl @@ -0,0 +1,34 @@ + + + + + + \ No newline at end of file diff --git a/views/header.tpl b/views/header.tpl new file mode 100644 index 0000000..e282b41 --- /dev/null +++ b/views/header.tpl @@ -0,0 +1,86 @@ + + + + + + + + + + Folliow + + + + + \ No newline at end of file diff --git a/views/home.tpl b/views/home.tpl index b4bec2e..7236cc4 100644 --- a/views/home.tpl +++ b/views/home.tpl @@ -1,3 +1,4 @@ +{extends file="views/layout.tpl"} {block name="content"}
@@ -12,8 +13,8 @@

Les 4 derniers articles

- {foreach from=$arrArticleToDisplay item=objArticle} - {include file="views/partials/preview.php"} + {foreach from=$arrProjectToDisplay item=objProject} + {include file="views/_partial/preview.tpl"} {/foreach}
-{{/block}} +{/block} diff --git a/views/inscription.php b/views/inscription.tpl similarity index 99% rename from views/inscription.php rename to views/inscription.tpl index f534417..96d331a 100644 --- a/views/inscription.php +++ b/views/inscription.tpl @@ -1,4 +1,6 @@ +{extends file="views/layout.tpl"} +{block name="content"} @@ -172,4 +174,5 @@
- \ No newline at end of file + +{/block} \ No newline at end of file diff --git a/views/layout.tpl b/views/layout.tpl index c96d93f..b3094fd 100644 --- a/views/layout.tpl +++ b/views/layout.tpl @@ -1,7 +1,7 @@ -{include file="./views/partials/header.tpl"} +{include file="views/_partial/header.tpl"} {block name="content"} {/block} -{include file="./views/partials/footer.tpl"} \ No newline at end of file +{include file="views/_partial/footer.tpl"} \ No newline at end of file diff --git a/views/login.php b/views/login.php deleted file mode 100644 index 0021e56..0000000 --- a/views/login.php +++ /dev/null @@ -1,23 +0,0 @@ -
- 0) {?> -
- -

- -
- -
-

- - -

-

- - -

-

- -

-
-
\ No newline at end of file diff --git a/views/login.tpl b/views/login.tpl new file mode 100644 index 0000000..6722bf8 --- /dev/null +++ b/views/login.tpl @@ -0,0 +1,35 @@ +{extends file="views/layout.tpl"} + +{block name="content"} +
+ {* Affichage des erreurs *} + {if $arrError|count > 0} +
+ {foreach from=$arrError item=strError} +

{$strError}

+ {/foreach} +
+ {/if} + +
+

+ + +

+ +

+ + +

+ +

+ +

+
+
+{/block} \ No newline at end of file