Rewrite the schedule generation script #31

Merged
user890104 merged 19 commits from schedule-rewrite into master 2016-10-24 00:52:04 +03:00
1 changed files with 55 additions and 49 deletions
Showing only changes of commit 159cd14a5e - Show all commits

View File

@ -1,15 +1,18 @@
<?php
error_reporting(~0);
ini_set('display_errors', 1);
$lang = 'bg';
?>
<html> <html>
<head> <head>
<title>Test schedule</title> <title>Test schedule</title>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://www.openfest.org/2014/wp-content/themes/initfest/style.css" /> <link rel="stylesheet" type="text/css" href="http://www.openfest.org/2014/wp-content/themes/initfest/style.css" />
</head> </head>
<body>
<pre> <pre>
<?php <?php
//header('Content-Type: text/plain; charset=utf-8');
error_reporting(~0);
ini_set('display_errors', 1);
$content = require __DIR__ . DIRECTORY_SEPARATOR . 'parse.php'; $content = require __DIR__ . DIRECTORY_SEPARATOR . 'parse.php';
?> ?>
</pre> </pre>
@ -20,7 +23,7 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'parse.php';
<?php <?php
foreach ($content['halls'] as $hall_name) { foreach ($content['halls'] as $hall_name) {
?> ?>
<td><?php echo htmlspecialchars($hall_name); ?></td> <td><?php echo htmlspecialchars($hall_name[$lang]); ?></td>
<?php <?php
} }
?> ?>
@ -47,3 +50,6 @@ foreach ($content['gspk'] as $line) {
foreach ($content['fspk'] as $line) { foreach ($content['fspk'] as $line) {
echo $line, PHP_EOL; echo $line, PHP_EOL;
} }
?>
</body>
</html>