<html>
	<head>

		<style>
		body{
			background: -o-linear-gradient(top, #069, #fff);
			background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#fff));
			background: -moz-linear-gradient(top,  #ccc,  #fff);
		}
		</style>
	</head>
	<body style="font-family: Arial; text-align: center;">
		<div style="padding-top: 5em; height: 100%">
		<img src="/emr/doc/images/swiftpracticelogo_plain.png" />
		<h2 style=" color: orangered; text-shadow:0 1px 1px rgba(0,0,0,.3);">ERROR CONNECTING TO THE DATABASE</h2>
		<h4 style="font-style:italic;color:skyblue;">Your database is currently unavailable </h4>
		<br>
		<?php if($_GET['ref']):?><a href="<?=$_GET['ref']?>">Try Again</a><?php endif?>
		<?php
		//print_r($_SESSION);
		?>
		</div>
	<script>
		<?php if( !empty($_GET['ref'])):?>
		setInterval(function(){
			window.location = '<?php echo $_GET['ref']?>';
		}, 5000);
		<?php endif?>
	</script>	
	</body>
</html>