		<aside class='main-sidebar' >
		    <div class="menu-header" >
		        <h5 style="text-align:center;color:#2F4F4F"><?= $setting['sekolah'] ?> <br> <small> Sistem Administrasi Pendidik</small><br>SANDIK</h5>
		        <ul>
		            <li>
		                <a style="color:#fff" href="." class="btn-logout">
		                    <span class="fa fa-home fa-2x"></span><br>
		                    <p style="color:#fff">Dashboard</p>
		                </a>
		            </li>
		            <li>
		                <a style="color:#fff" class="btn-logout" href="?pg=setting">
		                    <span class="fa fa-tools fa-2x"></span><br>
		                    <p style="color:#fff">Transkip</p>
		                </a>
		            </li>
		            <li>
		                <a style="color:#fff" href="logout.php" class="btn-logout"> <span class="fa fa-sign-in-alt fa-2x"></span><br>
		                    <p style="color:#fff">Log Out</p>
		                </a>
		            </li>
		        </ul>
		    </div>
		    <section class='sidebar'>
		        <ul class='sidebar-menu tree data-widget=' tree>
		            <?php if($user['level'] == 'admin'){ ?>
		            <li class="header text-center"><b style="color:#2F4F4F">MENU PK - ADMIN</b></li>
		            <?php } ?>
		            <?php if($user['level'] == 'guru'){ ?>
		            <li class="header"><b style="color:#2F4F4F">MENU PK - GURU</b></li>
		            <?php } ?>
		            <?php if($user['level'] == 'kepala'){ ?>
		            <li class="header">MENU KEPALA SEKOLAH</li>
		            <?php } ?>
		            <hr style="margin:0px">
		            <?php if ($user['level'] == 'admin') : ?>
		            <hr style="margin:0px">
					<li class='treeview'><a style="color:#2F4F4F" href='transkip'><i  class="fas fa-home side-menu-icon fa-fw"></i> <span> Beranda</span></a></li>
							 <hr style="margin:0px">
							
					<li class='treeview'><a style="color:#2F4F4F" href='?pg=updatesiswa'><i  class="fas fa-graduation-cap side-menu-icon fa-fw"></i> <span> Update Siswa</span></a></li>
							 <hr style="margin:0px">
					<li class='treeview'>
		                <a href='#' ><i class="fas fa-tachometer-alt side-menu-icon fa-fw"></i> <span style="color:#2F4F4F">Kompetensi Keahlian</span><span class='pull-right-container'> <i class='fa fa-angle-down pull-right'></i> </span></a>
		                <ul class='treeview-menu' style="color:#A9A9A9">
						  <?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'] ?>"><i class='far fa-circle fa-fw'></i> <span>Program Keahlian - <?= $k['idpk'] ?></span></a></li>
		                     <hr style="margin:0px">
							
		                  <?php endwhile; ?> 
		                </ul>
		            </li>
					 <hr style="margin:0px">
		            <li class='treeview'>
		                <a href='#' ><i class="fas fa-th-large side-menu-icon fa-fw"></i> <span style="color:#2F4F4F">Master Produktif</span><span class='pull-right-container'> <i class='fa fa-angle-down pull-right'></i> </span></a>
		                <ul class='treeview-menu' style="color:#A9A9A9">
						  <?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'] ?>"><i class='far fa-circle fa-fw'></i> <span>Program Keahlian - <?= $k['idpk'] ?></span></a></li>
		                     <hr style="margin:0px">
							
		                  <?php endwhile; ?> 
		                </ul>
		            </li>
		             <hr style="margin:0px">
					<li class='treeview'><a style="color:#2F4F4F" href='?pg=impornilai'><i  class="fas fa-edit side-menu-icon fa-fw"></i> <span> Impor Nilai Semester</span></a></li>
							 <hr style="margin:0px">
		           <li class='treeview'><a style="color:#2F4F4F" href='?pg=impor1'><i  class="fas fa-edit side-menu-icon fa-fw"></i> <span> Impor Nilai Ujian Sekolah</span></a></li>
							 <hr style="margin:0px">

					<li class='treeview'><a style="color:#2F4F4F" href='?pg=prod'><i  class="fas fa-laptop side-menu-icon fa-fw"></i> <span> Nilai Produktif</span></a></li>
				 <hr style="margin:0px">
				<li class='treeview'><a style="color:#2F4F4F" href='?pg=pkl'><i  class="fas fa-rss side-menu-icon fa-fw"></i> <span> P K L</span></a></li>
				<hr style="margin:0px">
				<li class='treeview'><a style="color:#2F4F4F" href='?pg=cetak1'><i  class="fas fa-print side-menu-icon fa-fw"></i> <span> Transkip Nilai</span></a></li>
				<hr style="margin:0px">
				<li class='treeview'><a style="color:#2F4F4F" href='?pg=cetak2'><i  class="fas fa-print side-menu-icon fa-fw"></i> <span> Transkip S K U</span></a></li>
				<hr style="margin:0px">
		        </ul>
					
					
					
				   <?php endif ?>
					
		    </section>
		</aside>