|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
<?php
|
|
|
|
|
require_once ('../bootstrap.php');
|
|
|
|
|
|
|
|
|
|
$title = "Himmel";
|
|
|
|
|
$header = "Schichtpläne";
|
|
|
|
|
$submenus = 2;
|
|
|
|
@ -18,10 +20,10 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
include ("../../../camp2011/includes/header.php");
|
|
|
|
|
include ("../../../camp2011/includes/funktionen.php");
|
|
|
|
|
include ("../../../camp2011/includes/funktion_schichtplan.php");
|
|
|
|
|
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
|
|
|
|
include ("includes/header.php");
|
|
|
|
|
include ("includes/funktionen.php");
|
|
|
|
|
include ("includes/funktion_schichtplan.php");
|
|
|
|
|
include ("includes/funktion_schichtplan_aray.php");
|
|
|
|
|
|
|
|
|
|
echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />" .
|
|
|
|
|
Get_Text("pub_schicht_beschreibung") . "<br /><br />";
|
|
|
|
@ -33,8 +35,7 @@
|
|
|
|
|
|
|
|
|
|
if (isset ($VeranstaltungsTage))
|
|
|
|
|
foreach ($VeranstaltungsTage as $k => $v)
|
|
|
|
|
if( $ausdatum == $v)
|
|
|
|
|
{
|
|
|
|
|
if ($ausdatum == $v) {
|
|
|
|
|
if ($k > 0)
|
|
|
|
|
echo "\t\t\t<td align=\"left\">" .
|
|
|
|
|
"<a href='./schichtplan.php?ausdatum=" . $VeranstaltungsTage[$k -1] .
|
|
|
|
@ -49,13 +50,11 @@
|
|
|
|
|
|
|
|
|
|
// wenn kein Datum gesetzt ist (die Seite zum ersten mal aufgerufen wird),
|
|
|
|
|
// das Datum auf den ersten Tag setzen...
|
|
|
|
|
if( !isset($ausdatum) )
|
|
|
|
|
{
|
|
|
|
|
if (!isset ($ausdatum)) {
|
|
|
|
|
$sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '" . gmdate("Y-m-d", time() + $gmdateOffset) . "%' ORDER BY `DateS`";
|
|
|
|
|
// $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '2004-12-29%' ORDER BY `DateS`";
|
|
|
|
|
$Erg = mysql_query($sql, $con);
|
|
|
|
|
if( mysql_num_rows( $Erg ) == 0 )
|
|
|
|
|
{
|
|
|
|
|
if (mysql_num_rows($Erg) == 0) {
|
|
|
|
|
$sql = "SELECT `DateS` FROM `Shifts` ORDER BY `DateS` ASC LIMIT 0, 1";
|
|
|
|
|
$Erg = mysql_query($sql, $con);
|
|
|
|
|
}
|
|
|
|
@ -66,18 +65,13 @@ if( !isset($ausdatum) )
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( !isset($raum) )
|
|
|
|
|
{
|
|
|
|
|
// Ausgabe wenn kein Raum Ausgewählt:
|
|
|
|
|
if (!isset ($raum)) {
|
|
|
|
|
// Ausgabe wenn kein Raum Ausgew<65>hlt:
|
|
|
|
|
echo Get_Text("pub_schicht_auswahl_raeume") . "<br /><br />\n";
|
|
|
|
|
|
|
|
|
|
if( isset($Room))
|
|
|
|
|
{
|
|
|
|
|
if (isset ($Room)) {
|
|
|
|
|
echo "<form action=\"./schichtplan.php\" method=\"GET\">\n";
|
|
|
|
|
foreach( $Room as $RoomEntry )
|
|
|
|
|
{
|
|
|
|
|
foreach ($Room as $RoomEntry) {
|
|
|
|
|
echo "\t<li><input type=\"checkbox\" name=\"raum_" . $RoomEntry["RID"] . "\" value=\"" . $RoomEntry["RID"] . " \">";
|
|
|
|
|
echo "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" . $RoomEntry["Name"] . "</a>";
|
|
|
|
|
echo "</input></li>\n";
|
|
|
|
@ -95,16 +89,12 @@ if ( !isset($raum) )
|
|
|
|
|
echo "<hr>\n\n";
|
|
|
|
|
echo Get_Text("pub_schicht_EmptyShifts") . "\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// zeit die naesten freien schichten
|
|
|
|
|
showEmptyShifts();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{ // Wenn einraum Ausgewählt ist:
|
|
|
|
|
} else { // Wenn einraum Ausgew<65>hlt ist:
|
|
|
|
|
if ($raum == -1)
|
|
|
|
|
echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
|
|
|
|
|
elseif( substr( $raum, 0, 1) == ";" )
|
|
|
|
|
echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br /><br />";
|
|
|
|
|
elseif (substr($raum, 0, 1) == ";") echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
|
|
|
|
|
else
|
|
|
|
|
echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum .
|
|
|
|
|
Get_Text("pub_schicht_Anzeige_2") . $RoomID[$raum] . "<br /><br />";
|
|
|
|
@ -115,33 +105,27 @@ else
|
|
|
|
|
echo "\t<tr class=\"contenttopic\">\n";
|
|
|
|
|
echo "\t\t<td>start</td>\n";
|
|
|
|
|
|
|
|
|
|
//Ausgabe Spalten überschrift
|
|
|
|
|
if( $raum == -1 )
|
|
|
|
|
{
|
|
|
|
|
//Ausgabe Spalten <20>berschrift
|
|
|
|
|
if ($raum == -1) {
|
|
|
|
|
if (isset ($Room))
|
|
|
|
|
foreach ($Room as $RoomEntry)
|
|
|
|
|
if (SummRoomShifts($RoomEntry["RID"]) > 0)
|
|
|
|
|
echo "\t\t<th>" . $RoomEntry["Name"] . "</th>\n";
|
|
|
|
|
}
|
|
|
|
|
elseif( substr( $raum, 0, 1) == ";" )
|
|
|
|
|
{
|
|
|
|
|
elseif (substr($raum, 0, 1) == ";") {
|
|
|
|
|
$words = preg_split("/;/", $raum);
|
|
|
|
|
foreach ($words as $word)
|
|
|
|
|
{
|
|
|
|
|
foreach ($words as $word) {
|
|
|
|
|
if (strlen(trim($word)) > 0)
|
|
|
|
|
echo "\t\t<th>" . $RoomID[trim($word)] . "</th>\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
} else
|
|
|
|
|
echo "\t\t<th>" . $RoomID[$raum] . "</th>\n";
|
|
|
|
|
echo "\t</tr>\n";
|
|
|
|
|
|
|
|
|
|
//Zeit Ausgeben
|
|
|
|
|
for ($i = 0; $i < 24; $i++)
|
|
|
|
|
for( $j = 0; $j < $GlobalZeileProStunde; $j++)
|
|
|
|
|
{
|
|
|
|
|
$Spalten[$i * $GlobalZeileProStunde + $j] =
|
|
|
|
|
"\t<tr class=\"content\">\n\t\t";
|
|
|
|
|
for ($j = 0; $j < $GlobalZeileProStunde; $j++) {
|
|
|
|
|
$Spalten[$i * $GlobalZeileProStunde + $j] = "\t<tr class=\"content\">\n\t\t";
|
|
|
|
|
|
|
|
|
|
//Stunde:
|
|
|
|
|
$SpaltenTemp = "";
|
|
|
|
@ -159,32 +143,26 @@ else
|
|
|
|
|
$Spalten[$i * $GlobalZeileProStunde + $j] .= $SpaltenTemp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( $raum == -1 )
|
|
|
|
|
{
|
|
|
|
|
if ($raum == -1) {
|
|
|
|
|
if (isset ($Room))
|
|
|
|
|
foreach ($Room as $RoomEntry)
|
|
|
|
|
if (SummRoomShifts($RoomEntry["RID"]) > 0)
|
|
|
|
|
CreateRoomShifts($RoomEntry["RID"]);
|
|
|
|
|
}
|
|
|
|
|
elseif( substr( $raum, 0, 1) == ";" )
|
|
|
|
|
{
|
|
|
|
|
if( isset($Room))
|
|
|
|
|
{
|
|
|
|
|
elseif (substr($raum, 0, 1) == ";") {
|
|
|
|
|
if (isset ($Room)) {
|
|
|
|
|
$words = preg_split("/;/", $raum);
|
|
|
|
|
foreach ($words as $word)
|
|
|
|
|
{
|
|
|
|
|
foreach ($words as $word) {
|
|
|
|
|
if (strlen(trim($word)) > 0)
|
|
|
|
|
if (SummRoomShifts($word) > 0)
|
|
|
|
|
CreateRoomShifts($word);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
} else
|
|
|
|
|
CreateRoomShifts($raum);
|
|
|
|
|
|
|
|
|
|
//Ausageb Zeilen
|
|
|
|
|
for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++)
|
|
|
|
|
{
|
|
|
|
|
for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++) {
|
|
|
|
|
echo $Spalten[$i] . "\t</tr>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -196,5 +174,5 @@ else
|
|
|
|
|
|
|
|
|
|
echo "<a href=\"" . $_SESSION["newurl"] . "&Icon=0\">@</a>";
|
|
|
|
|
|
|
|
|
|
include ("../../../camp2011/includes/footer.php");
|
|
|
|
|
include ("includes/footer.php");
|
|
|
|
|
?>
|
|
|
|
|