|
|
@ -15,6 +15,12 @@ if (isset($_POST["newtext"]) && isset($_POST["SID"]) && isset($_POST["TID"])) {
|
|
|
|
$beginSchicht = mysql_result($ShiftErg, 0, "DateS");
|
|
|
|
$beginSchicht = mysql_result($ShiftErg, 0, "DateS");
|
|
|
|
$endSchicht = mysql_result($ShiftErg, 0, "DateE");
|
|
|
|
$endSchicht = mysql_result($ShiftErg, 0, "DateE");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//wenn keien rechte definiert sind
|
|
|
|
|
|
|
|
if( !isset($_SESSION['CVS'][ $TID2Name[$_POST["TID"]] ]))
|
|
|
|
|
|
|
|
$_SESSION['CVS'][ $TID2Name[$_POST["TID"]] ] = "Y";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( $_SESSION['CVS'][ $TID2Name[$_POST["TID"]] ] == "Y")
|
|
|
|
|
|
|
|
{
|
|
|
|
// Ueberpruefung, ob der Engel bereits für eine Schicht zu dieser Zeit eingetragen ist
|
|
|
|
// Ueberpruefung, ob der Engel bereits für eine Schicht zu dieser Zeit eingetragen ist
|
|
|
|
$SSQL="SELECT * FROM `Shifts`".
|
|
|
|
$SSQL="SELECT * FROM `Shifts`".
|
|
|
|
" INNER JOIN `ShiftEntry` ON `ShiftEntry`.`SID` = `Shifts`.`SID`".
|
|
|
|
" INNER JOIN `ShiftEntry` ON `ShiftEntry`.`SID` = `Shifts`.`SID`".
|
|
|
@ -57,40 +63,62 @@ if (isset($_POST["newtext"]) && isset($_POST["SID"]) && isset($_POST["TID"])) {
|
|
|
|
|
|
|
|
|
|
|
|
}//TO Many USERS
|
|
|
|
}//TO Many USERS
|
|
|
|
}//Allready in Shift
|
|
|
|
}//Allready in Shift
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
echo "<h1>:-(</h1>";
|
|
|
|
|
|
|
|
array_push($error_messages, "Hack atteck\n");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
elseif (isset($_GET["SID"]) && isset($_GET["TID"])) {
|
|
|
|
elseif (isset($_GET["SID"]) && isset($_GET["TID"]))
|
|
|
|
echo Get_Text("pub_schichtplan_add_Text1"). "<br><br>\n\n".
|
|
|
|
{
|
|
|
|
"<form action=\"./schichtplan_add.php\" method=\"post\">\n".
|
|
|
|
//wenn keien rechte definiert sind
|
|
|
|
"<table border=\"0\">\n";
|
|
|
|
if( !isset($_SESSION['CVS'][ $TID2Name[$_GET["TID"]] ]))
|
|
|
|
|
|
|
|
$_SESSION['CVS'][ $TID2Name[$_GET["TID"]] ] = "Y";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$SQL = "SELECT * FROM `Shifts` WHERE ";
|
|
|
|
|
|
|
|
$SQL .="(`SID` = '". $_GET["SID"]. "')";
|
|
|
|
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Date"). ":</td> <td>".
|
|
|
|
if( $_SESSION['CVS'][ $TID2Name[$_GET["TID"]] ] == "Y")
|
|
|
|
mysql_result($Erg, 0, "DateS"). "</td></tr>\n";
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Place"). ":</td> <td>".
|
|
|
|
echo Get_Text("pub_schichtplan_add_Text1"). "<br><br>\n\n".
|
|
|
|
$RoomID[ mysql_result($Erg, 0, "RID") ]. "</td></tr>\n";
|
|
|
|
"<form action=\"./schichtplan_add.php\" method=\"post\">\n".
|
|
|
|
|
|
|
|
"<table border=\"0\">\n";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Job"). ":</td> <td>".
|
|
|
|
$SQL = "SELECT * FROM `Shifts` WHERE ";
|
|
|
|
$EngelTypeID[$_GET["TID"]]. "</td></tr>\n";
|
|
|
|
$SQL .="(`SID` = '". $_GET["SID"]. "')";
|
|
|
|
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Len"). ":</td> <td>".
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Date"). ":</td> <td>".
|
|
|
|
mysql_result($Erg, 0, "Len"). "h</td></tr>\n";
|
|
|
|
mysql_result($Erg, 0, "DateS"). "</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_TextFor"). ":</td> <td>".
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Place"). ":</td> <td>".
|
|
|
|
mysql_result($Erg, 0, "Man"). "</td></tr>\n";
|
|
|
|
$RoomID[ mysql_result($Erg, 0, "RID") ]. "</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td valign='top'>". Get_Text("pub_schichtplan_add_Comment"). ":</td>\n <td>".
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Job"). ":</td> <td>".
|
|
|
|
"<textarea name='newtext' cols='50' rows='10'></textarea> </td></tr>\n";
|
|
|
|
$EngelTypeID[$_GET["TID"]]. "</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td> </td>\n".
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_Len"). ":</td> <td>".
|
|
|
|
"<td><input type=\"submit\" value=\"". Get_Text("pub_schichtplan_add_submit"). "\"> </td></tr>\n".
|
|
|
|
mysql_result($Erg, 0, "Len"). "h</td></tr>\n";
|
|
|
|
"</table>\n".
|
|
|
|
|
|
|
|
"<input type=\"hidden\" name=\"SID\" value=\"". $_GET["SID"]. "\">\n".
|
|
|
|
echo "<tr><td>". Get_Text("pub_schichtplan_add_TextFor"). ":</td> <td>".
|
|
|
|
"<input type=\"hidden\" name=\"TID\" value=\"". $_GET["TID"]. "\">\n".
|
|
|
|
mysql_result($Erg, 0, "Man"). "</td></tr>\n";
|
|
|
|
"</form>";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td valign='top'>". Get_Text("pub_schichtplan_add_Comment"). ":</td>\n <td>".
|
|
|
|
|
|
|
|
"<textarea name='newtext' cols='50' rows='10'></textarea> </td></tr>\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<tr><td> </td>\n".
|
|
|
|
|
|
|
|
"<td><input type=\"submit\" value=\"". Get_Text("pub_schichtplan_add_submit"). "\"> </td></tr>\n".
|
|
|
|
|
|
|
|
"</table>\n".
|
|
|
|
|
|
|
|
"<input type=\"hidden\" name=\"SID\" value=\"". $_GET["SID"]. "\">\n".
|
|
|
|
|
|
|
|
"<input type=\"hidden\" name=\"TID\" value=\"". $_GET["TID"]. "\">\n".
|
|
|
|
|
|
|
|
"</form>";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
echo "<h1>:-(</h1>";
|
|
|
|
|
|
|
|
array_push($error_messages, "Hack atteck\n");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|