/header.php
https://github.com/h4xnoodle/orientation2010 · PHP · 86 lines · 78 code · 8 blank · 0 comment · 16 complexity · 7a026cd80d2075289288496d033f5648 MD5 · raw file
- <?php
- require("include/config.php");
- session_start();
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>UW Math Orientation 2010 - <?php echo $names[basename($_SERVER[PHP_SELF],'.php')]; ?></title>
- <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
- <meta name="description" content="University of Waterloo, Faculty of Mathematics. Orientation 2010" />
- <meta name="keywords" content="waterloo, orientation, pokemon, math, pikachu, pink tie, pinktie, pink-tie, tie" />
- <link rel="stylesheet" href="style.css" type="text/css" />
- <?php if((basename($_SERVER['PHP_SELF'],'.php') == "teams" && ($_SERVER['QUERY_STRING'] == 'elite_four' || $_SERVER['QUERY_STRING'] == 'team_rocket'))) { ?>
- <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
- <?php } elseif(basename($_SERVER['PHP_SELF'],'.php') == "main" && !($_SERVER['QUERY_STRING'])) { ?>
- <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>
- <?php } elseif(basename($_SERVER['PHP_SELF'],'.php') == "index") { ?>
- <script type="text/javascript" src="flowplayer/flowplayer-3.1.4.min.js"></script>
- <?php } else { ?>
- <style type='text/css'>
- div#wrap div#sidebar {
- display:none;
- }
- div#wrap div#content {
- width: 840px;
- }
- </style>
- <?php } ?>
- <?php if($_SERVER['QUERY_STRING'] == "events") { ?>
- <script type="text/javascript" src="include/mootools-1.2.4.js"></script>
- <script type="text/javascript" src="include/mootools-more-1.2.4.js"></script>
- <script language="javascript">
- window.addEvent('domready', function() {
- $$('.desc').each(function(element,index) {
- if(element.get('title') != null) {
- var content = element.get('title').split('::');
- element.store('tip:title', content[0]);
- element.store('tip:text', content[1]);
- }
- });
-
- var tipz = new Tips('.desc',{
- className: 'desc',
- fixed: false
- });
- });
- </script>
- <?php } ?>
- </head>
- <body>
- <div id="wrap">
- <div id="header">
- <a class="home" href="main.php"> </a>
- <ul class="teams">
- <?php
- if($showteams) {
- foreach($teams as $team)
- echo "<li><a href='teams.php?".$team['refname']."'>".$team['displayname']."</a></li>";
- } else {
- foreach($teams as $team)
- echo "<li><a href='#' title='".$team."'>".$team."</a></li>";
- }
- ?>
- </ul>
- </div>
- <div id="menu">
- <ul>
- <li><a href="main.php">Home</a></li>
- <li><a href="main.php?events">Events</a></li>
- <li><a href="cheers.php">Cheers</a></li>
- <li><a href="main.php?pictures">Pictures</a></li>
- <li><a href="faq.php">FAQ</a></li>
- <li><a href="pinktie.php">The Pink Tie</a></li>
- <li><a href="main.php?sponsors">Sponsors</a></li>
- <li><a href="main.php?contact">Contact Us</a></li>
- </ul>
- </div>
-
- <div id="content"> <!-- It won't end up being all nicely tabbed :( -->
- <p class="notice">LEADERS: Update your profiles <a href="update_profile.php">here!</a>.</p>