<?php
$menus = array("API" => "百度API配置", "WasteSorting" => "垃圾分类管理", "Question" => "题目管理");
require_once "config.php";
require_once __ROOT__ . "/head.php";
getMenu("后台管理");


echo <<<EOF
<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
EOF;
foreach ($menus as $key => $value) {
    echo <<<EOF
        <li class="nav-item">
        <a class="nav-link" href="#">$value</a>
      </li>
EOF;

}
echo <<<EOF
      <li class="nav-item">
        <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
      </li>
    </ul>
  </div>
</nav>
EOF;