<?php if ($pg == '') : ?>
    <?php include 'home.php'; ?>

 <!-- PENGATURAN -->
<?php elseif ($pg == 'pengaturan') : ?>
    <?php include 'pengaturan/pengaturan.php'; ?>
<?php elseif ($pg == 'apiwa') : ?>
    <?php include 'pengaturan/apiwa.php'; ?>	 
	 
	 <!-- USERS -->
<?php elseif ($pg == 'admin') : ?>
    <?php include 'cbtserver_user/admin.php'; ?>
<?php elseif ($pg == 'guru') : ?>
    <?php include 'cbtserver_user/guru.php'; ?>
<?php elseif ($pg == 'staff') : ?>
    <?php include 'cbtserver_user/staff.php'; ?>	
	
	 <!-- MASTER -->
<?php elseif ($pg == 'siswa') : ?>
    <?php include 'cbtserver_master/siswa.php'; ?>
<?php elseif ($pg == 'mapel') : ?>
    <?php include 'cbtserver_master/mapel.php'; ?>	
<?php elseif ($pg == 'kuri') : ?>
    <?php include 'cbtserver_master/kuri.php'; ?>	


	
<?php elseif ($pg == 'jurusan') : ?>
    <?php include 'cbtserver_master/jurusan.php'; ?>	
<?php elseif ($pg == 'jenis') : ?>
    <?php include 'cbtserver_master/jenis.php'; ?>		
	<?php elseif ($pg == 'peserta') : ?>
<?php cek_session_admin(); ?>
    <?php include 'cbtserver_ujian/peserta.php'; ?>
<?php elseif ($pg == 'stspeserta') : ?>
<?php cek_session_admin(); ?>
    <?php include 'cbtserver_ujian/status_peserta.php'; ?>
	 <!-- PENGATURAN -->
<?php elseif ($pg == 'setting') : ?>
<?php cek_session_admin(); ?>
    <?php include 'pengaturan/pengaturan.php'; ?>

	<!-- BANK SOAL -->
	<?php elseif ($pg == 'banksoal') : ?>
    <?php include 'cbtserver_ujian/bank/banksoal.php'; ?>
	<!-- EDIT SOAL -->
<?php elseif ($pg == 'editsoal1'): ?>
    <?php include 'cbtserver_ujian/akm/editsoal1.php'; ?>		
<?php elseif ($pg == 'editsoal2'): ?>
    <?php include 'cbtserver_ujian/akm/editsoal2.php'; ?>	
<?php elseif ($pg == 'editsoal3'): ?>
    <?php include 'cbtserver_ujian/akm/editsoal3.php'; ?>	
<?php elseif ($pg == 'editsoal4'): ?>
    <?php include 'cbtserver_ujian/akm/editsoal4.php'; ?>	
<?php elseif ($pg == 'editsoal5'): ?>
    <?php include 'cbtserver_ujian/akm/editsoal5.php'; ?>		
<?php elseif ($pg == 'filependukung'): ?>
    <?php include 'cbtserver_ujian/bank/filependukung.php'; ?>	
<?php elseif ($pg == 'backupexcel'): ?>
    <?php include 'cbtserver_ujian/bank/excel.php'; ?>	
	
<!-- JADWAL & UJIAN -->	
<?php elseif ($pg == 'jadwalujian'): ?>
    <?php include 'cbtserver_ujian/jadwal.php'; ?>
<?php elseif ($pg == 'reset'): ?>
    <?php include 'status/reset.php'; ?>	
<?php elseif ($pg == 'status') : ?>
     <?php include "status/status_peserta.php"; ?>		
<?php elseif ($pg == 'resetandro'): ?>
    <?php include 'cbtserver_ujian/resetandroid.php'; ?>	
	<!-- CETAK -->	
<?php elseif ($pg == 'karpes') : ?>
    <?php include 'cbtserver_ujian/cetak/kartu.php'; ?>	
<?php elseif ($pg == 'nopes') : ?>
    <?php include 'cbtserver_ujian/cetak/nopes.php'; ?>	
<?php elseif ($pg == 'absen') : ?>
    <?php include 'cbtserver_ujian/cetak/absen.php'; ?>	
<?php elseif ($pg == 'berita') : ?>
    <?php include 'cbtserver_ujian/cetak/berita.php'; ?>	
<?php elseif ($pg == 'buatberita') : ?>
    <?php include 'cbtserver_ujian/cetak/buatberita.php'; ?>	
<?php elseif ($pg == 'beritaacara') : ?>
    <?php include 'cbtserver_ujian/cbt/prev_berita.php'; ?>

<!-- /NILAI -->
<?php elseif ($pg == 'nilaiujian'): ?>
    <?php include 'cbtserver_ujian/nilai/nilaiujian.php'; ?>
<?php elseif ($pg == 'anbuso'): ?>
    <?php include 'cbtserver_ujian/nilai/anbuso.php'; ?>	
<?php elseif ($pg == 'nakm'): ?>
    <?php include 'cbtserver_ujian/nilai/nilai_akm.php'; ?>	
<?php elseif ($pg == 'ncbt'): ?>
    <?php include 'cbtserver_ujian/nilai/nilai_cbt.php'; ?>		
<?php elseif ($pg == 'analisis'): ?>
    <?php include 'cbtserver_ujian/nilai/analisis.php'; ?>		
<?php elseif ($pg == 'analisis2'): ?>
    <?php include 'cbtserver_ujian/nilai/analisis2.php'; ?>	


<?php elseif ($pg == 'resetdata') : ?>
    <?php include 'pengaturan/resetdata.php'; ?>
<?php elseif ($pg == 'backupdata') : ?>
    <?php include 'pengaturan/backupdata.php'; ?>
<?php elseif ($pg == 'restore') : ?>
    <?php include 'pengaturan/restoredata.php'; ?>
<?php elseif ($pg == 'live'): ?>
    <?php include 'live.php'; ?>	
	

<?php else : ?>
 <div class="app app-error align-content-stretch d-flex flex-wrap">
        <div class="app-error-info">
            <h5>Oops!</h5>
            <span>It seems that the page you are looking for no longer exists.<br>
                We will try our best to fix this soon.</span>
            <a href="." class="btn btn-dark">Go to dashboard</a>
        </div>
        <div class="app-error-background"></div>
    </div>

<?php endif ?>
