First web gui prototype
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?=$g_lang?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title><?=APP_TITLE_SHORT?> - <?=$pagetitle?></title>
|
||||
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="bootstrap/bootstrap-icons.min.css" rel="stylesheet">
|
||||
<script src="bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<link rel="stylesheet" href="default.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-xxl">
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="index.php"><?php echo $user->vessel ?? _('Ghost'); ?></a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav">
|
||||
<?php
|
||||
foreach ($g_menu as $key => $value) {
|
||||
echo str_repeat(' ', 4);
|
||||
echo '<li class="nav-item">';
|
||||
$active = ($g_scriptname == $key) ? ' active' : '';
|
||||
echo '<a class="nav-link', $active,'" href="', $key, '">', $value[0], "</a>";
|
||||
echo "</li>\n";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
// ========== SYSTEM FEEDBACK =================================================
|
||||
|
||||
$g_error->PrintOut();
|
||||
$g_warning->PrintOut();
|
||||
$g_message->PrintOut();
|
||||
$g_success->PrintOut();
|
||||
Reference in New Issue
Block a user