From 552dd49b00cedb168c95cdf841971e93b0ad678d Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 20 Mar 2018 14:37:49 +0100 Subject: get tag --- public/w/index.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'public/w/index.php') diff --git a/public/w/index.php b/public/w/index.php index f12e7f4..93d9f46 100644 --- a/public/w/index.php +++ b/public/w/index.php @@ -83,7 +83,7 @@ if (isset($_GET['id'])) { if (isset($_GET['edit']) and $_GET['edit'] == 1) { $aff->edit($art); - $aff->aside($app->list()); + $aff->aside($app->lister()); } else { $aff->lecture($art); @@ -92,8 +92,7 @@ if (isset($_GET['id'])) { if (isset($_POST['action'])) { if ($_POST['action'] == 'new') { $art = new Art($_GET); - $art->default(); - var_dump($art); + $art->reset(); $app->add($art); header('Location: ?id=' . $_GET['id'] . '&edit=1'); } @@ -107,9 +106,13 @@ if (isset($_GET['id'])) { } } +} elseif (isset($_GET['tag'])) { + echo '

' . $_GET['tag'] . '

'; + $aff->tag($app->getlister(), $_GET['tag']); + } else { echo "

Bienvenue sur ce site.

"; - $aff->home($app->list()); + $aff->home($app->lister()); } echo ''; -- cgit v1.2.3