diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/view/stdpage.php | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php index 0af782a..7797ef5 100644 --- a/app/view/stdpage.php +++ b/app/view/stdpage.php @@ -15,6 +15,7 @@ namespace stdpage; require_once "class/globals.php"; +require_once "class/user.class.php"; ?> <?php function head(?string $title = NULL) : void { ?> @@ -79,3 +80,70 @@ require_once "class/globals.php"; <script type="text/javascript" src="<?=ar()?>/static/js/bootstrap.min.js"></script> <?php } ?> +<?php function nav() : void { ?> + + <nav class="navbar navbar-inverse navbar-fixed-top"> + <div class="container-fluid"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#scrottnav" aria-expanded="false"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + + <a href="<?=ar()?>/" class="navbar-brand"> + <span class="glyphicon glyphicon-pencil"></span> Scrott + </a> + </div> + + <div class="collapse navbar-collapse" id="scrottnav"> + <?php if (!\user::getCurrent()) { ?> + <p class="navbar-text navbar-right"><i>Not Logged In </i></p> + <?php } else { ?> + <ul class="nav navbar-nav"> + <li><a href="<?=ap()?>"><span class="glyphicon glyphicon-refresh"></span></a></li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> + <i>Dashboard</i> <span class="caret"></span> + </a> + + <ul class="dropdown-menu"> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + </ul> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> + <span class="glyphicon glyphicon-plus"></span> <span class="caret"></span> + </a> + + <ul class="dropdown-menu"> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + </ul> + </li> + </ul> + + <ul class="nav navbar-nav navbar-right"> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> + User Button <span class="caret"></span> + </a> + + <ul class="dropdown-menu"> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + </ul> + </li> + </ul> + <?php } ?> + </div> + </div> + </nav> + +<?php } ?> |