<?php
include_once "library/inc.sesadmin.php";
include_once "library/inc.library.php";
?>

<head>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/jquery-ui.js"></script>
<link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
<link type="text/css" href="css/TeksStatis.css" rel="stylesheet" />
        <script defer src="js/mylibs/jquery-ui-1.8.15.custom.min.js"></script> <!-- jQuery UI -->
        <link rel="stylesheet" media="screen" href="css/style_datatables.css"/>
		<script type="text/javascript" src="js/jquery.dataTables.js"></script>
<script>
$(document).ready(function() {
	$("#tabs").tabs( {
		"show": function(event, ui) {
			var oTable = $('div.dataTables_scrollBody>table.display', ui.panel).dataTable();
			if ( oTable.length > 0 ) {
				oTable.fnAdjustColumnSizing();
			}
		}
	} );
	
	$('table.display').dataTable( {
		
		 "bProcessing": false,
		 "bScrollCollapse": false,
		"bPaginate": true,
		"bJQueryUI": false,
		"sPaginationType": "full_numbers",
		"aoColumnDefs": [
			{ "sWidth": "10%", "aTargets": [ -1 ] }
		]
	} );
} );
  </script>



</head>
<html>
<body>

<div id="tabs">
  <ul>
	<?php if(isset($_SESSION['SES_SUPERADMIN'])){ ?>
    	<li><a href="#Registered">Registered</a></li>
		<li><a href="#Confirmed">Confirmed</a></li>
		<li><a href="#Unconfirmed">Unvalidated</a></li>
	<?php } ?>
  </ul>


<?php if(isset($_SESSION['SES_SUPERADMIN'])){ ?>
        <div id="Registered">
			<?php include "home/registered.php"; ?>
        </div>

        <div id="Confirmed">
			<?php include "home/validated.php"; ?>
        </div>

        <div id="Unconfirmed">
			<?php include "home/unvalidated.php"; ?>
        </div>
	<?php } ?>


</div>
</body>
</html>
