diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-04-12 16:54:59 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-04-12 16:54:59 +0200 |
commit | 1b6f5e650fa774cda77d511bf4cbdc638a2b42f6 (patch) | |
tree | ec560104a579ac0e21de40d1666f3da80bc8862a /public | |
parent | 552dd49b00cedb168c95cdf841971e93b0ad678d (diff) | |
download | wcms-1b6f5e650fa774cda77d511bf4cbdc638a2b42f6.tar.gz wcms-1b6f5e650fa774cda77d511bf4cbdc638a2b42f6.zip |
delete_update_media_blank
Diffstat (limited to 'public')
-rw-r--r-- | public/css/style.css | 28 | ||||
-rw-r--r-- | public/media/vac.png | bin | 0 -> 941802 bytes | |||
-rw-r--r-- | public/w/index.php | 23 |
3 files changed, 47 insertions, 4 deletions
diff --git a/public/css/style.css b/public/css/style.css index 163ca7d..5cdb822 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -19,6 +19,10 @@ h3 { opacity: 0.7; } +h6 { + font-size: 1em; +} + p{ font-size: 1em; } @@ -27,6 +31,14 @@ em { opacity: 0.8; } +a{ + text-decoration: none; +} + +a:hover{ + text-decoration: underline; +} + img { width: 90%; max-width: 1000px; @@ -38,10 +50,16 @@ article { line-height: 1.2em; } -article .edit { +.edit { text-align: left; + padding-top: 1%; + padding-bottom: 1%; + padding-left: 8%; + padding-right: 8%; + line-height: 1.2em; } + article input, textarea, select { width: 90%; padding-left: 15px; @@ -52,6 +70,7 @@ article input, textarea, select { height: 30px; border-style: unset; } + #html{ height: 1000px; } @@ -128,4 +147,11 @@ nav a { border-width: 2px; border-color: lightgrey; border-style: outset; +} + +.submit { + position: fixed; + top: 0px; + left: 0px; + width: 8%; }
\ No newline at end of file diff --git a/public/media/vac.png b/public/media/vac.png Binary files differnew file mode 100644 index 0000000..569f539 --- /dev/null +++ b/public/media/vac.png diff --git a/public/w/index.php b/public/w/index.php index 93d9f46..0a153b0 100644 --- a/public/w/index.php +++ b/public/w/index.php @@ -38,15 +38,33 @@ if (isset($_POST['action'])) { } break; + case 'delete': + if ($app->exist($_GET['id'])) { + $art = new Art($_POST); + $app->delete($art); + header('Location: ?id=' . $art->id()); + } + break; + + case 'login': $_SESSION['level'] = $app->login($_POST['pass']); - header('Location: ?id=' . $_GET['id']); + if (isset($_GET['id'])) { + header('Location: ?id=' . $_GET['id']); + } else { + header('Location: ?'); + } break; case 'logout': $_SESSION['level'] = $app->logout(); - header('Location: ?id=' . $_GET['id']); + if (isset($_GET['id'])) { + header('Location: ?id=' . $_GET['id']); + } else { + header('Location: ?'); + } break; + } } @@ -111,7 +129,6 @@ if (isset($_GET['id'])) { $aff->tag($app->getlister(), $_GET['tag']); } else { - echo "<h4>Bienvenue sur ce site.</h4>"; $aff->home($app->lister()); } echo '</body>'; |