/header.php

https://github.com/h4xnoodle/orientation2010 · PHP · 86 lines · 78 code · 8 blank · 0 comment · 16 complexity · 7a026cd80d2075289288496d033f5648 MD5 · raw file

  1. <?php
  2. require("include/config.php");
  3. session_start();
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <title>UW Math Orientation 2010 - <?php echo $names[basename($_SERVER[PHP_SELF],'.php')]; ?></title>
  9. <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
  10. <meta name="description" content="University of Waterloo, Faculty of Mathematics. Orientation 2010" />
  11. <meta name="keywords" content="waterloo, orientation, pokemon, math, pikachu, pink tie, pinktie, pink-tie, tie" />
  12. <link rel="stylesheet" href="style.css" type="text/css" />
  13. <?php if((basename($_SERVER['PHP_SELF'],'.php') == "teams" && ($_SERVER['QUERY_STRING'] == 'elite_four' || $_SERVER['QUERY_STRING'] == 'team_rocket'))) { ?>
  14. <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
  15. <?php } elseif(basename($_SERVER['PHP_SELF'],'.php') == "main" && !($_SERVER['QUERY_STRING'])) { ?>
  16. <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
  17. <?php } elseif(basename($_SERVER['PHP_SELF'],'.php') == "index") { ?>
  18. <script type="text/javascript" src="flowplayer/flowplayer-3.1.4.min.js"></script>
  19. <?php } else { ?>
  20. <style type='text/css'>
  21. div#wrap div#sidebar {
  22. display:none;
  23. }
  24. div#wrap div#content {
  25. width: 840px;
  26. }
  27. </style>
  28. <?php } ?>
  29. <?php if($_SERVER['QUERY_STRING'] == "events") { ?>
  30. <script type="text/javascript" src="include/mootools-1.2.4.js"></script>
  31. <script type="text/javascript" src="include/mootools-more-1.2.4.js"></script>
  32. <script language="javascript">
  33. window.addEvent('domready', function() {
  34. $$('.desc').each(function(element,index) {
  35. if(element.get('title') != null) {
  36. var content = element.get('title').split('::');
  37. element.store('tip:title', content[0]);
  38. element.store('tip:text', content[1]);
  39. }
  40. });
  41. var tipz = new Tips('.desc',{
  42. className: 'desc',
  43. fixed: false
  44. });
  45. });
  46. </script>
  47. <?php } ?>
  48. </head>
  49. <body>
  50. <div id="wrap">
  51. <div id="header">
  52. <a class="home" href="main.php"> </a>
  53. <ul class="teams">
  54. <?php
  55. if($showteams) {
  56. foreach($teams as $team)
  57. echo "<li><a href='teams.php?".$team['refname']."'>".$team['displayname']."</a></li>";
  58. } else {
  59. foreach($teams as $team)
  60. echo "<li><a href='#' title='".$team."'>".$team."</a></li>";
  61. }
  62. ?>
  63. </ul>
  64. </div>
  65. <div id="menu">
  66. <ul>
  67. <li><a href="main.php">Home</a></li>
  68. <li><a href="main.php?events">Events</a></li>
  69. <li><a href="cheers.php">Cheers</a></li>
  70. <li><a href="main.php?pictures">Pictures</a></li>
  71. <li><a href="faq.php">FAQ</a></li>
  72. <li><a href="pinktie.php">The Pink Tie</a></li>
  73. <li><a href="main.php?sponsors">Sponsors</a></li>
  74. <li><a href="main.php?contact">Contact Us</a></li>
  75. </ul>
  76. </div>
  77. <div id="content"> <!-- It won't end up being all nicely tabbed :( -->
  78. <p class="notice">LEADERS: Update your profiles <a href="update_profile.php">here!</a>.</p>