<div class="app-menu">
                <ul class="accordion-menu">
                  
                    <li>
                        <a href="index.php"><i class="fa fa-home"></i>Home</a>
                    </li>
                  <li>
                        <a href="?"><i class="fa fa-tachometer-alt"></i>Beranda</a>
                    </li>
                   
				 <li>
                        <a href="?pg=settingskl"><i class="fa fa-tools"></i>Pengaturan SKL</a>
                    </li>
				 <li>
                        <a href="?pg=siswa"><i class="fa fa-users-cog"></i>Data Siswa</a>
                    </li>
				 <li>
                        <a href="?pg=mapel"><i class="fa fa-paw"></i>Mata Pelajaran</a>
                    </li>
			    <li>
                        <a href="?pg=nilai"><i class="fa fa-flag"></i>Impor Nilai Semeter</a>
                    </li>
					 <li>
                        <a href="?pg=nilaiujian"><i class="fa fa-rss"></i>Impor Nilai Ujian</a>
                    </li>
					<?php if($setting['jenjang']=='SMK' OR $setting['jenjang']=='SMA' OR $setting['jenjang']=='PAKET-C'){ ?>
				  <li>
				 <a href=""><i class="fa fa-car"></i> Kompetensi Keahlian <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
				   <?php $query = mysqli_query($koneksi, "select * from kelas GROUP BY idpk"); ?>
					      <?php while ($k = mysqli_fetch_array($query)):	?>
                      <li>
                        <a href="?pg=pk&idpk=<?= $k['idpk'] ?>">Program Keahlian - <?= $k['idpk'] ?></a>
                    </li>
					<?php endwhile; ?> 	
                    </ul>	
                     </li>	
                    <li>
				  <a href=""><i class="fa fa-cog"></i> Master Produktif <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
						 <?php $query = mysqli_query($koneksi, "select * from kelas GROUP BY idpk"); ?>
					      <?php while ($k = mysqli_fetch_array($query)):	?>
                   <li>
                        <a href="?pg=pk&ac=produktif&idpk=<?= $k['idpk'] ?>">Program Keahlian - <?= $k['idpk'] ?></a>
                    </li>
					  <?php endwhile; ?> 
					</ul>	
                     </li>		
					    <li>
                        <a href="?pg=prod"><i class="fa fa-calculator"></i>Nilai Produktif</a>
                    </li>
					  <li>
                        <a href="?pg=pkl"><i class="fa fa-bicycle"></i>Praktek Kerja Lapangan</a>
                    </li>
					<?php } ?>
					
					<li>
                        <a href="?pg=skkb"><i class="fa fa-th-list"></i>Surat Ket Kelakuan Baik</a>
                    </li>
				 <li>
                        <a href=""><i class="fa fa-print"></i> Cetak Data <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
                            <li>
                                <a href="?pg=transkip">Transkip Nilai</a>
                            </li>
                           		
                        </ul>
                    </li>	
					
					<hr style="margin:0px">
					 <li>
                        <a href="?pg=reset"><i class="fas fa-database"></i>Reset SKL</a>
                    </li>
					
					 <li>
                        <a href="logout"><i class="fa fa-sign-in-alt"></i>Logout</a>
                    </li>
					<hr style="margin:0px">
					</ul>
            </div>
        </div>