From a87bc35f890bfc4c2284c152a2c8c16a7c8fce3b Mon Sep 17 00:00:00 2001 From: Guillaume HESS Date: Wed, 11 Feb 2026 16:28:45 +0100 Subject: [PATCH] =?UTF-8?q?Continuation=20de=20la=20fonctionnalit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/project_controller.php | 15 +- entities/user_entity.php | 1 - models/mother_model.php | 9 +- ...263fe8f31fee7c6055e56_0.file_login.tpl.php | 164 +++++++++++ ...26123a0c3ef155eae59b_0.file_footer.tpl.php | 63 +++++ ...dd21546b63477a6bc296_0.file_layout.tpl.php | 50 ++++ ...da665dc59ccdf89588f2_0.file_search.tpl.php | 261 ++++++++++++++++++ ...6938ec13f0fa_0.file_projet_display.tpl.php | 128 +++++++++ ...533821a89d7d735c5727_0.file_header.tpl.php | 115 ++++++++ ...22152a4d410b20abede_0.file_preview.tpl.php | 81 ++++++ ...f203d582a8cc367e0bd265_0.file_home.tpl.php | 84 ++++++ ...6d4c74f4917d3685101_0.file_project.tpl.php | 123 +++++++++ views/_partial/preview.tpl | 2 +- 13 files changed, 1082 insertions(+), 14 deletions(-) create mode 100644 templates_c/10875d611111c4d51c8263fe8f31fee7c6055e56_0.file_login.tpl.php create mode 100644 templates_c/233722999fd7fbe3307e26123a0c3ef155eae59b_0.file_footer.tpl.php create mode 100644 templates_c/50db0f04b5a0bd45d280dd21546b63477a6bc296_0.file_layout.tpl.php create mode 100644 templates_c/6d89f62fd107a769c92bda665dc59ccdf89588f2_0.file_search.tpl.php create mode 100644 templates_c/ccb74eb5d50d5c45223723021f206938ec13f0fa_0.file_projet_display.tpl.php create mode 100644 templates_c/d1ce76cd275b7aacbc06533821a89d7d735c5727_0.file_header.tpl.php create mode 100644 templates_c/d60fb02b58bc4794052e022152a4d410b20abede_0.file_preview.tpl.php create mode 100644 templates_c/dec070599de91da0c8f203d582a8cc367e0bd265_0.file_home.tpl.php create mode 100644 templates_c/eda0e4559a4ddfacbd33a6d4c74f4917d3685101_0.file_project.tpl.php diff --git a/controllers/project_controller.php b/controllers/project_controller.php index 98f8e0c..232d32d 100644 --- a/controllers/project_controller.php +++ b/controllers/project_controller.php @@ -100,20 +100,20 @@ $objProjectModel = new ProjectModel; $arrProject = $objProjectModel->findAll(4); - $arrProjectToDiplay = array(); + $arrProjectToDisplay = array(); foreach($arrProject as $arrDetProject){ $objProject = new Project; $objProject->hydrate($arrDetProject); - $arrProjectToDiplay[] = $objProject; + $arrProjectToDisplay[] = $objProject; } $objImageModel = new ImageModel; $arrImage = $objImageModel->findAllImage(4); - $arrImageToDiplay = array(); + $arrImageToDisplay = array(); foreach($arrImage as $arrDetImage){ $objImage = new Image; $objImage->hydrate($arrDetImage); - $arrImageToDiplay[] = $objImage; + $arrImageToDisplay[] = $objImage; } //Variable data $_SESSION['title'] = $_POST['titleProject']??""; @@ -160,8 +160,8 @@ var_dump($_SESSION); var_dump($objProject); - $this->_arrData['arrProjectToDiplay'] = $arrProjectToDiplay; - $this->_arrData['arrImageToDiplay'] = $arrImageToDiplay; + $this->_arrData['arrProjectToDiplay'] = $arrProjectToDisplay; + $this->_arrData['arrImageToDiplay'] = $arrImageToDisplay; $this->_display("project"); } @@ -190,8 +190,7 @@ } } - public function sendEmail() - { + public function sendEmail(){ if (count($_POST) > 0) { $projectId = (int)($_POST['project_id'] ?? 0); diff --git a/entities/user_entity.php b/entities/user_entity.php index 7d320b9..0d4a9e8 100644 --- a/entities/user_entity.php +++ b/entities/user_entity.php @@ -111,7 +111,6 @@ public function getAccountCreation():string{ return $this->_account_creation; } - public function setAccountCreation(string $account_creation){ $this->_account_creation = $account_creation; } diff --git a/models/mother_model.php b/models/mother_model.php index 9bc3881..9ccd7ec 100644 --- a/models/mother_model.php +++ b/models/mother_model.php @@ -7,9 +7,9 @@ try{ // Connexion à la base de données $this->_db = new PDO( - "mysql:host=localhost;dbname=projet_folliow", // Serveur et BDD mysql:host=boulayoune.com;dbname=projet_folliow - "root", //Nom d'utilisateur de la base de données projet_user - "",// Mot de passe de la base de données F0lliowRules! + "mysql:host=boulayoune.com;dbname=projet_folliow", // Serveur et BDD + "projet_user", //Nom d'utilisateur de la base de données + "F0lliowRules!",// Mot de passe de la base de données array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC) // Mode de renvoi ); // Pour résoudre les problèmes d’encodage @@ -27,7 +27,8 @@ *"mysql:host=boulayoune.com;dbname=projet_folliow", // Serveur et BDD "projet_user", //Nom d'utilisateur de la base de données "F0lliowRules!",// Mot de passe de la base de données - + Site pour BDD: https://phpmyadmin.boulayoune.com/index.php?route=/sql&pos=0&db=projet_folliow&table=project + Pour passer en local: "mysql:host=localhost;dbname=projet_folliow", // Serveur et BDD "root", //Nom d'utilisateur de la base de données diff --git a/templates_c/10875d611111c4d51c8263fe8f31fee7c6055e56_0.file_login.tpl.php b/templates_c/10875d611111c4d51c8263fe8f31fee7c6055e56_0.file_login.tpl.php new file mode 100644 index 0000000..bfbc150 --- /dev/null +++ b/templates_c/10875d611111c4d51c8263fe8f31fee7c6055e56_0.file_login.tpl.php @@ -0,0 +1,164 @@ +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c9f92453c08_24507694', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '10875d611111c4d51c8263fe8f31fee7c6055e56' => + array ( + 0 => 'views/login.tpl', + 1 => 1770795606, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_698c9f92453c08_24507694 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_2118721076698c9f923fe728_66184593', "content"); +$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_2118721076698c9f923fe728_66184593 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\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);?> +
+ + +
+ + +
+ +
+ + +
+
+ + +
+ + +

