<?php
ob_start();
session_start();
error_reporting(0);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php judul();?></title>
<link rel="stylesheet" href="view/styles.css" type="text/css" />
<script src="view/chart/Chart.bundle.js"></script>

<style type="text/css">
            .containerxx {
                width: 50%;
                margin: 15px auto;
            }
        </style>
		
    <script>
        function confirmdelete(delUrl) {
            if (confirm("Anda yakin ingin menghapus?")) {
                document.location = delUrl;
            }
        }
    </script>
</head>

<body>

<div id="container">

<div id="container-inner">

	<div id="header">
    </div><!-- end header -->



    <div id="banner">

        <div id="slogan">
        <p>&nbsp;<span class="slogan-big"><strong>&nbsp;</strong></span><br />
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="slogan-big"><strong>&nbsp;</strong></span> &nbsp;</p></div><!-- end slogan -->

                                             <div id="nav">
    	<ul>
        	<li><a href="index.adm">Home</a></li>
			<?php if (@$_SESSION['leveluser'] == ''){ ?>
			<li><a href="media.php?module=datalatih&act=user">Analisa</a></li>
			<li><a href='media.php?module=datalatih&act=grafik'>Grafik</a></li>
			<li><a href='profil.adm'>Profil</a></li>
			<li><a href="contact-us.adm">Contact</a></li>
            <li><a href="login.adm">Login</a></li>
			<?php }elseif (@$_SESSION['leveluser'] == 'admin'){ ?>
            <li><a href="media.php?module=periode">Periode</a></li>
    		<li><a href="media.php?module=atribut">Atribut</a></li>
			<li><a href="media.php?module=nilaiatribut">Nilai Atribut</a></li>
    		<li><a href="media.php?module=dataset">Data Set</a></li>
            <li><a href="media.php?module=datalatih">Data PAD</a></li>
			<?php } ?>
        </ul>
    </div><!-- end nav -->
    </div><!-- end banner -->


    <div id="main">
    <?php
				if ($_GET['module']=='dataset' || @$_GET['act']=='proses'){
	?>
    		<div id="contentxx">
        		<?php include "content.php"; ?>
        	</div><!-- end content -->
    <?php
				}else{
				?>
		<div id="content">
        <?php include "content.php"; ?>
        </div><!-- end content -->


        <div class="sidebar">
        <?php include "sidebar.php";  ?>
        </div><!-- end sidebar -->
        <?php } ?>
    	<div class="clear"></div>

    </div><!-- end main -->

    </div><!-- end container-inner -->

</div><!-- end container -->

<div id="footer">
	<p>Copyright (c) <?php tahun();?> - <?php objek();?></p>
</div><!-- end footer -->

</body>
</html>
