Rewrite the schedule generation script #31
@ -1,26 +1,29 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Test schedule</title>
|
|
||||||
<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" />
|
|
||||||
</head>
|
|
||||||
<pre>
|
|
||||||
<?php
|
<?php
|
||||||
//header('Content-Type: text/plain; charset=utf-8');
|
|
||||||
error_reporting(~0);
|
error_reporting(~0);
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
|
|
||||||
|
$lang = 'bg';
|
||||||
|
?>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Test schedule</title>
|
||||||
|
<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" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<pre>
|
||||||
|
<?php
|
||||||
$content = require __DIR__ . DIRECTORY_SEPARATOR . 'parse.php';
|
$content = require __DIR__ . DIRECTORY_SEPARATOR . 'parse.php';
|
||||||
?>
|
?>
|
||||||
</pre>
|
</pre>
|
||||||
<table border="1" style="text-align: center;">
|
<table border="1" style="text-align: center;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<?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
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -33,8 +36,8 @@ foreach ($content['lines'] as $line) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<?php
|
<?php
|
||||||
foreach ($content['fulltalks'] as $line) {
|
foreach ($content['fulltalks'] as $line) {
|
||||||
echo $line, PHP_EOL;
|
echo $line, PHP_EOL;
|
||||||
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user