<header id="header" class="fixed-top" style="background-color: #eef0ef;">
  <div class="container d-flex align-items-center">

    <div class="foto ml-1">
      <img src="admin/dist/img/foto smk 2 guguak/20180601143556.PNG" alt="" width="50">
      <a style="color: black;"><b>SMKN 2 GUGUAK</b>
    </div>

    <nav class="nav-menu d-none d-lg-block">
      <ul>
        <li class="active"><a href="index.php">Home</a></li>


        <li class="drop-down"><a href="">Profil</a>

          <ul>
            <?php
            $data = $koneksi->query("SELECT * FROM tbl_kdf");
            foreach ($data as $pecah) :
            ?>
              <li><a href="?page=pages/profil/profil_perkategori&idkategori=<?= $pecah['kdf_id']; ?>"><?= $pecah['kdf_nama'] ?></a></l>

              <?php
            endforeach;
              ?>
          </ul>

        </li>


        <li class="drop-down"><a href="#">Jurusan</a>
          <ul>
            <?php
            $data = $koneksi->query("SELECT * FROM tbl_jurusan");

            foreach ($data as $pecah) :
            ?>
              <li><a href="?page=pages/jurusan/per_jurusan&idjurusan=<?= $pecah['jurusan_id']; ?>"><?= $pecah['jurusan_nama'] ?></a></li>

            <?php endforeach; ?>

          </ul>
        </li>
        <li class="drop-down"><a href="?page=pages/berita/view">Berita</a>
          <ul>
            <?php
            $data = $koneksi->query("SELECT * FROM tbl_kategori");

            foreach ($data as $pecah) :  ?>

              <li><a href="?page=pages/berita/berita_perkategori&idkategori=<?= $pecah['kategori_id']; ?>"><?= $pecah['kategori_nama'] ?></a></li>

            <?php endforeach; ?>
          </ul>
        </li>
        <!-- <li><a href="?page=pages/artikel/view">Artikel</a></li> -->
        <li><a href="?page=pages/pengumuman/view">Pengumuman</a></li>
        <li>
          <?php
          $dataguru = $koneksi->query("SELECT * FROM tbl_guru");
          ?>
          <a href="?page=pages/guru/view">Guru</a>
        </li>
        <li><a href="?page=pages/galeri/view">Galeri</a></li>
        <li>
          <a href="?page=pages/contact/index">Contact</a>
        </li>
      </ul>

    </nav><!-- .nav-menu -->

    <a href="admin/login.php" class="get-started-btn bx bx-user ml-5"> Login</a>

  </div>
</header>