2018-06-01 17:10:45 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##################################
|
|
|
|
|
|
|
|
function render_submenu() {
|
|
|
|
|
|
|
|
global $THIS_MODULE_PATH;
|
|
|
|
|
|
|
|
$submodules = array( 'users' => 'index.php',
|
|
|
|
'groups' => 'groups.php'
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
<nav class="navbar navbar-default">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<?php
|
|
|
|
foreach ($submodules as $submodule => $path) {
|
|
|
|
|
|
|
|
if (basename($_SERVER['SCRIPT_FILENAME']) == $path) {
|
|
|
|
print "<li class='active'>";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
print '<li>';
|
|
|
|
}
|
2023-01-10 10:51:18 +01:00
|
|
|
print "<a href='{$THIS_MODULE_PATH}/{$path}'>" . ucwords($submodule) . "</a></li>\n";
|
2020-12-24 18:24:41 +00:00
|
|
|
|
2018-06-01 17:10:45 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|