-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·86 lines (78 loc) · 2.93 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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>