Пример #1
0
<?php

if (!isset($_GET['id']) || $_GET['id'] == 'undefined') {
    die('<div class="alert alert-danger"><strong>Kein Vortrag ausgewählt.</strong> Unter <a href="/programm">Programm</a> finden Sie eine vollständige Liste.</div>');
}
require_once __DIR__ . '/../data/vortraege.php';
$vortrag = Vortrag::getVortrag($_GET['id']);
if ($vortrag == null) {
    die('<div class="alert alert-danger"><strong>Es existiert keine Seite für diesen Vortrag.</strong> Unter <a href="/programm">Programm</a> finden Sie eine vollständige Liste.</div>');
}
?>

<ol class="breadcrumb">
  <li><a href="/symposium">27. Symposium</a></li>
  <li><a href="/programm">Programm</a></li>
  <li class="active"><?php 
echo $vortrag->title;
?>
</li>
</ol>

<h1><?php 
echo $vortrag->title;
?>
 <small><?php 
echo $vortrag->get_timeslot_string();
?>
</small></h1>

<?php 
echo $vortrag->desc;
Пример #2
0
<p>Im folgenden finden sie das aktuelle Programm für die Tage des Symposiums. Die Veranstaltungen finden auf dem Heidelberger Uniplatz und in der Universität Heidelberg statt.</p>

<!--p><a href="/vortrag/preopening"><b>Preopening:</b> <?php 
echo Vortrag::getVortrag('preopening')->get_timeslot_string(0, 6);
?>
</a></p-->

<div class="programm-box table-responsive">
	<table class="table table-bordered table-hover">
		<thead>
			<tr>
				<th></th>
				<?php 
for ($day = 1; $day <= 3; $day++) {
    echo '<th>' . Vortrag::day_string($day) . '</th>';
}
?>
			</tr>
		</thead>
		<tbody>
			<?php 
for ($slot = 1; $slot <= 6; $slot++) {
    echo '<tr><th>' . Vortrag::slot_string($slot) . '</th>';
    for ($day = 1; $day <= 3; $day++) {
        echo '<td>';
        foreach (Vortrag::vortraege_in_timeslot($day, $slot) as $vortrag) {
            echo $vortrag->tableItem();
        }
        echo '</td>';
    }
    echo '</tr>';