diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2196147 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/templates_c/ +/templates_c/** \ No newline at end of file diff --git a/assests/img/Logo.png b/assests/img/logo.png similarity index 100% rename from assests/img/Logo.png rename to assests/img/logo.png diff --git a/controllers/project_controller.php b/controllers/project_controller.php index 7395647..47f9372 100644 --- a/controllers/project_controller.php +++ b/controllers/project_controller.php @@ -85,6 +85,7 @@ $this->_arrData['arrProjectToDisplay'] = $arrProjectToDisplay; $this->_arrData['arrCategory'] = $arrCategory; + $this->_arrData['arrProject'] = $arrProject; $this->_arrData['arrUser'] = $arrUser; @@ -100,56 +101,58 @@ $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']??""; $_SESSION['description'] = $_POST['descProject']??""; $_SESSION['content'] = $_POST['textProject']??""; - $_SESSION['thumbnail'] = $_FILES['imageProject']['name']??""; + $_SESSION['thumbnail'] = $_FILES['imageThumbnail']['name']??""; $_SESSION['status'] = 'en_attente'; + $_SESSION['user_id'] = $_SESSION['user']['user_id']; $objProject = new Project(); /** - /* Créer par Besnik le GOAT et l'autre GOAT de Guillaume - /* - /* @return bool pour savoir si le fichier existe, - /* puis déplace vers le fichier uploads avec les images projet des utilisateurs - /* Communication avec la BDD + * Créer par Besnik le GOAT et l'autre GOAT de Guillaume + * + * @return bool pour savoir si le fichier existe, + * puis déplace vers le fichier uploads avec les images projet des utilisateurs + * Communication avec la BDD */ if (($_SESSION['thumbnail'] != null)){ $strDest = ""; if ((count($_FILES) > 0) && ($_FILES['imageProject']['error'] != 4)){ - $strDest = '../public/uploads/projects/'.$_FILES['imageProject']['name']; - var_dump($strDest); + $strDest = 'uploads/projects/'.$_FILES['imageProject']['name']; move_uploaded_file($_FILES['imageProject']['tmp_name'], $strDest); } } /** En cas d'appuis sur le bouton d'envoie ou celui de remettre a plus tard - /* 1. Changement de status - /* 2. Hydratation avec les informations récupéré de l'utilisateur - /* 3. Envoie des données à la BDD - */ + * 1. Changement de status + * 2. Hydratation avec les informations récupéré de l'utilisateur + * 3. Envoie des données à la BDD + */ if (isset($_POST['sendMessage'])) { $_SESSION['status'] = 'publié'; $objProject->hydrate($_SESSION); - $objProject->setThumbnail($strDest); + $objProject->setThumbnail($strDest); + var_dump($strDest); + var_dump($objProject); $objProjectModel->insert($objProject); } else if (isset($_POST['toContinue'])) { @@ -158,14 +161,12 @@ $objProjectModel->insert($objProject); } - /*Débuggage var_dump($_SESSION); - var_dump($objProject);*/ - $this->_arrData['arrProjectToDiplay'] = $arrProjectToDiplay; - $this->_arrData['arrImageToDiplay'] = $arrImageToDiplay; + var_dump($objProject); + $this->_arrData['arrProjectToDiplay'] = $arrProjectToDisplay; + $this->_arrData['arrImageToDiplay'] = $arrImageToDisplay; $this->_display("project"); - } @@ -192,8 +193,7 @@ } } - public function sendEmail() - { + public function sendEmail(){ if (count($_POST) > 0) { $projectId = (int)($_POST['project_id'] ?? 0); @@ -224,6 +224,7 @@ $objMail->SMTPDebug = 0; + $objMail->SMTPAuth = TRUE; $objMail->SMTPSecure = "tls"; $objMail->Port = 587; diff --git a/controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php b/controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php deleted file mode 100644 index 208dcfd..0000000 --- a/controllers/templates_c/299f75d7692a19207f23bf5795a2721f507c3fc6_0.file_home.tpl.php +++ /dev/null @@ -1,69 +0,0 @@ -getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_6985a47abcda40_19846426', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '299f75d7692a19207f23bf5795a2721f507c3fc6' => - array ( - 0 => 'views/home.tpl', - 1 => 1770365364, - 2 => 'file', - ), - ), - 'includes' => - array ( - 'file:views/_partial/preview.tpl' => 1, - ), -))) { -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_3150142016985a47abb6c29_00747518', "content"); -?> - - - -
-

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_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"); - } @@ -127,7 +123,6 @@ class UserCtrl extends MotherCtrl { // Si pas d'erreurs => insertion if (count($arrError) === 0) { $objUserModel = new UserModel(); - $boolInsert = $objUserModel->insert($objUser); if ($objUserModel->mailExists($objUser->getMail())) { @@ -147,6 +142,7 @@ class UserCtrl extends MotherCtrl { } // Affichage de la vue inscription + $this->_arrData["arrError"] = $arrError; $this->_display("inscription"); } diff --git a/entities/project_entity.php b/entities/project_entity.php index ab9047e..cb8548a 100644 --- a/entities/project_entity.php +++ b/entities/project_entity.php @@ -157,7 +157,7 @@ class Project extends Entity{ * Récupération de l'utilisateur * @return int id de l'utilisateur */ - public function getUser(){ + public function getUser_id(){ return $this->_user; } @@ -165,7 +165,7 @@ class Project extends Entity{ * Mise à jour de l'utilisateur * @param int id de l'utilisateur */ - public function setUser($user){ + public function setUser_id($user){ $this->_user = $user; } @@ -200,6 +200,7 @@ class Project extends Entity{ public function setCreatorName($creatorname){ $this->_creatorname = $creatorname; } + /** * Récupération du chemin photo profil * @return string nom du chemin photo profil diff --git a/models/mother_model.php b/models/mother_model.php index b7b106d..59eea4f 100644 --- a/models/mother_model.php +++ b/models/mother_model.php @@ -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/models/project_model.php b/models/project_model.php index d6bce18..9ca240f 100644 --- a/models/project_model.php +++ b/models/project_model.php @@ -23,7 +23,7 @@ CONCAT(user_firstname, ' ', user_name) AS 'project_creatorname', user_image FROM project - INNER JOIN users ON user_id = project_user"; + INNER JOIN users ON user_id = project_user_id"; $strWhere = " WHERE "; @@ -112,7 +112,7 @@ users.user_image, category.category_name FROM project - INNER JOIN users ON users.user_id = project.project_user + INNER JOIN users ON users.user_id = project.project_user_id LEFT JOIN category ON category.category_id = project.project_category WHERE project.project_id = :id"; diff --git a/templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php b/templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php index 76d88b5..ed1df75 100644 --- a/templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php +++ b/templates_c/0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68_0.file_home.tpl.php @@ -1,18 +1,18 @@ getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.7.0', - 'unifunc' => 'content_6989b403135214_06797903', + 'unifunc' => 'content_698ce8475ca6c5_70769879', 'has_nocache_code' => false, 'file_dependency' => array ( '0f54e8b5c9bcafd01d94486bfa02ee91c2c5fe68' => array ( 0 => 'views/home.tpl', - 1 => 1770579251, + 1 => 1770721453, 2 => 'file', ), ), @@ -21,20 +21,20 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( 'file:views/_partial/preview.tpl' => 1, ), ))) { -function content_6989b403135214_06797903 (\Smarty\Template $_smarty_tpl) { +function content_698ce8475ca6c5_70769879 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views'; $_smarty_tpl->getInheritance()->init($_smarty_tpl, true); ?> getInheritance()->instanceBlock($_smarty_tpl, 'Block_8519413186989b403131000_39935260', "content"); +$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_1240817329698ce8475c5f82_37934128', "content"); ?> getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); } /* {block "content"} */ -class Block_8519413186989b403131000_39935260 extends \Smarty\Runtime\Block +class Block_1240817329698ce8475c5f82_37934128 extends \Smarty\Runtime\Block { public function callBlock(\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views'; @@ -48,6 +48,19 @@ $_smarty_current_dir = 'D:\\projetphp\\views'; directement en contact avec les entreprises.

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

Les 4 derniers articles

diff --git a/templates_c/1c51ad9f5c349145220f82584009ce981aa35e0b_0.file_layout.tpl.php b/templates_c/1c51ad9f5c349145220f82584009ce981aa35e0b_0.file_layout.tpl.php index 5c0945d..5225d20 100644 --- a/templates_c/1c51ad9f5c349145220f82584009ce981aa35e0b_0.file_layout.tpl.php +++ b/templates_c/1c51ad9f5c349145220f82584009ce981aa35e0b_0.file_layout.tpl.php @@ -1,18 +1,18 @@ getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.7.0', - 'unifunc' => 'content_6989b41646f355_64257736', + 'unifunc' => 'content_698ce84e84dcc1_11117501', 'has_nocache_code' => false, 'file_dependency' => array ( '1c51ad9f5c349145220f82584009ce981aa35e0b' => array ( 0 => 'views/layout.tpl', - 1 => 1770579251, + 1 => 1770649781, 2 => 'file', ), ), @@ -22,21 +22,21 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( 'file:views/_partial/footer.tpl' => 1, ), ))) { -function content_6989b41646f355_64257736 (\Smarty\Template $_smarty_tpl) { +function content_698ce84e84dcc1_11117501 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\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_12018663056989b41646d2e0_34201164', "content"); +$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_2114043754698ce84e84c177_54195501', "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_12018663056989b41646d2e0_34201164 extends \Smarty\Runtime\Block +class Block_2114043754698ce84e84c177_54195501 extends \Smarty\Runtime\Block { public function callBlock(\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views'; diff --git a/templates_c/20a11b6ecdc7e0959bdb519973f0177a783a4561_0.file_header.tpl.php b/templates_c/20a11b6ecdc7e0959bdb519973f0177a783a4561_0.file_header.tpl.php deleted file mode 100644 index ab2a5b4..0000000 --- a/templates_c/20a11b6ecdc7e0959bdb519973f0177a783a4561_0.file_header.tpl.php +++ /dev/null @@ -1,115 +0,0 @@ -getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_6989f726978651_30802796', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '20a11b6ecdc7e0959bdb519973f0177a783a4561' => - array ( - 0 => 'views/_partial/header.tpl', - 1 => 1770639154, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -))) { -function content_6989f726978651_30802796 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\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_6989b416601ef8_77236186', + 'unifunc' => 'content_698ce84e9b1e51_40033913', 'has_nocache_code' => false, 'file_dependency' => array ( '264314e384c04e79c5fa56e3cf6837f9df55d7fb' => array ( 0 => 'views/_partial/footer.tpl', - 1 => 1770579251, + 1 => 1770649781, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( array ( ), ))) { -function content_6989b416601ef8_77236186 (\Smarty\Template $_smarty_tpl) { +function content_698ce84e9b1e51_40033913 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views\\_partial'; ?>
diff --git a/templates_c/3309f8a981537e6cbbf8869c67d6dd307aa06ae3_0.file_project.tpl.php b/templates_c/3309f8a981537e6cbbf8869c67d6dd307aa06ae3_0.file_project.tpl.php deleted file mode 100644 index 96c5684..0000000 --- a/templates_c/3309f8a981537e6cbbf8869c67d6dd307aa06ae3_0.file_project.tpl.php +++ /dev/null @@ -1,110 +0,0 @@ -getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_698b26e1f18ff9_58457550', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '3309f8a981537e6cbbf8869c67d6dd307aa06ae3' => - array ( - 0 => 'views/project.tpl', - 1 => 1770634036, - 2 => 'file', - ), - ), - 'includes' => - array ( - 'file:../app/views/partials/preview.tpl' => 1, - ), -))) { -function content_698b26e1f18ff9_58457550 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; -$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); -?> - - -getInheritance()->instanceBlock($_smarty_tpl, 'Block_1455455414698b26e1f12061_00705481', "content"); -$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); -} -/* {block "content"} */ -class Block_1455455414698b26e1f12061_00705481 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; -?> - - -
-
-

Alimenter votre projet

-
- - - - -
- - -
-
- - -
-
- - -
-
- - -
-
- -
- - -
- - -
-
-

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);?> -
-
-
-
- -getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_6989f7269f97f7_68511256', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '3848b4db17319a951391d803dc4119c46e490c52' => - array ( - 0 => 'views/_partial/preview.tpl', - 1 => 1770646177, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -))) { -function content_6989f7269f97f7_68511256 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\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_6989e58c411304_60305191', + 'unifunc' => 'content_698ce812246388_58459261', 'has_nocache_code' => false, 'file_dependency' => array ( - '061ec8f4caa90f6cac9dd0d1f101149077158460' => + '4c2b74d2d77abca5363ffd92e8bc3a455c22b1bd' => array ( - 0 => 'views/projet_display.tpl', - 1 => 1770639154, + 0 => 'views/project_display.tpl', + 1 => 1770842115, 2 => 'file', ), ), @@ -20,21 +20,21 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( array ( ), ))) { -function content_6989e58c411304_60305191 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views'; +function content_698ce812246388_58459261 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'D:\\projetphp\\views'; $_smarty_tpl->getInheritance()->init($_smarty_tpl, true); ?> getInheritance()->instanceBlock($_smarty_tpl, 'Block_13978244256989e58c406518_61332798', "content"); +$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_1262370430698ce812236879_45885506', "content"); $_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); } /* {block "content"} */ -class Block_13978244256989e58c406518_61332798 extends \Smarty\Runtime\Block +class Block_1262370430698ce812236879_45885506 extends \Smarty\Runtime\Block { public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views'; +$_smarty_current_dir = 'D:\\projetphp\\views'; ?>
@@ -100,12 +100,13 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
- - getValue('objProject')->getUser_id();?> +" class="text-decoration-none text-dark"> + - + class="rounded-circle mb-3 mx-auto" + style="width:100px;height:100px;object-fit:cover;"> +
getValue('objProject')->getCreatorName();?>
diff --git a/templates_c/52c011ce77c5dc743b6591550c55ce4a78a4dbca_0.file_projet_display.tpl.php b/templates_c/52c011ce77c5dc743b6591550c55ce4a78a4dbca_0.file_projet_display.tpl.php deleted file mode 100644 index c00ec98..0000000 --- a/templates_c/52c011ce77c5dc743b6591550c55ce4a78a4dbca_0.file_projet_display.tpl.php +++ /dev/null @@ -1,128 +0,0 @@ -getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_698ae9506da109_21542800', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '52c011ce77c5dc743b6591550c55ce4a78a4dbca' => - array ( - 0 => 'views/projet_display.tpl', - 1 => 1770634036, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -))) { -function content_698ae9506da109_21542800 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; -$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); -?> - - -getInheritance()->instanceBlock($_smarty_tpl, 'Block_919254056698ae95061e435_82964089', "content"); -$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); -} -/* {block "content"} */ -class Block_919254056698ae95061e435_82964089 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\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_698ae969a7db02_27363144', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '5375cd75c92fd8c801b429efee0d6437582d377e' => - array ( - 0 => 'views/login.tpl', - 1 => 1770634036, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -))) { -function content_698ae969a7db02_27363144 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; -$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); -?> - - -getInheritance()->instanceBlock($_smarty_tpl, 'Block_342031104698ae969942f96_18698715', "content"); -$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); -} -/* {block "content"} */ -class Block_342031104698ae969942f96_18698715 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\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_6989e5b1383d99_95399806', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '55cbb497c7dde2dae3a712628e44c1dff2d9365b' => - array ( - 0 => 'views/search.tpl', - 1 => 1770639154, - 2 => 'file', - ), - ), - 'includes' => - array ( - 'file:views/_partial/preview.tpl' => 1, - ), -))) { -function content_6989e5b1383d99_95399806 (\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_10517171146989e5b1375aa5_10994726', "content"); -$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); -} -/* {block "content"} */ -class Block_10517171146989e5b1375aa5_10994726 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\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_6989b416566583_15954947', + 'unifunc' => 'content_698ce8478dbef1_65073741', 'has_nocache_code' => false, 'file_dependency' => array ( '67e1ae3a210fc2d1bf8782993687bad91a1cf0f6' => array ( 0 => 'views/_partial/preview.tpl', - 1 => 1770629075, + 1 => 1770841277, 2 => 'file', ), ), @@ -20,12 +20,12 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( array ( ), ))) { -function content_6989b416566583_15954947 (\Smarty\Template $_smarty_tpl) { +function content_698ce8478dbef1_65073741 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views\\_partial'; ?> -
+
@@ -38,32 +38,60 @@ $_smarty_current_dir = 'D:\\projetphp\\views\\_partial';
- getValue('objProject')->getUser_image();?> " - class="rounded-circle flex-shrink-0 mt-2 ml-5" - style="width: 48px; height: 48px; object-fit: cover;" - alt="Photo de profil"> + class="rounded-circle flex-shrink-0 mt-2 ml-5" + style="width: 48px; height: 48px; object-fit: cover;" + alt="Photo de profil"> -
-

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

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

