<?php if ($pg == '') : ?>
    <?php include 'sandik_ptm/home.php'; ?>
<?php elseif ($pg == 'setlogo'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_ptm/setlogo.php'; ?>
<?php elseif ($pg == 'settingptm'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_ptm/settingptm.php'; ?>	
<?php elseif ($pg == 'pengaturan'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'pengaturan/pengaturan.php'; ?>
 <!-- /master -->
<?php elseif ($pg == 'importmaster'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_master/import.php'; ?>
 <!-- /jadwal -->
<?php elseif ($pg == 'jadwalmapel'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_ptm/jadwalmapel.php'; ?>	
<?php elseif ($pg == 'buatjadwal'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_ptm/buatjadwal.php'; ?>	
<?php elseif ($pg == 'editjadwal'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_ptm/editjadwal.php'; ?>	
	<!-- /ptm absen -->	
<?php elseif ($pg == 'absenmapel'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_absen/absenmapel.php'; ?>	
<?php elseif ($pg == 'absenkelas'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_absen/absenkelas.php'; ?>		
<?php elseif ($pg == 'absenpeg'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_absen/absenpegawai.php'; ?>		
<?php elseif ($pg == 'agenda'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_agenda/agenda.php'; ?>
<?php elseif ($pg == 'jurnal'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_agenda/jurnal.php'; ?>		
<?php elseif ($pg == 'profilku'): ?>
    <?php include 'profilku.php'; ?>
<?php elseif ($pg == 'agendaguru'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'agendaguru.php'; ?>	
<?php elseif ($pg == 'jurnalguru'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'jurnalguru.php'; ?>	
<?php elseif ($pg == 'nilaiharianguru'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'nilaiharianguru.php'; ?>	

<?php elseif ($pg == 'bell') : ?>
    <?php cek_session_admin(); ?>
    <?php include 'bell.php'; ?>	
	
	<!-- /ptm absen -->	
	<?php elseif ($pg == 'rfidsiswa'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'rfidsiswa.php'; ?>	
	<?php elseif ($pg == 'rfidpeg'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'rfidpeg.php'; ?>	
	<?php elseif ($pg == 'tambahkartu') : ?>
<?php cek_session_admin(); ?>
    <?php include 'tambah.php'; ?>
<?php elseif ($pg == 'tambahkartupeg') : ?>
<?php cek_session_admin(); ?>
    <?php include 'tambahpeg.php'; ?>	
<?php elseif ($pg == 'inputguru') : ?>
    <?php include 'absenguru.php'; ?>		
<?php elseif ($pg == 'absenrfid') : ?>
<?php cek_session_admin(); ?>
    <?php include 'absenrfid.php'; ?>	
<?php elseif ($pg == 'guruabsen') : ?>
<?php cek_session_admin(); ?>
    <?php include 'guruabsen.php'; ?>	
		
	
<?php elseif ($pg == 'nilaiujian'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_nilai/nilaiujian.php'; ?>	
	
	<?php elseif ($pg == 'absenkls'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_ptm/absenkelas.php'; ?>	
	
	<?php elseif ($pg == 'settingkarpel'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_karpel/setting.php'; ?>	
<?php elseif ($pg == 'cetakkarpel'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_karpel/cetakkarpel.php'; ?>
	<?php elseif ($pg == 'tartib'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_karpel/tartib.php'; ?>
<!-- /Merdeka -->
	<?php elseif ($pg == 'tujuan'): ?>
    <?php include 'sandik_ptm/m_proto/tujuan.php'; ?>	
	<?php elseif ($pg == 'lingkup'): ?>
    <?php include 'sandik_ptm/m_proto/lingkup.php'; ?>	
	
	
<?php else : ?>
    <div class='error-page'>
        <h2 class='headline text-yellow'> 404</h2>
        <div class='error-content'>
            <br />
            <h3><i class='fa fa-warning text-yellow'></i> Upss! Halaman tidak ditemukan.</h3>
            <p>
                Halaman yang anda inginkan saat ini tidak tersedia.<br />
                Silahkan kembali ke <a href='?'><strong>dashboard</strong></a> dan coba lagi.<br />
                Hubungi petugas <strong><i>Developer</i></strong> jika ini adalah sebuah masalah.
            </p>
        </div>
    </div>
<?php endif ?>
