engelsystem/www-ssl/nonpublic/schichtplan_beamer.php

60 lines
1.4 KiB
PHP
Raw Normal View History

<?php
2011-06-01 14:48:31 +02:00
require_once ('../bootstrap.php');
2011-06-01 14:48:31 +02:00
include "includes/header_start.php";
include "includes/funktionen.php";
include "includes/funktion_schichtplan_beamer.php";
$Time = time() + 3600 + 3600;
?>
2011-06-01 12:13:39 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2011-06-01 12:13:39 +02:00
<html>
<head>
<title>Schichtpl&auml;ne f&uuml;r Beamer</title>
<meta http-equiv="refresh" content="30; URL=<?php echo $url . $_SERVER['PHP_SELF']; ?>" />
</head>
<body>
2011-06-01 12:13:39 +02:00
<?php
2011-06-01 14:48:31 +02:00
echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
echo "<colgroup span=\"4\" valign=\"center\">
2011-06-01 12:13:39 +02:00
<col width=\"30\">
<col width=\"3*\">
<col width=\"3*\">
<col width=\"3*\">
</colgroup>\n";
2011-06-01 14:48:31 +02:00
echo "<tr align=\"center\">\n" .
"<td>" . gmdate("d.m.y", $Time) . "</td>\n" .
"<td>" . gmdate("H", $Time -3600) . ":00</td>\n" .
"<td>" . gmdate("H", $Time +0) . ":00</td>\n" .
"<td>" . gmdate("H", $Time +3600) . ":00</td>\n" .
"</tr>\n";
foreach ($Room as $RoomEntry) {
// var-init
$AnzahlEintraege = 0;
$Out = ausgabe_Zeile($RoomEntry["RID"], $Time -3600, $AnzahlEintraege);
$Out .= ausgabe_Zeile($RoomEntry["RID"], $Time, $AnzahlEintraege);
$Out .= ausgabe_Zeile($RoomEntry["RID"], $Time +3600, $AnzahlEintraege);
if ($AnzahlEintraege == 0)
$Out = "";
else
$Out = "<tr>\n<td>_" . $RoomEntry["Name"] . "_</td>\n" . $Out . "</tr>\n";
echo $Out;
}
2011-06-01 12:13:39 +02:00
?>
2011-06-01 12:13:39 +02:00
</table>
2011-06-01 12:13:39 +02:00
</body>
</html>