diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/css/style.css | 17 | ||||
-rw-r--r-- | public/w/index.php | 11 |
2 files changed, 21 insertions, 7 deletions
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 '<h4>' . $_GET['tag'] . '</h4>'; + $aff->tag($app->getlister(), $_GET['tag']); + } else { echo "<h4>Bienvenue sur ce site.</h4>"; - $aff->home($app->list()); + $aff->home($app->lister()); } echo '</body>'; |