Connexion

+ + +

+ Connectez-vous à votre compte. +

+ + + +
+ +
+ + +
+ + +
+ + +
+ + +
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+ + Pas encore de compte ? + Créer un compte + +
+ + + + +
+
+ +
+ +
+
+
+
+getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c9fd53aaff8_74186876', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '233722999fd7fbe3307e26123a0c3ef155eae59b' => + array ( + 0 => 'views/_partial/footer.tpl', + 1 => 1770795606, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_698c9fd53aaff8_74186876 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\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_698c9fd50c20d9_40745175', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '50db0f04b5a0bd45d280dd21546b63477a6bc296' => + array ( + 0 => 'views/layout.tpl', + 1 => 1770795606, + 2 => 'file', + ), + ), + 'includes' => + array ( + 'file:views/_partial/header.tpl' => 1, + 'file:views/_partial/footer.tpl' => 1, + ), +))) { +function content_698c9fd50c20d9_40745175 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\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_2129100121698c9fd50b63e9_26531432', "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_2129100121698c9fd50b63e9_26531432 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +?> + + +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c972d007f30_07399540', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '6d89f62fd107a769c92bda665dc59ccdf89588f2' => + array ( + 0 => 'views/search.tpl', + 1 => 1770795607, + 2 => 'file', + ), + ), + 'includes' => + array ( + 'file:views/_partial/preview.tpl' => 1, + ), +))) { +function content_698c972d007f30_07399540 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_335658017698c972ce8c1b7_47061646', "content"); +$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_335658017698c972ce8c1b7_47061646 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +?> + +
+

Rechercher parmi les articles

+
+
+
+

+ + Rechercher des articles +

+ +
+
+ + + + Recherchez dans les titres et contenus + +
+ +
+ + +
+ + +
+
+ Type de recherche par date +
+ getValue('intPeriod') == 0) {?>checked + aria-controls="date-exact date-range"> + +
+
+ getValue('intPeriod') == 1) {?>checked + aria-controls="date-exact date-range"> + +
+
+
+ +
+
+ Type de recherche par catégories +
+ + +
+
+
+ +
+ + + + Format: JJ/MM/AAAA + +
+ + + +
+ + +
+
+
+
+ + +
+

Liste des projets

+
+ getSmarty()->getModifierCallback('count')($_smarty_tpl->getValue('arrProject')) == 0) {?> +
+

Pas de résultats

+
+ + getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrProjectToDisplay'), 'objProject'); +$foreach2DoElse = true; +foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) { +$foreach2DoElse = 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);?> +
+
+
+
+ +> + // Gestion de l'affichage des champs de date + const periodRadios = document.querySelectorAll('input[name="period"]'); + const dateExact = document.getElementById('date-exact'); + const dateRange = document.getElementById('date-range'); + + function toggleDateFields() { + const selectedPeriod = document.querySelector('input[name="period"]:checked').value; + + if (selectedPeriod === '0') { + dateExact.style.display = 'block'; + dateRange.style.display = 'none'; + } else { + dateExact.style.display = 'none'; + dateRange.style.display = 'block'; + } + } + + periodRadios.forEach(radio => { + radio.addEventListener('change', toggleDateFields); + }); + + // Initialisation au chargement + toggleDateFields(); + +> +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c977e85f0c3_21491266', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'ccb74eb5d50d5c45223723021f206938ec13f0fa' => + array ( + 0 => 'views/projet_display.tpl', + 1 => 1770795607, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_698c977e85f0c3_21491266 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_377944550698c977e7c9731_58670975', "content"); +$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_377944550698c977e7c9731_58670975 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +?> + +
+ + + +
Email envoyé avec succès.
+ +
Erreur lors de l'envoi de l'email.
+ + +
+ + +
+ +

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

+ +

+ getValue('arrProject')['category_name'] ?? 'Général';?> + +

+ +
+ +
+ +
+

Description

+

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

+ +
+ getValue('objProject')->getContent();?> + +
+
+ + +
+
+ + + + + + + +
+
+ +
+ + +
+
+ + + +
getValue('objProject')->getCreatorName();?> +
+ +

+ Publié le getValue('objProject')->getCreation_date();?> + +

+ + + +
+
+ +
+
+getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c9fd5234b11_98726477', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'd1ce76cd275b7aacbc06533821a89d7d735c5727' => + array ( + 0 => 'views/_partial/header.tpl', + 1 => 1770795606, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_698c9fd5234b11_98726477 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views\\_partial'; +?> + + + + + + + + + src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"> +> + Folliow + + + + +getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c9f98010897_35547345', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'd60fb02b58bc4794052e022152a4d410b20abede' => + array ( + 0 => 'views/_partial/preview.tpl', + 1 => 1770822997, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +))) { +function content_698c9f98010897_35547345 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views\\_partial'; +?> + + +
+
+ +
+ +
+ +
+ + Photo de profil + +
+

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

+ + + + – getValue('objProject')->getCreatorname();?> + + + + + Lire la suite → + +
+ +
+ +
+ getValue('objProject')->getStatus() == "en_attente") {?> + + getValue('projectStatus') == "refusé") {?> +

Portfolio refusé

+ +
getCompiled()->isFresh($_smarty_tpl, array ( + 'version' => '5.7.0', + 'unifunc' => 'content_698c9f9795f494_06984213', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'dec070599de91da0c8f203d582a8cc367e0bd265' => + array ( + 0 => 'views/home.tpl', + 1 => 1770795606, + 2 => 'file', + ), + ), + 'includes' => + array ( + 'file:views/_partial/preview.tpl' => 1, + ), +))) { +function content_698c9f9795f494_06984213 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_492640025698c9f979401d0_84454540', "content"); +?> + +getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_492640025698c9f979401d0_84454540 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\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.

+
+ +
+
+
+ + + + + + Tout +
+
+
+ +
+

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_698c9fd4d6a381_80658789', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'eda0e4559a4ddfacbd33a6d4c74f4917d3685101' => + array ( + 0 => 'views/project.tpl', + 1 => 1770822944, + 2 => 'file', + ), + ), + 'includes' => + array ( + 'file:../app/views/partials/preview.tpl' => 1, + ), +))) { +function content_698c9fd4d6a381_80658789 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); +?> + + +getInheritance()->instanceBlock($_smarty_tpl, 'Block_1774323013698c9fd4d14ce3_58308352', "content"); +$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); +} +/* {block "content"} */ +class Block_1774323013698c9fd4d14ce3_58308352 extends \Smarty\Runtime\Block +{ +public function callBlock(\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views'; +?> + + +
+
+

Alimenter votre projet

+
+ + + + +
+ + + +
+
+ + +
+
+ + +
+
+ + +
+
+

Image thumbnail

+ +
+
+

Image du projet

+ +
+
+ + +
+
+ +
+

Vous devez vous connecter pour accéder à cette fonctionnalité

+
+ + + +
+
+

Description

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. + Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+
+

Photos behind the scene

+
+ +
+
+
+

Other projects

+
+ 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:../app/views/partials/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);?> +
+
+ +
+ + +
{* IMAGE (80%) *}