forked from TeamMeanMachine/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mindex.php
107 lines (90 loc) · 2.51 KB
/
mindex.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!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>
<?php
$pagename = htmlspecialchars($_GET["page"]);
if ($pagename == '') {
$pagename = "About Us";
}
$menu = array(
"About Us" => "mindex.php?page=About Us",
"News" => "mindex.php?page=Latest News",
"Calendar" => "mindex.php?page=Calendar",
"Awards" => "mindex.php?page=Robots and Awards",
"Parents" => "mindex.php?page=Parent's Corner",
"Links" => "mindex.php?page=Important Links",
);
?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo "$pagename - Team 2471"; ?></title>
<meta name="keywords" content="" />
<meta name="Everyday Series" content="" />
<link href="mobile.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<!-- start header -->
<?php
include("mheader.php");
?>
<!-- end header -->
<div id="wrapper">
<table id="menu" cellpadding="0" cellspacing="0" border="0">
<tr>
<?php
$menuindex = 1;
foreach($menu as $name => $URL){
if ($menuindex == 1) {
$align = 'align="left"';
} elseif ($menuindex == count($menu)) {
$align = 'align="right"';
} else {
$align = 'align="center"';
}
$menuindex++;
if ($pagename == $name) {
$class = 'class="current_page_item"';
} else {
$class = '';
}
echo '<td ',$class,' ',$align,'><a href="',$URL,'">',$name,'</a></td>';
}
?>
</tr>
</table>
<!-- start page -->
<div id="page">
<!-- start content -->
<div>
<div id="content">
<?php
if ($pagename == "Latest News") {
include("downloads/content/news_content.php");
} elseif ($pagename == "Calendar") {
include("downloads/content/calendar_content.phpme>");
} elseif ($pagename == "About Us") {
include("downloads/content/about_content.php");
} elseif ($pagename == "Robots and Awards") {
include("downloads/content/awards_content.php");
} elseif ($pagename == "Important Links") {
include("downloads/content/links_content.php");
} elseif ($pagename == "Media Gallery") {
include("downloads/content/media_content.php");
} elseif ($pagename == "Sponsors") {
include("downloads/content/sponsor_content.php");
} elseif ($pagename == "Parents") {
include("downloads/content/Parents_content.php");
}
?>
</div>
<!-- end content -->
<!-- start sidebars -->
<!-- end sidebars -->
<div style="clear: both;"></div>
</div>
<!-- end page -->
</div>
<?php
include("mfooter.php")
?>
</body>
</html>