summaryrefslogtreecommitdiff
path: root/www-ssl/nonpublic/schichtplan_beamer.php
diff options
context:
space:
mode:
authorMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
committerMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
commit75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch)
tree6a4d3d35019cdf933c1816e8522dc5d2557f5238 /www-ssl/nonpublic/schichtplan_beamer.php
parent12e0b0d809c29d435a247798d7318cc9835980ea (diff)
fixes
Diffstat (limited to 'www-ssl/nonpublic/schichtplan_beamer.php')
-rw-r--r--[-rwxr-xr-x]www-ssl/nonpublic/schichtplan_beamer.php96
1 files changed, 45 insertions, 51 deletions
diff --git a/www-ssl/nonpublic/schichtplan_beamer.php b/www-ssl/nonpublic/schichtplan_beamer.php
index cc2a48e7..2e4e78c2 100755..100644
--- a/www-ssl/nonpublic/schichtplan_beamer.php
+++ b/www-ssl/nonpublic/schichtplan_beamer.php
@@ -1,61 +1,55 @@
<?php
-include ("../../../camp2011/includes/header_start.php");
+ include "../../../camp2011/includes/header_start.php";
+ include "../../../camp2011/includes/funktionen.php";
+ include "../../../camp2011/includes/funktion_schichtplan_beamer.php";
-include ("../../../camp2011/includes/funktionen.php");
-include ("../../../camp2011/includes/funktion_schichtplan_beamer.php");
-
-$Time = time()+3600+3600;
-//$Time = 1104241344;
+ $Time = time() + 3600 + 3600;
?>
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML>
-<HEAD>
-<TITLE>Schichtpl&auml;ne f&uuml;r Beamer</TITLE>
-<!--<link rel=stylesheet type="text/css" href="/css/style1.css">-->
-<meta http-equiv="refresh" content="30; URL=<?PHP echo $url. $_SERVER['PHP_SELF']?>">
-</HEAD>
-<BODY>
-<?PHP
+<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>
-echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
+<?php
+ echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
echo "<colgroup span=\"4\" valign=\"center\">
- <col width=\"30\">
- <col width=\"3*\">
- <col width=\"3*\">
- <col width=\"3*\">
- </colgroup>\n";
-
-echo "<tr align=\"center\">\n".
-// "\t<td>&nbsp;</td>\n".
- "\t<td>". gmdate("d.m.y", $Time). "</td>\n".
- "\t<td>". gmdate("H", $Time-3600). ":00</td>\n".
- "\t<td>". gmdate("H", $Time+0). ":00</td>\n".
- "\t<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);
-
-
- //entfernt leere zeilen
- if( $AnzahlEintraege==0 )
- $Out = "";
- else
- $Out = "<tr>\n\t<td>_". $RoomEntry["Name"]. "_</td>\n". $Out . "</tr>\n";
-
- echo $Out;
+ <col width=\"30\">
+ <col width=\"3*\">
+ <col width=\"3*\">
+ <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 "</table>\n";
+</table>
-?>
-</BODY>
-</HTML>
+</body>
+</html>