Fonctionnalité tri catégorie et date ok. Nettoyage du code et des commentaires de tous les models

This commit is contained in:
laura.chevillet 2026-02-10 11:23:29 +01:00
parent 3af2e8a056
commit 8ce49943dd
18 changed files with 381 additions and 116 deletions

View file

@ -1,18 +1,18 @@
<?php
/* Smarty version 5.7.0, created on 2026-02-09 14:54:18
/* Smarty version 5.7.0, created on 2026-02-10 08:16:45
from 'file:views/home.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.7.0',
'unifunc' => 'content_6989f51a3af749_66573336',
'unifunc' => 'content_698ae96d2e58d9_91616548',
'has_nocache_code' => false,
'file_dependency' =>
array (
'ca790de9f8d5a4fc03b03b8d137ec1edb99bdd92' =>
array (
0 => 'views/home.tpl',
1 => 1770639710,
1 => 1770711346,
2 => 'file',
),
),
@ -21,20 +21,20 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'file:views/_partial/preview.tpl' => 1,
),
))) {
function content_6989f51a3af749_66573336 (\Smarty\Template $_smarty_tpl) {
function content_698ae96d2e58d9_91616548 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>
<?php
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_17367792036989f51a3abb88_04857391', "content");
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_826938963698ae96d2e14b1_12340515', "content");
?>
<?php $_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
}
/* {block "content"} */
class Block_17367792036989f51a3abb88_04857391 extends \Smarty\Runtime\Block
class Block_826938963698ae96d2e14b1_12340515 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
@ -48,16 +48,17 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
directement en contact avec les entreprises.</p>
</section>
<!--filtres de "recherche"-->
<section class="container mt-5 p-5 d-flex flex-column align-items-center text-center">
<div>
<form method="GET">
<button type="submit" class="btn btn-primary" value="">catégorie 1</button>
<button type="submit" class="btn btn-primary" value="">catégorie 2</button>
<button type="submit" class="btn btn-primary" value="">Plus de 6 mois</button>
<button type="reset" class="btn btn-primary" value="">Tout</button>
</form>
</div>
<div class="mb-4">
<form method="GET" action="index.php">
<input type="hidden" name="ctrl" value="project">
<input type="hidden" name="action" value="home">
<button type="submit" name="filter_cat" value="1" class="btn btn-primary">Design</button>
<button type="submit" name="filter_cat" value="2" class="btn btn-primary">Développement Web</button>
<button type="submit" name="filter_old" value="true" class="btn btn-primary">Plus de 6 mois</button>
<a href="index.php?ctrl=project&action=home" class="btn btn-primary">Tout</a>
</form>
</div>
</section>
<section class="container" aria-label="Articles récents">