aboutsummaryrefslogtreecommitdiff
path: root/w/view/templates/nav.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-10-25 20:25:05 +0200
committervincent-peugnet <v.peugnet@free.fr>2018-10-25 20:25:05 +0200
commita91c916248f967da2d4218b575e665242b7c975b (patch)
tree3c767e9b7b62161253aef2d93030f4b38fd47d49 /w/view/templates/nav.php
parent7b2e48276b2a3ceff83c906d38077f8d0479c3df (diff)
downloadwcms-a91c916248f967da2d4218b575e665242b7c975b.tar.gz
wcms-a91c916248f967da2d4218b575e665242b7c975b.zip
phoenixreborn\'NWY
Diffstat (limited to 'w/view/templates/nav.php')
-rw-r--r--w/view/templates/nav.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/w/view/templates/nav.php b/w/view/templates/nav.php
new file mode 100644
index 0000000..e731673
--- /dev/null
+++ b/w/view/templates/nav.php
@@ -0,0 +1,42 @@
+<div class="menu">
+ <?= $this->e($level) ?>
+ <div id="dropmenu">
+
+ <a class="button" href="?">home</a>
+
+ <!-- id if level == 0 -->
+ <form action="./?action=login<?= isset($this->e($id)) ? '&id=' . $this->e($id) : '' ?>" method="post">
+ <input type="password" name="pass" id="loginpass" placeholder="password">
+ <input type="submit" value="login">
+ </form>
+
+
+ <!-- id if level > 0 -->
+ <form action="./?action=logout<?= isset($this->e($id)) ? '&id=' . $this->e($id) : '' ?>" method="post">
+ <input type="submit" value="logout">
+ </form>
+
+
+ <!-- display / edit -->
+
+
+ if ($app->session() >= $app::EDITOR && isset($_GET['id']) && $app->exist($_GET['id'])) {
+ if (isset($_GET['edit']) && $_GET['edit'] == 1) {
+ echo '<a class="button" href="?id=' . $_GET['id'] . '" target="_blank">display</a>';
+ } else {
+ echo '<a class="button" href="?id=' . $_GET['id'] . '&edit=1" >edit</a>';
+ }
+ }
+ if ($app->session() >= $app::EDITOR) {
+ echo '<a class="button" href="?aff=media" >Media</a>';
+ echo '<a class="button" href="?aff=record" >Record</a>';
+ if ($app->session() >= $app::ADMIN) {
+ echo '<a class="button" href="?aff=admin" >Admin</a>';
+ }
+ }
+
+
+
+
+</div>
+</dav> \ No newline at end of file