diff --git a/admin/dect.php b/admin/dect.php
index 0afc7f4f..99a58028 100755
--- a/admin/dect.php
+++ b/admin/dect.php
@@ -7,6 +7,9 @@ include ("./inc/header.php");
include ("./inc/funktion_modem.php");
+if( !isset($_GET["dial"])) $_GET["dial"] = "";
+if( !isset($_GET["custum"])) $_GET["custum"] = "";
+
if( $_GET["dial"]=="dial")
{
if( $_GET["DECT"]=="")
diff --git a/admin/schichtplan.php b/admin/schichtplan.php
index 5c8e90c2..9e7ec81b 100755
--- a/admin/schichtplan.php
+++ b/admin/schichtplan.php
@@ -5,7 +5,7 @@ $submenus = 1;
include ("./inc/header.php");
include ("./inc/funktion_user.php");
-if (!IsSet($action)) {
+if (!IsSet($_GET["action"])) {
echo "Hallo ".$_SESSION['Nick'].",
\n";
echo "hier kannst du Schichten anlegen, ändern oder löschen.
";
echo "Neue Schicht einplanen
\n\n";
@@ -31,10 +31,13 @@ for( $i = 0; $i < $rowcount; $i++)
$sql2= "SELECT `Name` FROM `Room` WHERE `RID`=\"".mysql_result($Erg, $i, "RID")."\"";
$Erg2 = mysql_query($sql2, $con);
- echo "\t\t
".mysql_result($Erg2, 0, "Name")." | \n";
-
+ if( mysql_num_rows($Erg2) > 0)
+ echo "\t\t".mysql_result($Erg2, 0, "Name")." | \n";
+ else
+ echo "\t\tUnbenkannt (RID=". mysql_result($Erg, $i, "RID"). ") | \n";
echo "\t\t".mysql_result($Erg, $i, "Len")." Std. | \n";
- echo "\t\t#### | \n";
+ echo "\t\t#### | \n";
echo "\t\n";
}
echo "";
@@ -45,22 +48,22 @@ echo "";
// aus sicherheitzgründen wegen späterer genuzung
UnSet($chSQL);
-switch ($action){
+switch ($_GET["action"]){
case 'change':
- if ( !IsSet($SID) ){
+ if ( !IsSet($_GET["SID"]) ){
echo "Fehlerhafter Aufruf!\n";
}
else
{
- $sql = "SELECT * FROM `Shifts` WHERE (`SID` = \"$SID\" )";
+ $sql = "SELECT * FROM `Shifts` WHERE (`SID` = \"". $_GET["SID"]. "\" )";
$Erg = mysql_query($sql, $con);
echo "Schicht abändern:
\n";
// Anzeige Allgemeiner schaischt daten
- echo "\n\n";
// Löschen
- echo "\n\n";
@@ -106,7 +109,7 @@ case 'change':
echo "
\n\n\n\n";
//Freie Engelschichten
- $sql3 = "SELECT TID FROM `ShiftEntry` WHERE SID=$SID AND UID=0";
+ $sql3 = "SELECT TID FROM `ShiftEntry` WHERE SID=". $_GET["SID"]. " AND UID=0";
$Erg3 = mysql_query($sql3, $con);
$rowcount = mysql_num_rows($Erg3);
@@ -115,13 +118,13 @@ case 'change':
for ($j=0; $j < $rowcount; $j++)
{
$TID = mysql_result($Erg3, $j, 0);
- echo "".
+ echo "".
"freie ". TID2Type($TID). Get_Text("inc_schicht_Engel"). "schicht loeschen
\n";
}
echo "
\n\n\n\n";
//Ausgabe eingetragener schischten
- $sql3 = "SELECT * FROM `ShiftEntry` WHERE SID=$SID AND NOT UID=0";
+ $sql3 = "SELECT * FROM `ShiftEntry` WHERE SID=". $_GET["SID"]. " AND NOT UID=0";
$Erg3 = mysql_query($sql3, $con);
$rowcount = mysql_num_rows($Erg3);
@@ -130,7 +133,7 @@ case 'change':
for ($j=0; $j < $rowcount; $j++)
{
$userUID=mysql_result($Erg3, $j, "UID");
- echo "".
+ echo "".
UID2Nick($userUID).
" (". TID2Type(mysql_result($Erg3, $j, "TID")). Get_Text("inc_schicht_Engel").
") austragen
\n";
@@ -140,8 +143,8 @@ case 'change':
//Nachtragen von Engeln
echo "Hat ein anderer Engel die Schicht übernommen, trage ihn bitte ein:";
- echo "