forked from ag-sc/QALD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
200 lines (175 loc) · 8.66 KB
/
index.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Question Answering over Linked Data</title>
<link rel="stylesheet" type="text/css" href="qald.css">
<!-- <link rel="icon" href="images/qald_icon.png" type="image/png" /> -->
</head>
<body>
<?php
if (isset($_GET['q'])) {
$q = $_GET['q']; }
else {
$q = "home"; }
if (isset($_GET['x'])) {
$x = htmlspecialchars($_GET['x']);
}
else {
if ($q == "home") { $x = "home"; }
else { $x = "motivation"; }
}
$link = $q . "/website/" . $x . ".html";
?>
<div id="container">
<div id="menu">
<p> <a href='index.php?x=home&q=home'>Home</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>
<?php
if ($q == "home") {
echo "
<p> <a href='index.php?x=benchmark&q=".$q."'>Benchmark</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=publications&q=".$q."'>Publications</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=contact&q=".$q."'>Contact</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>";
}
if ($q == "7") {
header("location:https://project-hobbit.eu/challenges/qald2017/");
}
if ($q == "6") {
echo "
<p> <a href='index.php?x=motivation&q=".$q."'>Motivation</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=organization&q=".$q."'>Organization</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=challenge&q=".$q."'>Challenge overview</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=evaltool&q=".$q."'>Evaluation tool</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=submission&q=".$q."'>Paper submission</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=proceedings&q=".$q."'>Proceedings</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=contact&q=".$q."'>Contact</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>";
}
if ($q == "5") {
echo "
<p> <a href='index.php?x=motivation&q=".$q."'>Motivation</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=organization&q=".$q."'>Organization</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=challenge&q=".$q."'>Lab overview</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=evaltool&q=".$q."'>Evaluation tool</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=proceedings&q=".$q."'>Proceedings</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=contact&q=".$q."'>Contact</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>";
}
if ($q == "4") {
echo "
<p> <a href='index.php?x=motivation&q=".$q."'>Motivation</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=organization&q=".$q."'>Organization</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=challenge&q=".$q."'>Lab overview</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=task1&q=".$q."'>Task 1</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=task2&q=".$q."'>Task 2</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=task3&q=".$q."'>Task 3</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=evaltool&q=".$q."'>Evaluation tool</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=proceedings&q=".$q."'>Proceedings</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=contact&q=".$q."'>Contact</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>";
}
if ($q == "3") {
echo "
<p> <a href='index.php?x=motivation&q=".$q."'>Motivation</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=organization&q=".$q."'>Organization</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=program&q=".$q."'>Program</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=challenge&q=".$q."'>Lab overview</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=task1&q=".$q."'>Task 1</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=task2&q=".$q."'>Task 2</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=evaltool&q=".$q."'>Evaluation tool</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=proceedings&q=".$q."'>Proceedings</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=contact&q=".$q."'>Contact</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>";
}
if ($q == "2" || $q == "1") {
echo "
<p> <a href='index.php?x=motivation&q=".$q."'>Motivation</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=organization&q=".$q."'>Organization</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=cfp&q=".$q."'>Call for Papers</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=submission&q=".$q."'>Submission</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=challenge&q=".$q."'>Open Challenge</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=evaltool&q=".$q."'>Evaluation tool</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=program&q=".$q."'>Program</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=proceedings&q=".$q."'>Proceedings</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=contact&q=".$q."'>Contact</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>";
}
?>
<?php
echo "<p><b>Current challenge:</b></p>
<p> <a href='index.php?x=".$x."&q=7'>QALD-7</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p><b>Previous challenges:</b></p>
<p> <a href='index.php?x=".$x."&q=6'>QALD-6</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=".$x."&q=5'>QALD-5</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=".$x."&q=4'>QALD-4</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=".$x."&q=3'>QALD-3</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=".$x."&q=2'>QALD-2</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> <a href='index.php?x=".$x."&q=1'>QALD-1</a> <img src='pictures/list_arrow_gray.gif'> </p>
<p> </p>
<p><b>Sponsor:</b></p>
<p>
<a href='http://www.orange.com/en/home'><img src='pictures/orange_logo.png' width='60px' border='0' alt='Orange' /></a>
</p>
<p> </p>";
?>
</div>
<div id="total">
<div id="head">
<?php
{
echo "<img src='pictures/qald_header.png' width='800px' height='250px' border='0'
alt='QALD : Question Answering Over Linked Data' />"; }
?>
</div>
<div id="bar">
<div class="alignleft">
<?php
switch ($x) {
case "cfp": $nav = "Call for Papers"; break;
case "challenge": $nav = "Open Challenge"; break;
case "evaltool": $nav = "Evaluation Tool"; break;
default: $nav = ucfirst($x);
}
if ($q == "1") { echo " QALD-1 » " . $nav ; }
if ($q == "2") { echo " QALD-2 » " . $nav ; }
if ($q == "3") { echo " QALD-3 » " . $nav ; }
if ($q == "4") { echo " QALD-4 » " . $nav ; }
if ($q == "5") { echo " QALD-5 » " . $nav ; }
?>
</div>
<div class="alignright">
<?php
if ($q == "1")
echo "May 30, 2011 ⋅ Co-located with: <a href='http://www.eswc2011.org' class='sel'><b>ESWC 2011 </b></a>";
if ($q == "2")
echo "May 28, 2012 ⋅ Co-located with: <a href='http://2012.eswc-conferences.org' class='sel'><b>ESWC 2012 </b></a>";
if ($q == "3")
echo "September 2013 ⋅ Co-located with: <a href='http://celct.fbk.eu/clef2013/index.php' class='sel'><b>CLEF 2013 </b></a>";
if ($q == "4")
echo "September 2014 ⋅ Part of: <a href='http://nlp.uned.es/clef-qa/' class='sel'><b>QA Track at CLEF 2014 </b></a>";
if ($q == "5")
echo "September 2015 ⋅ Part of: <a href='http://nlp.uned.es/clef-qa/' class='sel'><b>QA Track at CLEF 2015 </b></a>";
?>
</div>
<div style="clear: both;"></div>
</div>
<div id="main">
<!-- MAIN CONTENT -->
<?php
if ($q == "3" and ($x == "submission" or $x == "cfp")) {
$link = "3/website/motivation.html";
}
if (($q == "1" or $q == "2") and ($x == "task1" or $x == "task2")) {
$link = $q . "/website/motivation.html";
}
if ($q != "home" and ($x == "home" or $x == "benchmark" or $x == "publications")) {
$link = $q . "/website/motivation.html";
}
include $link;
?>
</div>
</div> <!-- total -->
</div> <!-- container -->
</body>
</html>