mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-18 15:32:54 +01:00
38 lines
708 B
PHP
38 lines
708 B
PHP
<?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>';
|
|
}
|
|
print "<a href='{$THIS_MODULE_PATH}/{$path}'>" . ucwords($submodule) . "</a></li>\n";
|
|
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<?php
|
|
}
|
|
|
|
?>
|