- - - getValue('objProject')->getId();?> " - class="stretched-link small"> - Lire la suite → - -
+ class="stretched-link small"> + Lire la suite → + + + getValue('objProject')->getUser_id()) {?> + + Editer + + + +

-
+
-
getValue('objProject')->getStatus() == "en_attente") {?> + + getValue('projectStatus') == "refusé") {?> +

Portfolio refusé

+ +
+getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_6989f726914163_83904848', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '708269d7487a64eac6b48ed73fcd1924b1bda41b' => - array ( - 0 => 'views/layout.tpl', - 1 => 1770639154, - 2 => 'file', - ), - ), - 'includes' => - array ( - 'file:views/_partial/header.tpl' => 1, - 'file:views/_partial/footer.tpl' => 1, - ), -))) { -function content_6989f726914163_83904848 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\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_14089017836989f726912e95_86271581', "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_14089017836989f726912e95_86271581 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views'; -?> - - -getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.7.0', - 'unifunc' => 'content_6989b4162cc7a7_31054147', + 'unifunc' => 'content_698ce80be447b2_73034229', 'has_nocache_code' => false, 'file_dependency' => array ( '72e5e5c0ee2729980deadb1687a6d7b7b3c501bb' => array ( 0 => 'views/search.tpl', - 1 => 1770580115, + 1 => 1770649781, 2 => 'file', ), ), @@ -21,18 +21,18 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( 'file:views/_partial/preview.tpl' => 1, ), ))) { -function content_6989b4162cc7a7_31054147 (\Smarty\Template $_smarty_tpl) { +function content_698ce80be447b2_73034229 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views'; $_smarty_tpl->getInheritance()->init($_smarty_tpl, true); ?> getInheritance()->instanceBlock($_smarty_tpl, 'Block_1139012436989b4162bac57_95455595', "content"); +$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_977268380698ce80be327a4_02425845', "content"); $_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); } /* {block "content"} */ -class Block_1139012436989b4162bac57_95455595 extends \Smarty\Runtime\Block +class Block_977268380698ce80be327a4_02425845 extends \Smarty\Runtime\Block { public function callBlock(\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views'; diff --git a/templates_c/7e6dbbb1e41ad859e7f5b7b444b7670474263f88_0.file_home.tpl.php b/templates_c/7e6dbbb1e41ad859e7f5b7b444b7670474263f88_0.file_home.tpl.php deleted file mode 100644 index 96a1596..0000000 --- a/templates_c/7e6dbbb1e41ad859e7f5b7b444b7670474263f88_0.file_home.tpl.php +++ /dev/null @@ -1,71 +0,0 @@ -getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_6989f72687e0c8_78461032', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '7e6dbbb1e41ad859e7f5b7b444b7670474263f88' => - array ( - 0 => 'views/home.tpl', - 1 => 1770639154, - 2 => 'file', - ), - ), - 'includes' => - array ( - 'file:views/_partial/preview.tpl' => 1, - ), -))) { -function content_6989f72687e0c8_78461032 (\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_15962470546989f72687a521_39502617', "content"); -?> - -getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); -} -/* {block "content"} */ -class Block_15962470546989f72687a521_39502617 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\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_6989b4164decf6_40046278', + 'unifunc' => 'content_698ce84e8f9ec8_97257315', 'has_nocache_code' => false, 'file_dependency' => array ( '8056b95e7f6b28be5e36947735d13c8d176ec944' => array ( 0 => 'views/_partial/header.tpl', - 1 => 1770631509, + 1 => 1770842181, 2 => 'file', ), ), @@ -20,7 +20,7 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( array ( ), ))) { -function content_6989b4164decf6_40046278 (\Smarty\Template $_smarty_tpl) { +function content_698ce84e8f9ec8_97257315 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = 'D:\\projetphp\\views\\_partial'; ?> @@ -38,7 +38,7 @@ $_smarty_current_dir = 'D:\\projetphp\\views\\_partial'; - +getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_6989aef59222c5_05723018', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '858273afeea443d46db5cb9b3c1c67988eba5ded' => - array ( - 0 => 'views/projet_display.tpl', - 1 => 1770628836, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -))) { -function content_6989aef59222c5_05723018 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'D:\\projetphp\\views'; -$_smarty_tpl->getInheritance()->init($_smarty_tpl, true); -?> - - -getInheritance()->instanceBlock($_smarty_tpl, 'Block_9176586226989aef5913c31_97339576', "content"); -$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); -} -/* {block "content"} */ -class Block_9176586226989aef5913c31_97339576 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'D:\\projetphp\\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(), (bool) 1);?> - -
-
- - -
-
- - - - - - - -
-
- -
- - -
-
- - - -
getValue('objProject')->getCreatorName();?> -
- -

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

- - - -
-
- -
-
-getCompiled()->isFresh($_smarty_tpl, array ( - 'version' => '5.7.0', - 'unifunc' => 'content_698ca01221bd94_72131007', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '947d9aa54bf412a952e2af2d8a8255035d91b950' => - array ( - 0 => 'views/layout.tpl', - 1 => 1770823634, - 2 => 'file', - ), - ), - 'includes' => - array ( - 'file:views/_partial/header.tpl' => 1, - 'file:views/_partial/footer.tpl' => 1, - ), -))) { -function content_698ca01221bd94_72131007 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\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_1615160970698ca01220f761_21686611', "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_1615160970698ca01220f761_21686611 extends \Smarty\Runtime\Block -{ -public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; -?> - - -getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.7.0', - 'unifunc' => 'content_698b36e931d9d8_07796633', + 'unifunc' => 'content_698ce81087b505_07608517', 'has_nocache_code' => false, 'file_dependency' => array ( - '32d027bc6f198a0e3016434b0dddc13d6ee22b4c' => + 'ac38676c030d472426b3bc83bc530b255f98de05' => array ( 0 => 'views/user.tpl', - 1 => 1770729421, + 1 => 1770828319, 2 => 'file', ), ), @@ -21,28 +21,29 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( 'file:views/_partial/preview.tpl' => 1, ), ))) { -function content_698b36e931d9d8_07796633 (\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; +function content_698ce81087b505_07608517 (\Smarty\Template $_smarty_tpl) { +$_smarty_current_dir = 'D:\\projetphp\\views'; $_smarty_tpl->getInheritance()->init($_smarty_tpl, true); ?> getInheritance()->instanceBlock($_smarty_tpl, 'Block_2035018945698b36e930efe0_69529586', "content"); +$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_323782649698ce81086ce17_81897685', "content"); $_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir); } /* {block "content"} */ -class Block_2035018945698b36e930efe0_69529586 extends \Smarty\Runtime\Block +class Block_323782649698ce81086ce17_81897685 extends \Smarty\Runtime\Block { public function callBlock(\Smarty\Template $_smarty_tpl) { -$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views'; +$_smarty_current_dir = 'D:\\projetphp\\views'; ?>