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/css/style.css | 17 ++++++++++++++--- public/w/index.php | 11 +++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) (limited to 'public') diff --git a/public/css/style.css b/public/css/style.css index 54326c9..163ca7d 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -23,12 +23,23 @@ p{ font-size: 1em; } +em { + opacity: 0.8; +} + +img { + width: 90%; + max-width: 1000px; +} + article { text-align: justify; - padding: 3%; + padding: 3%; + line-height: 1.2em; } -article p{ +article .edit { + text-align: left; } article input, textarea, select { @@ -42,7 +53,7 @@ article input, textarea, select { border-style: unset; } #html{ - height: 400px; + height: 1000px; } #css{ 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