<?php if ($pg == '') : ?>
    <?php include 'sandik_rapor/home.php'; ?>
<?php elseif ($pg == 'pengaturan'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'pengaturan/pengaturan.php'; ?>
<?php elseif ($pg == 'settingrapor'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/settingrapor.php'; ?>	
<?php elseif ($pg == 'urutmapel'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/mapel.php'; ?>
 <?php elseif ($pg == 'kkm'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/jadwalmapel.php'; ?>
 <?php elseif ($pg == 'spiritual'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/spiritual.php'; ?>
	<?php elseif ($pg == 'sosial'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/sosial.php'; ?>
	<?php elseif ($pg == 'mastereskul'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/mastereskul.php'; ?>
		<?php elseif ($pg == 'cetakrapor'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/cetakrapor.php'; ?>
	<?php elseif ($pg == 'cetakraporproyek'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/cetakraporproyek.php'; ?>
		<?php elseif ($pg == 'updatesiswa'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/updatesiswa.php'; ?>
	<?php elseif ($pg == 'profilku'): ?>
    <?php include 'profilku.php'; ?>
	 <?php elseif ($pg == 'sikap'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/sikap.php'; ?>
	
	 <?php elseif ($pg == 'cetakpts'): ?>
    <?php cek_session_admin(); ?>
    <?php include 'sandik_rapor/cetakpts.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 ?>
