-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
286 lines (266 loc) · 10.4 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?
//$auth_necessary = 1;
include "mysql.php";
include "auth.php";
echo "<meta charset=utf-8 />";
echo '<meta http-equiv="Content-type" content="text/html; charset=utf-8" />';
echo '<link rel="stylesheet" href="css/tabs.css" type="text/css" media="screen, projection" />';
include "url.php";
include "style.php";
include "analytics.php";
include "lib.php";
secure_variable("ru");
secure_variable("t");
if (!isset($ru)) $ru = $ru_accept;
share_header("$url_share/",
"ArtQuiz Portal",
"Education and quiz art portal",
"$url_share/i/artquiz_560.png");
echo "<title>ArtQuiz Portal</title>";
$col = array ("#845373", "#468966", "#846f4b", "#4a678c", "#644374", "gray", "#777777");
$colb = array("#f2d6e4", "#e0f2e9", "#f7eede", "#e1ebf9", "#ddd6f8", "#eeeeee", "white");
$size1 = 5;
$size2 = 4;
$size3 = 4;
$size4 = 6;
?>
<link rel="shortcut icon" type="image/x-icon" href="i/favicon.ico">
<style>
.button {
border: none;
color: white;
padding: 4px 5px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
border-radius: 6px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
<?
for ($i=0; $i<count($col); $i++) {
echo ".button$i {";
echo "background-color: $col[$i];";
echo "color: white;";
echo "border: 2px solid $col[$i];";
echo "}";
echo ".button$i:hover {";
echo "background-color: $colb[$i];";
echo "color: $col[$i];";
echo "}";
}
for ($i=10; $i<10+count($col); $i++) {
echo ".button$i {";
echo "background-color: #bbbbbb;";
echo "color: white;";
echo "border: 2px solid #bbbbbb;";
echo "}";
echo ".button$i:hover {";
echo "background-color: {$colb[$i-10]};";
echo "color: {$col[$i-10]};";
echo "}";
}
?>
</style>
<center>
<a href=<?=$url_main;?>><img border=0 src=i/header-918-left.png></a><a target=_blank href=<?=$url_arkhipenko;?>><img border=0 src=i/header-918-right.png></a>
<?
function btn($txt, $link, $ci, $size=3) {
echo "<button onclick='window.location.href = \"$link\"' type=submit class='button button$ci'><font size=$size face='Trebuchet MS, Helvetica, sans-serif'>$txt</font></button>";
}
function title($txt, $ci, $size=3) {
GLOBAL $col, $colb;
echo "<td bgcolor=$colb[$ci]><font size=$size color=$col[$ci] face='Trebuchet MS, Helvetica, sans-serif'><center><center>$txt";
}
?>
<br>
<section class="tabs">
<input id="tab_1" type="radio" name="tab" checked="checked" />
<input id="tab_2" type="radio" name="tab" />
<input id="tab_3" type="radio" name="tab" />
<input id="tab_4" type="radio" name="tab" />
<label for="tab_1" id="tab_l1">Music</label>
<label for="tab_2" id="tab_l2">Paintings</label>
<label for="tab_3" id="tab_l3">English texts</label>
<label for="tab_4" id="tab_l4">Русские тексты</label>
<div style="clear:both"></div>
<?
function show_theader($cid, $type=0) {
GLOBAL $size2;
echo "<div id='tab_$cid'>";
if ($type == 0) echo "<br>";
echo "<table border=0 cellpadding=8 style='border-spacing: 5px 5px;' bordercolor=black>";
echo "<tr>";
//$font1 = 'Lucida Sans Unicode, Lucida Grande, sans-serif';
$font1 = 'Trebuchet MS, Helvetica, sans-serif';
if ($type == 0) {
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Quizes:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Timelines:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Databases:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Other:";
}
if ($type == 1) {
echo "<td><font color=#000000 size=$size2 face='$font1'><center>";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Quizes:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Timelines:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Databases:";
}
if ($type == 2) {
echo "<td><font color=#000000 size=$size2 face='$font1'><center>";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Викторины:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Карты:";
echo "<td><font color=#000000 size=$size2 face='$font1'><center>Базы:";
}
}
echo '<div class="tabs_cont">';
show_theader('c1');
$ci = 0;
echo "<tr>";
echo "<td bgcolor=$colb[$ci]><center>";
btn('Guess composer by music', 'cquiz', $ci, $size3);
echo "<br>";
btn('Guess composer by score', 'nquiz', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci] ><center>";
btn('Composers timeline', 'cmap', $ci, $size3);
echo "<br>";
btn('Music genres timelines', 'classclass', $ci, $size3);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Music', 'cquiz/composers.php', $ci, $size3);
echo "<br>";
btn('Scores', 'nquiz/works.php', $ci, $size3);
//$ci = 5;
echo "<td bgcolor=$colb[$ci]><center>";
//echo "<td valign=middle><center>";
//btn('Chord progressions<br>analyzer', 'ancho', $ci, $size3);
btn("Music<br>with<br>paintings<br>association", 'compart', $ci, $size3);
echo "</table>";
echo "</div>";
show_theader('c2');
$ci = 1;
echo "<tr>";
echo "<td bgcolor=$colb[$ci]><center>";
btn('Guess artist by painting', 'aquiz', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Artists timelines', 'amap', $ci, $size3);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Paintings', 'aquiz/artists.php', $ci, $size3);
//echo "<td valign=middle bgcolor=$colb[$ci]><center>";
//$ci = 5;
echo "<td bgcolor=$colb[$ci]><center>";
//echo "<td valign=middle><center>";
//btn('Chord progressions<br>analyzer', 'ancho', $ci, $size3);
btn("Music<br>with<br>paintings<br>association", 'compart', $ci, $size3);
echo "</table>";
echo "</div>";
show_theader('c3', 1);
$ci = 2;
echo "<tr>";
title('Poetry', $ci, $size1);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Guess poet', 'epquiz', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Poets timeline', 'epmap', $ci, $size3);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Poems', 'epquiz/authors.php', $ci, $size3);
$ci = 3;
echo "<tr>";
title('Literature', $ci, $size1);
echo "<td bgcolor=$colb[$ci] valign=top><center>";
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Authors timeline', 'rlmap-e', $ci, $size3);
echo "<td bgcolor=$colb[$ci] valign=top><center>";
$ci = 4;
echo "<tr>";
title('Quotes', $ci, $size1);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Guess quote author', 'equotes', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
echo "<td bgcolor=$colb[$ci]><center>";
btn('Quotes', 'equotes/authors.php', $ci, $size3);
$ci = 5;
echo "<tr>";
title('Philosophers', $ci, $size1);
echo "<td bgcolor=$colb[$ci]><center>";
//btn('Угадай философа', 'rfil', $ci, $size3);
btn('Guess philosopher', 'equotes', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Philosophers timeline', 'efmap', $ci, $size3);
echo "<td bgcolor=$colb[$ci]><center>";
//btn('Философы', 'rfil/authors.php', $ci, $size3);
btn('Philosophers', 'equotes/authors.php?type=Philosopher', $ci, $size3);
echo "</table>";
echo "</div>";
show_theader('c4', 2);
$ci = 2;
echo "<tr>";
title('Поэзия', $ci, $size1);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Угадай поэта', 'pquiz', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Карта поэтов', 'rpmap', $ci, $size3);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Стихи', 'pquiz/authors.php', $ci, $size3);
$ci = 3;
echo "<tr>";
title('Литература', $ci, $size1);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Угадай писателя', 'rlit', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Карта писателей', 'rlmap', $ci, $size3);
echo "<td bgcolor=$colb[$ci] valign=top><center>";
btn('Проза', 'rlit/authors.php', $ci, $size3);
$ci = 4;
echo "<tr>";
title('Цитаты', $ci, $size1);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Угадай автора цитаты', 'rquotes', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
echo "<td bgcolor=$colb[$ci]><center>";
btn('Цитаты', 'rquotes/authors.php', $ci, $size3);
$ci = 5;
echo "<tr>";
title('Философы', $ci, $size1);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Угадай философа', 'rfil', $ci, $size3);
echo "<td valign=middle bgcolor=$colb[$ci]><center>";
btn('Карта философов', 'rfmap', $ci, $size3);
echo "<td bgcolor=$colb[$ci]><center>";
btn('Философы', 'rfil/authors.php', $ci, $size3);
echo "</table>";
echo "</div>";
echo "</section>";
//if ($ru) echo "<a href=?ru=0>Show only english projects</a>";
//else echo "<a href=?ru=1>Показать проекты на русском языке</a>";
echo "<br><br><br>";
echo "<table width=450>";
echo "<td width=100%>";
echo "<h2><font face='$font1'>About Artquiz Portal</h2>";
echo "<p><font face='$font1'>Artquiz Portal is a collection of cultural educational projects: databases of music, paintings and literature; quizes; timelines and more. Quizes have many difficulty levels and can be interesting both for starters and professionals. Quizes are designed to teach and to motivate in developing knowledge of culture.";
echo "<p><font face='$font1'>Music with paintings association project is aimed at creating, exploring such associations and viewing paintings with music.";
echo "<p><font face='$font1'>Timelines are clickable: you will be able to see examples for each artist, composer or writer immediately.";
echo "<br><h2><font face='$font1'>Contact</h2>";
echo "<p><font face='$font1'>Hello! You can contact Alexey Arkhipenko <a href='http://arkhipenko.weebly.com/contact.html'>here</a>";
if ($i_am_admin) echo "<p><a href=stats.php>Stats";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<td width=50%>";
echo "</table>";
echo "</center>";
share_link("$url_share/",
"ArtQuiz Portal",
"Education and quiz art portal",
"$url_share/i/artquiz_560.png",
'facebook,vkontakte,gplus',
'position: absolute; top: 30px; left: 45%; opacity: 1');
show_chatovod("artquiz");
?>