<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
	<title>KoBo and Power BI</title>
	<script type="text/javascript" src="../bootstrap4/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="../bootstrap4/css/bootstrap.min.css"> 
	<script type="text/javascript" src="../bootstrap4/canvasjs.min.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
	<meta name="viewport" content="width=device-width, initial-scale=.8">
	<style type="text/css">
	body {font-family: "Times New Roman", Times, serif;font-size: 16px;}
		#header {font-family: "Times New Roman", Times, serif;
			font-size: 26px;
			background-color: orange;
			color: white;}
			#red {color:red;}
	</style>
</head>
<body>
<?php 
if(isset($_GET['pswd']))
{
$pswd = $_GET['pswd'];
$a = "mknkobo.admin";
$b = "mggkobo.admin";
$c = "hpnkobo.admin";
$pt = 'https://app.powerbi.com/view?r=eyJrIjoiMGQxZmQyMGYtZTIwNi00YTU3LWE5MWEtMGQxYjkzOGZlYTA2IiwidCI6IjNjM2EzYzZhLThkMGEtNDQ2YS1hZTgyLWNlZTViNjA1OTA0ZSIsImMiOjh9&pageName=ReportSection';
$path = "<iframe title='Index testing' width='100%' height='550' src='".$pt."' frameborder='100' allowFullScreen='true'></iframe>";
	if($pswd==$a||$pswd==$b||$pswd==$c){ ?>
<div class="row">
		<div class="col-md-12" align="center" id="header">
			<b><u>	Index Testing Online Register - MdM </u></b>
		</div>
</div>
	<br>
<div class="row">
		<div class="col-md-12">
			<?php echo $path; ?>
		</div>
</div>
<?php }
	else { echo "<script>location.assign('kobo_bi.php');</script>";}
}
else { echo "<script>location.assign('kobo_bi.php');</script>";}
?>
</body>
</html>