aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/navback.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/navback.php')
-rw-r--r--app/view/templates/navback.php54
1 files changed, 54 insertions, 0 deletions
diff --git a/app/view/templates/navback.php b/app/view/templates/navback.php
new file mode 100644
index 0000000..c738ae2
--- /dev/null
+++ b/app/view/templates/navback.php
@@ -0,0 +1,54 @@
+<div class="menu">
+ <?= $user->level() ?>
+ <div id="dropmenu">
+
+ <ul>
+
+ <li>
+ <a class="button" href="./">home</a>
+ </li>
+
+
+<?php if($user->isvisitor()) { ?>
+
+ <li>
+ <form action="?action=login" method="post">
+ <input type="password" name="pass" id="loginpass" placeholder="password">
+ <input type="submit" value="login">
+ </form>
+ </li>
+
+<?php } else { ?>
+
+ <li>
+ <form action="?action=logout" method="post">
+ <input type="submit" value="logout">
+ </form>
+ </li>
+
+<?php } ?>
+
+
+
+
+<?php if ($user->canedit()) { ?>
+
+ <li>
+ <a class="button" href="?aff=media" >Media</a>
+ </li>
+
+<?php } ?>
+
+<?php if($user->isadmin()) { ?>
+
+ <li>
+ <a class="button" href="?aff=admin" >Admin</a>
+ </li>
+
+<?php } ?>
+
+
+ </ul>
+
+ </div>
+</div> \ No newline at end of file