diff options
Diffstat (limited to 'app/view/templates/backtopbar.php')
-rw-r--r-- | app/view/templates/backtopbar.php | 45 |
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 |