<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="utf-8">
<title><?php echo $page_title; ?></title>
<?php echo $page_htmlhead; ?>
<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">
<!-- Begin favicon-->
<link rel="shortcut icon" type="image/png" href="<?php echo SITE_URL ?>/lib/skins/blueIce/images/favicon.png"/>
<!-- Begin favicon-->
<!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!-- Begin CSS-->
<link href="<?php echo SITE_URL?>/lib/skins/blueIce/css/all-stylesheets.css" rel="stylesheet" media="all" />
<!--[if lte IE 7]><link href="<?php echo SITE_URL?>/lib/skins/blueIce/css/style.ie7.css" media="screen" /><![endif]-->
<!-- End CSS-->
<style>.blueIce-content .blueIce-postcontent-0 .layout-item-0 { margin-top: 10px;  }
.blueIce-content .blueIce-postcontent-0 .layout-item-1 { border-style:Solid;border-width:2px;border-color:#E0E0E0; border-spacing: 5px 0px; border-collapse: separate;  }
.blueIce-content .blueIce-postcontent-0 .layout-item-2 { color: #253032; background: #FFFFFF; padding: 5px;  }
.ie7 .blueIce-post .blueIce-layout-cell {border:none !important; padding:0 !important; }
.ie6 .blueIce-post .blueIce-layout-cell {border:none !important; padding:0 !important; }
</style>
</head>
<body>
<?php echo $page_htmlreq; ?>
<?php 
if(Auth::LoggedIn() == false)
{
?>
<div id="w3_sticky_bar_container" class="remains_at_top" style="height:30px;">
<div id="w3_sticky_bar" class="remains_at_top w3_blue"> <span> Thank you for stopping by at <?php echo SITE_NAME; ?>. Ready to take your virtual flying to the next level? Become a pilot for <?php echo SITE_NAME; ?></span> <a class="blueIce-button" href="<?php echo SITE_URL ?>/index.php/Join"> Join <?php echo SITE_NAME; ?> Now! </a><br /><br />
</div>
</div>
<div id="w3_sticky_bar_pusher" style="height: 53px;"></div>
<?php
}
?>
<div id="blueIce-main">
<div class="blueIce-sheet clearfix">
<!-- Begin Header-->
<header class="blueIce-header">             
</header>
<!-- End Header-->
<!-- Begin Navigation-->
<?php Template::Show('core_navigation.php'); ?>
<!-- End Navigation-->
<!-- Begin Main Content-->
<?php
if(MainController::$activeModule == 'FRONTPAGE')
{
//Start Content Wrapper
echo '<div id="content_wrapper_sbr">';
//Start Content Area
//Display phpVMS page template
echo $page_content;
//End Content Area
echo '<div class="clear"></div>';
echo '</div>';
//End Content Wrapper
}
else
{
echo '<div id="content_wrapper_sbr">';
//Start Wide Content Area
//Display phpVMS page template
//echo '<div class="content_wide">';
echo $page_content;
//End Content Area
//echo '</div>';
echo '<div class="clear"></div>';
echo '</div>';
//End Wide Content Wrapper
}
?>
<!-- End Main Content-->
<!-- Begin Footer-->
<footer class="blueIce-footer">
<p>Copyright © <?php echo date("Y") ?>, blueIce v1.0.4 by <a href="http://www.phpvms.209studios.com" target="new">209Studios</a>. All Rights Reserved.</p><p>CMS by <a href="http://www.phpvms.net"target="new">phpVMS</a></p>
</footer>
<!-- End Footer-->

<!-- Begin Javascript-->
<script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/blueIce/js/script.responsive.js"></script>
<script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/blueIce/js/script.js"></script>
<script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/blueIce/js/bootstrap.min.js"></script>
<!-- End Javascript-->
<!-- Begin Login Modal -->
<div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="login">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><i class="fa fa-sign-in"></i> Crew Login</h4>
</div>
<div class="modal-body">
<form name="loginform" action="<?php echo url('/login');?>" method="post">
<div class="container center_div">
<label>Email Address or Pilot ID</label>
<input class="form-control input-sm" type="text" name="email" value=""/>
</div>
<br>
<div class="container center_div">
<label>Password</label>
<input class="form-control input-sm" type="password" name="password" value="" />
<br>
</div>
<div style="text-align:center;">
<div>
<input type="checkbox" name="remember"/><span> Remember Me</span>
</div>
<div>
</div>
<a href="index.php/Login/forgotpassword">I forgot my password</a>
</div>
<div class="modal-footer">
<span class="pull-left"><a href="<?php echo url('Login/forgotpassword'); ?>">Having Trouble Logging In?</a></span>
<button type="submit" name="submit" class="blueIce-button" value="Log In" /><i class="fa fa-sign-in fa-lg"></i> Login</button>
<input type="hidden" name="redir" value="index.php/Profile" />
<input type="hidden" name="action" value="login" />
<button type="button" class="blueIce-button" data-dismiss="modal"><i class="fa fa-times fa-lg"></i> Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>        
</div>
</div>
<!-- End Login Modal -->
<!-- Begin Logout Modal -->
<div class="modal fade" id="LogoutModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title"><i class="fa fa-sign-out" style="color:#04327F"></i> Logout</h4>
</div>
<div class="modal-body">
<div class="alert alert-danger">
<p><strong><i class="fa fa-exclamation-triangle fa-lg  fa-3x " aria-hidden="true"></i>  Are you sure you want to sign out of <?php echo SITE_NAME; ?>?</strong></p>
</div>
</div>
<div class="modal-footer">
<a href="<?php echo SITE_URL ?>/index.php/Logout"><button type="submit" name="submit" class="blueIce-button" value="Log In" /><i class="fa fa-sign-out"></i> Yes</button>
<button type="button" class="blueIce-button" data-dismiss="modal"><i class="fa fa-times"></i> No</button>
</div>
</div>
</div>
</div>
<!-- End Logout Modal -->
</div>
</div>
</div>
</body>
</html>


