diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-22 02:04:53 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-22 02:04:53 +0100 |
commit | 695908c7ab2a5d5f011f616d2af3368da7131a6f (patch) | |
tree | cbd6c2a43495e77863d3611e2f6b12985b1111d8 /app/view/templates/user.php | |
parent | a8ed9070e7773f3147a33dbee7d45ce24bd8959d (diff) | |
download | wcms-695908c7ab2a5d5f011f616d2af3368da7131a6f.tar.gz wcms-695908c7ab2a5d5f011f616d2af3368da7131a6f.zip |
home columns and download function added
Diffstat (limited to 'app/view/templates/user.php')
-rw-r--r-- | app/view/templates/user.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/view/templates/user.php b/app/view/templates/user.php index 451d3ce..0f9ac7b 100644 --- a/app/view/templates/user.php +++ b/app/view/templates/user.php @@ -15,17 +15,19 @@ -<form action="" method="post"> +<form action="<?= $this->url('userpref') ?>" method="post"> -<h2>Connexion Options</h2> +<h2>Preferences</h2> -<input type="number" name="cookie" id="cookie"> +<input type="number" name="cookie" value="<?= $getuser->cookie() ?>" id="cookie" min="0" max="365"> <label for="cookie">Cookie conservation time <i>(In days)</i></label> <input type="submit" value="submit"> </form> +<?php if($user->isadmin()) { ?> + <h1>Admin panel</h1> <table> @@ -108,6 +110,7 @@ foreach ($userlist as $user ) { </table> +<?php } ?> </main> |