diff options
Diffstat (limited to 'management-interface/index.php')
-rwxr-xr-x | management-interface/index.php | 37 |
1 files changed, 11 insertions, 26 deletions
diff --git a/management-interface/index.php b/management-interface/index.php index ea35e8c..dbd73ce 100755 --- a/management-interface/index.php +++ b/management-interface/index.php @@ -2,6 +2,9 @@ # include important scripts require "./php/settings.php"; +require "./php/functions.php"; + +$include = true; ?> <!DOCTYPE html> @@ -41,28 +44,16 @@ require "./php/settings.php"; <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand" href="#"><?php echo PAGENAME; ?></a> + <a class="navbar-brand" href="<?php echo $_SERVER["PHP_SELF"]; ?>?m=home"><?php echo PAGENAME; ?></a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#about">About</a></li> - <li><a href="#contact">Contact</a></li> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li class="dropdown-header">Nav header</li> - <li><a href="#">Separated link</a></li> - <li><a href="#">One more separated link</a></li> - </ul> - </li> + <li<?php echo ($_item=="home")?" class=\"active\"":""; ?>><a href="<?php echo $_SERVER["PHP_SELF"]; ?>?m=home">Home</a></li> + <li<?php echo ($_item=="user")?" class=\"active\"":""; ?>><a href="<?php echo $_SERVER["PHP_SELF"]; ?>?m=user">User</a></li> + <li<?php echo ($_item=="about")?" class=\"active\"":""; ?>><a href="<?php echo $_SERVER["PHP_SELF"]; ?>?m=about">About</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="<?php echo $_SERVER["PHP_SELF"]; ?>?m=login">Login</a></li> + <li<?php echo ($_item=="login")?" class=\"active\"":""; ?>><a href="<?php echo $_SERVER["PHP_SELF"]; ?>?m=login">Login</a></li> </ul> </div><!--/.nav-collapse --> </div> @@ -71,15 +62,9 @@ require "./php/settings.php"; <div class="container"> - <!-- Main component for a primary marketing message or call to action --> - <div class="jumbotron"> - <h1>Navbar example</h1> - <p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p> - <p>To see the difference between static and fixed top navbars, just scroll.</p> - <p> - <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a> - </p> - </div> + <?php + include "./php/" . $_item . ".inc.php"; + ?> </div> <!-- /container --> |