summaryrefslogtreecommitdiff
path: root/nonpublic/schichtplan.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-06 17:14:25 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-06 17:14:25 +0000
commit866c47ec603595e8fe67da5f0e5d162a70b1f7b4 (patch)
treeef2b85462576150f017ba6bd53ace13dc60dc510 /nonpublic/schichtplan.php
parentfbc8e11b91b0565ae5d23472fc4e5bfc7d879939 (diff)
move files
git-svn-id: svn://svn.cccv.de/engel-system@20 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'nonpublic/schichtplan.php')
-rwxr-xr-xnonpublic/schichtplan.php154
1 files changed, 0 insertions, 154 deletions
diff --git a/nonpublic/schichtplan.php b/nonpublic/schichtplan.php
deleted file mode 100755
index b784be0c..00000000
--- a/nonpublic/schichtplan.php
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-$title = "Himmel";
-$header = "Schichtpl&auml;ne";
-$submenus = 2;
-
-if( isset($_GET["ausdatum"]))
- $ausdatum = $_GET["ausdatum"];
-if( isset($_GET["raum"]))
- $raum = $_GET["raum"];
-
-include ("./inc/header.php");
-include ("./inc/funktion_user.php");
-include ("./inc/funktionen.php");
-include ("./inc/funktion_schichtplan.php");
-include ("./inc/funktion_schichtplan_Tage.php");
-?>
-
-<? echo Get_Text("Hello").$_SESSION['Nick'].",<br>".
- Get_Text("pub_schicht_beschreibung");?>
-<br><br>
-<?
-
-function ShowSwitchDay()
-{
- GLOBAL $VeranstaltungsTage, $VeranstaltungsTageMax, $ausdatum, $raum;
-
- echo "\n\n<table border=\"0\" width=\"100%\"><tr>\n";
-
- foreach( $VeranstaltungsTage as $k => $v)
- if( $ausdatum == $v)
- {
- if( $k > 0)
- echo "\t\t\t<td align=\"left\">".
- "<a href='./schichtplan.php?ausdatum=". $VeranstaltungsTage[$k-1].
- "&raum=$raum'>". $VeranstaltungsTage[$k-1]. "</a></td>\n";
- if( $k < $VeranstaltungsTageMax)
- echo "\t\t\t<td align=\"right\">".
- "<a href='./schichtplan.php?ausdatum=". $VeranstaltungsTage[$k+1].
- "&raum=$raum'>". $VeranstaltungsTage[$k+1]. "</a></td>\n";
- }
- echo "\n\n</table>";
-}
-
-// wenn kein Datum gesetzt ist (die Seite zum ersten mal aufgerufen wird),
-// das Datum auf den ersten Tag setzen...
-if( !isset($ausdatum) )
-{
- $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '". gmdate("Y-m-d", time()+3600). "%' 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 )
- {
- $sql = "SELECT `DateS` FROM `Shifts` ORDER BY `DateS` ASC LIMIT 0, 1";
- $Erg = mysql_query($sql, $con);
- }
- $ausdatum = substr(mysql_result($Erg,0,"DateS"),0,10);
-
-}
-
-
-
-if ( !isset($raum) )
-{
- // Ausgabe wenn kein Raum Ausgewählt:
- echo Get_Text("pub_schicht_auswahl_raeume"). "<br><br>\n";
-
- foreach( $Room as $RoomEntry )
- echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=". $RoomEntry["RID"]. "'>".
- $RoomEntry["Name"]. "</a></li>\n";
-
- echo "<br><br>";
- echo Get_Text("pub_schicht_alles_1"). "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=-1'><u> ".
- Get_Text("pub_schicht_alles_2"). "</u></a>".Get_Text("pub_schicht_alles_3");
- echo "\n<br><br>\n\n";
- echo "<hr>\n\n";
- echo Get_Text("pub_schicht_EmptyShifts"). "\n";
-
-
- // zeit die naesten freien schichten
- showEmptyShifts();
-}
-else
-{ // Wenn einraum Ausgewählt ist:
- if( $raum == -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>";
-
- ShowSwitchDay();
-
- echo "\n\n<table border=\"0\" width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
- echo "\t<tr class=\"contenttopic\">\n";
- echo "\t\t<td>start</td>\n";
-
- //Ausgabe Spalten überschrift
- if( $raum == -1 )
- {
- foreach( $Room as $RoomEntry )
- if (SummRoomShifts($RoomEntry["RID"]) > 0)
- echo "\t\t<th>". $RoomEntry["Name"]. "</th>\n";
- }
- 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";
- if( $j==0)
- {
- $SpaltenTemp = "<td rowspan=\"$GlobalZeileProStunde\">";
- if( ($i == gmdate("H", time()+3600)) && (gmdate("Y-m-d", time()+ 3600) == $ausdatum) )
- $SpaltenTemp.= "<h1>";
-
- if( $i < 10 )
- $SpaltenTemp.= "0";
- $SpaltenTemp.= "$i:";
- if( ( ($j*60) / $GlobalZeileProStunde) < 10 )
- $SpaltenTemp.= "0";
-
- $SpaltenTemp.= ( ($j*60) / $GlobalZeileProStunde);
- if( ($i == gmdate("H", time()+3600)) && (gmdate("Y-m-d", time()+ 3600) == $ausdatum) )
- $SpaltenTemp.= "</h1>";
-
- $SpaltenTemp.= "</td>\n";
- $Spalten[$i * $GlobalZeileProStunde + $j].= $SpaltenTemp;
- }
- }
-
- if( $raum == -1 )
- {
- foreach( $Room as $RoomEntry )
- if (SummRoomShifts($RoomEntry["RID"]) > 0)
- CreateRoomShifts( $RoomEntry["RID"] );
- }
- else
- CreateRoomShifts( $raum );
-
- //Ausageb Zeilen
- for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++)
- echo $Spalten[$i]."\t</tr>\n";
-
- echo "</table>\n";
-
- ShowSwitchDay();
-
-}//if (isset($raum))
-
-include ("./inc/footer.php");
-?>