summaryrefslogtreecommitdiff
path: root/www-ssl/nonpublic/schichtplan_beamer.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-01 14:48:31 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-01 14:48:31 +0200
commita537f4bf73101c467af3b01db32fcdb9fd0a91ce (patch)
tree0bf673d0e206866b470cf137d00a158f5fa76441 /www-ssl/nonpublic/schichtplan_beamer.php
parent6ebee2c46ba11ce42e85b830189346b13514d497 (diff)
bootstrapping
Diffstat (limited to 'www-ssl/nonpublic/schichtplan_beamer.php')
-rw-r--r--www-ssl/nonpublic/schichtplan_beamer.php56
1 files changed, 30 insertions, 26 deletions
diff --git a/www-ssl/nonpublic/schichtplan_beamer.php b/www-ssl/nonpublic/schichtplan_beamer.php
index 2e4e78c2..269660e1 100644
--- a/www-ssl/nonpublic/schichtplan_beamer.php
+++ b/www-ssl/nonpublic/schichtplan_beamer.php
@@ -1,9 +1,11 @@
<?php
- include "../../../camp2011/includes/header_start.php";
- include "../../../camp2011/includes/funktionen.php";
- include "../../../camp2011/includes/funktion_schichtplan_beamer.php";
+require_once ('../bootstrap.php');
- $Time = time() + 3600 + 3600;
+include "includes/header_start.php";
+include "includes/funktionen.php";
+include "includes/funktion_schichtplan_beamer.php";
+
+$Time = time() + 3600 + 3600;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -16,7 +18,9 @@
<body>
<?php
- echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
+
+
+echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
echo "<colgroup span=\"4\" valign=\"center\">
<col width=\"30\">
@@ -25,27 +29,27 @@ echo "<colgroup span=\"4\" valign=\"center\">
<col width=\"3*\">
</colgroup>\n";
-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;
+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;
}
?>