-
Notifications
You must be signed in to change notification settings - Fork 0
/
timelineTest.php
executable file
·148 lines (132 loc) · 5.12 KB
/
timelineTest.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="images/favicon.gif"/>
<link rel="stylesheet" type="text/css" href="project.css"/>
<link href="css/movingboxes.css" media="screen" rel="stylesheet">
<?php
$dbLink = mysql_connect("ramen.cs.man.ac.uk", "11_COMP10120_Y10",
"4VB0MQdFK4F7jUaR")
or die('Could not connect: ' . mysql_error());
mysql_select_db("11_COMP10120_Y10", $dbLink)
or die('Could not select database');
?>
<!-- Required script -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script src="js/jquery.movingboxes.js"></script>
<!-- Demo only -->
<link href="demo/demo.css" media="screen" rel="stylesheet">
<style>
/* Dimensions set via css in MovingBoxes version 2.2.2+ */
#slider { width: 895px; }
#slider li { width: 333px; }
</style>
<script>
$(function(){
$('#slider').movingBoxes({
/* width and panelWidth options deprecated, but still work to keep the plugin backwards compatible
width: 500,
panelWidth: 0.5,
*/
startPanel : 1, // start with this panel
wrap : false, // if true, the panel will "wrap" (it really rewinds/fast forwards) at the ends
buildNav : true, // if true, navigation links will be added
navFormatter : function(){ return "●"; } // function which returns the navigation text for each panel
});
});
</script>
<title>CS Timeline </title>
</head>
<?php include 'checkDate.php' ?>
<?php
$semester = $_GET['semester'];
$week = $_GET['week'];
$startDate = getWeek( $week );
$endDate = getWeek1 ( $week );
if ($week == null && $semester == null)
{
$week = theDate();
$semester = theSemester();
header("Location:timelineTest.php?week=".$week."&slider1=".$week."&semester=".$semester."#&slider1=".$week);
} ?>
<body>
<div class="header">
<div class="headerContainer">
<?php require("header.php"); ?>
</div>
<div class="sliderbar">
<?php require("slider.php");?>
</div>
</div>
<div class="week">
<?php
echo '<u class="weekText">'.'Week: '.$week. ' of semester: ' .$semester.'</u>'?>
<?php echo '<h2 class="dateSmall">' .$startDate. ' - ' .$endDate. '</h2>' ?>
</div>
<div class="Content">
<div class="wrap">
<div class="leftContent">
<div class="search">
<h1 class="searchHeading">SEARCH</h1>
<hr class="blackLine" />
</div>
<div class="searchDiv">
<?php echo '<form action="searchTimeline.php?semester='.$semester.'" method="get">'; ?>
<input class="searchBox" type="text" name="search" placeholder="Search"></input>
<input class="searchButton" type="submit" value=""/>
</form>
</div>
<div class="Grey">
<ul id="quickLinks" class="quickLinks">
<h1 class="searchHeading">QUICK LINKS</h1>
<hr class="blackLineLinks" />
<li><a href="http://www.cs.manchester.ac.uk/">School of Computer Science</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2011/COMP16121/">Object Oriented Programming Java I</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2010/COMP16212/">Object Oriented Programming Java II</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2011/COMP18112/">Fundamentals of Distributed Systems</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2011/COMP11212/">Fundamentals of Computation</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2011/COMP15111/">Fundamentals of Computer Architecure</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2010/COMP14112/">Fundamentals of Artificial Intelligence</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/2011/COMP12111/">Fundamentals of Computer Engineering</a></li>
<li><a href="https://moodle.cs.man.ac.uk/login/index.php">Moodle Page for Course-Info</a></li>
<li><a href="https://moodle.cs.man.ac.uk/login/index.php">Mathematical Techniques for Computer Science</a></li>
<li><a href="http://www.cs.manchester.ac.uk/ugt/timetable/">Group-Wise Time-tables</a></li>
</ul>
</div>
</div>
<div class="middleContent">
<div class="materials" name="COMP16212">
<?php require ( 'phpTest2.php');
if ($semester == 1)
{
$name = array("COMP10120", "COMP16121"); test ( $name, $week, $semester );
}//if
else
{
if($semester == 2)
{$name = array("COMP11212", "COMP14112", "COMP18112"); test ( $name, $week, $semester ); }
} ?>
</div>
</div>
<div class="rightContent">
<div class="materials">
<?php if ($semester == 1)
{
$name = array("COMP15111", "COMP12111","COMP11120"); test ( $name, $week, $semester );
}
else
{if($semester == 2)
{$name = array("COMP10120", "COMP11120", "COMP16212"); test ( $name, $week, $semester ); }//if
}
?>
</div>
</div>
</div>
</div>
<?php include 'footer.html' ?>
</div>
</div>
<?php mysql_close($dbLink); ?>
</body>
</html>