Advertisement
Guest User

layout.tpl

a guest
Apr 22nd, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.95 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns:fb="http://ogp.me/ns/fb#">
  3. <head>
  4. <?php
  5. /* This is required, so phpVMS can output the necessary libraries it needs */
  6. echo $page_htmlhead;
  7. ?>
  8. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title><?php echo $page_title; ?></title>
  11. <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
  12. <link href="<?php echo SITE_URL?>/lib/skins/aavirtual/css/reset.css" rel="stylesheet" type="text/css" />
  13. <link href="<?php echo SITE_URL?>/lib/skins/aavirtual/css/default.css" rel="stylesheet" type="text/css" />
  14. <?php /*Any custom Javascript should be placed below this line, after the above call */ ?>
  15. <script> src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
  16. <script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/aavirtual/js/jquery.leanModal.min.js"></script>
  17. <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCQxJumVVnsGegGx7TR_hogt4qu1e49Sp0&sensor=true"></script>
  18. <script type="text/javascript">
  19. function initialize() {
  20. var mapOptions = {
  21. center: new google.maps.LatLng(40.97990, -50.62500),
  22. zoom: 2,
  23. panControl: false,
  24. zoomControl: false,
  25. mapTypeControl: false,
  26. scaleControl: false,
  27. streetViewControl: false,
  28. overviewMapControl: false,
  29. mapTypeId: google.maps.MapTypeId.SATELLITE
  30. };
  31. var map = new google.maps.Map(document.getElementById("map-canvas"),
  32. mapOptions);
  33.  
  34. var flightPlanCoordinates = [
  35. new google.maps.LatLng(40.6398, -73.7787),
  36. new google.maps.LatLng(18.041, -63.1089)
  37. ];
  38. var flightPath = new google.maps.Polyline({
  39. path: flightPlanCoordinates,
  40. strokeColor: "#25aef9",
  41. strokeOpacity: 1.0,
  42. strokeWeight: 2
  43. });
  44.  
  45. flightPath.setMap(map);
  46.  
  47. }
  48. google.maps.event.addDomListener(window, 'load', initialize);
  49. </script>
  50.  
  51. <script>
  52. $(document).ready(function() {
  53. function tick(){
  54. $('#ticker li:first').slideUp( function () { $(this).appendTo($('#ticker')).slideDown(); });
  55. }
  56. //setInterval(function(){ tick () }, 5000);
  57.  
  58. $('.quicklogin').leanModal({overlay : 0.4, closeButton: ".modal_close"});
  59.  
  60. });
  61. </script>
  62. </head>
  63.  
  64. <body onload="initialize()">
  65. <?php
  66. /* This should be the first thing you place after a <body> tag
  67. This is also required by phpVMS */
  68. echo $page_htmlreq;
  69. ?>
  70. <div id="fb-root"></div>
  71. <script>(function(d, s, id) {
  72. var js, fjs = d.getElementsByTagName(s)[0];
  73. if (d.getElementById(id)) return;
  74. js = d.createElement(s); js.id = id;
  75. js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=108422045984290";
  76. fjs.parentNode.insertBefore(js, fjs);
  77. }(document, 'script', 'facebook-jssdk'));</script>
  78. <div id="headwrap">
  79. <div class="wrapper">
  80. <div id="logo"></div>
  81. <ul id="quicklinks">
  82. <?php
  83. if(Auth::LoggedIn() == false)
  84. { ?>
  85. <li><a href="<?php echo url('/registration'); ?>" class="quick">Register</a></li>
  86. <li><a href="#crewlogin" class="quick quicklogin">Crew Login</a></li>
  87. <?php
  88. }
  89. else {
  90. ?>
  91.  
  92. <li><a href="<?php echo url('/downloads'); ?>" class="quick">Downloads</a></li>
  93.  
  94.  
  95. <li><a href="<?php echo url('/profile'); ?>" class="quick">View my Profile</a></li>
  96. <?php
  97. if(Auth::LoggedIn())
  98. {
  99. if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
  100. {
  101. echo '<li><a href="'.fileurl('/admin').'" class="quick">Admin Center</a></li>';
  102. }
  103.  
  104. }
  105. ?>
  106. <li><a href="<?php echo url('/logout'); ?>" class="quick quicklogin">Logout</a></li>
  107. <?php } ?>
  108. </ul>
  109. <div class="clear"></div>
  110. <ul id="nav">
  111. <?php
  112. Template::Show('core_navigation.tpl');
  113. ?>
  114. </ul>
  115. <div id="join-container">
  116. <h1>fly with the best.</h1>
  117. <h3>join today and be part of something new</h3>
  118. <a href="<?php echo url('/registration'); ?>" class="join-button">Join Today!</a>
  119. </div>
  120. <div class="clear"></div>
  121. <div id="latest-news">
  122. <div id="news-anchor">Latest News</div>
  123. <ul id="ticker">
  124. <li>
  125. Welcome to AAVirtual! Rebranded, redesigned, reimagined!
  126. </li>
  127. </ul>
  128. <div class="clear"></div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="clear"></div>
  133. <div id="mainwrap">
  134. <div class="wrapper">
  135. <?php echo $page_content; ?>
  136. </div>
  137. </div>
  138. <div id="footwrap">
  139. <div class="wrapper">
  140. <ul id="footer-links">
  141. <li>
  142. <ul>
  143. <li class="title">Corporate</li>
  144. <li><a href="<?php echo url('/corporate'); ?>">About Us</a></li>
  145. <li><a href="<?php echo url('/corporate/team'); ?>">Staff Team</a></li>
  146. <li><a href="<?php echo url('/corporate/media'); ?>">News &amp; Media</a></li>
  147. <li><a href="<?php echo url('/corporate/partners'); ?>">Our Partners</a></li>
  148. </ul>
  149. </li>
  150. <li>
  151. <ul>
  152. <li class="title">Operations</li>
  153. <li><a href="<?php echo url('/pilots'); ?>">Pilot Roster</a></li>
  154. <li><a href="<?php echo url('/operations/fleet'); ?>">Fleet Centre</a></li>
  155. <li><a href="<?php echo url('/schedules'); ?>">Search Flights</a></li>
  156.  
  157. <li><a href="<?php echo url('/acars') ?>">Live Flights</a></li>
  158. </ul>
  159. </li>
  160. <li>
  161. <ul>
  162. <li class="title">Community</li>
  163. <li><a href="<?php echo url('/forums') ?>">Forums</a></li>
  164. <li><a href="<?php echo url('/community/events') ?>">Events</a></li>
  165. <li><a href="http://facebook.com/FlyAAGEFS">Facebook</a></li>
  166. <li><a href="http://twitter.com/VirtualAA">Twitter</a></li>
  167. <li><a href="http://youtube.com/AVAAmerican">Youtube</a></li>
  168. </ul>
  169. </li>
  170. <li>
  171. <ul>
  172. <li class="title">Careers</li>
  173. <?php
  174. if(!Auth::LoggedIn())
  175. {
  176. // Show these if they haven't logged in yet
  177. ?>
  178. <li><a href="<?php echo url('/registration'); ?>">Join Today!</a></li>
  179. <?php
  180. }
  181. ?>
  182.  
  183. <li><a href="http://aalv.net/Dev/lib/skins/aavirtual/0.3.pdf">Airline Ranks &amp; Policies</a></li>
  184. </ul>
  185. </li>
  186. </ul>
  187. <div id="footer-logo"></div>
  188. <div id="copyright">
  189. <p>Copyright © <?php echo SITE_NAME; ?> <?php echo date('Y') ?>. All Rights Reserved</p>
  190. <p>Click the link if you needed <a href="www.americanairlines.com">www.americanairlines.com</a></p>
  191. <p>powered by <a href="#">phpVMS</a></p>
  192. </div>
  193. <div class="clear"></div>
  194. </div>
  195. </div>
  196. <?php
  197. /*
  198. Quick example of how to see if they're logged in or not
  199. Only show this login form if they're logged in */
  200. if(Auth::LoggedIn() == false)
  201. { ?>
  202. <div id="crewlogin">
  203. <div class="modal_close"></div>
  204. <h2>Crew Login</h2>
  205. <hr>
  206. <form id="login-form" name="login-form" method="post" action="<?php echo url('/login'); ?>">
  207. <input type="text" name="email" value="" onClick="this.value=''" />
  208. <input type="password" name="password" value="" />
  209. <input type="hidden" name="remember" value="on" />
  210. <input type="hidden" name="redir" value="index.php/profile" />
  211. <input type="hidden" name="action" value="login" />
  212. <p>Forgot password? <a href="#">Password reminder!</a></p>
  213. <button>Login</button>
  214. </form>
  215. </div>
  216. <?php
  217. }?>
  218. <div id="lean_overlay"></div>
  219. </body>
  220. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement