aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/backtopbar.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-04 13:55:04 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-04 13:55:04 +0100
commit13acdbd444b0ae26e83ab8cf62d60a7f59268545 (patch)
tree9186bda4bffa9751c5e93da2d09d762f40cc0adc /app/view/templates/backtopbar.php
parentd0ef17169701f90a9dab5f50e3eb61954653cae2 (diff)
downloadwcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz
wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip
admin panel
Diffstat (limited to 'app/view/templates/backtopbar.php')
-rw-r--r--app/view/templates/backtopbar.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php
new file mode 100644
index 0000000..1f4a246
--- /dev/null
+++ b/app/view/templates/backtopbar.php
@@ -0,0 +1,45 @@
+<div id="topbar">
+
+<?php if($user->isvisitor()) { ?>
+
+
+<form action="<?= $this->url('log') ?>" method="post">
+<input type="password" name="pass" id="loginpass" placeholder="password">
+<input type="submit" name="log" value="login">
+</form>
+
+
+<?php } else { ?>
+
+<form action="<?= $this->url('log') ?>" method="post">
+<input type="submit" name="log" value="logout">
+</form>
+
+<span>
+User level : <?= $user->level() ?>
+</span>
+
+<?php } ?>
+
+<?php if($user->iseditor()) { ?>
+
+
+<span>
+<a href="<?= $this->url('home') ?>">home</a>
+<?php
+if($user->isadmin()) {
+?>
+<a href="<?= $this->url('font') ?>">font</a>
+<a href="<?= $this->url('admin') ?>">admin</a>
+<?php
+}
+?>
+</span>
+
+
+
+
+
+<?php } ?>
+
+</div> \ No newline at end of file