2008-09-10 05:42:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*#######################################################
|
|
|
|
# Aufbau von Standart Feldern #
|
|
|
|
#######################################################*/
|
|
|
|
|
|
|
|
// erstellt ein Array der Reume
|
2011-06-01 12:13:39 +02:00
|
|
|
$sql = "SELECT `RID`, `Name` FROM `Room` ".
|
|
|
|
"WHERE `Show`='Y'".
|
|
|
|
"ORDER BY `Number`, `Name`;";
|
|
|
|
|
|
|
|
$Erg = mysql_query($sql, $con);
|
|
|
|
$rowcount = mysql_num_rows($Erg);
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
for ($i=0; $i<$rowcount; $i++)
|
|
|
|
{
|
|
|
|
$Room[$i]["RID"] = mysql_result($Erg, $i, "RID");
|
|
|
|
$Room[$i]["Name"] = mysql_result($Erg, $i, "Name");
|
|
|
|
|
|
|
|
$RoomID[ mysql_result($Erg, $i, "RID") ] = mysql_result($Erg, $i, "Name");
|
|
|
|
}
|
2008-09-10 05:42:44 +02:00
|
|
|
|
|
|
|
// erstellt ein Aray der Engeltypen
|
2011-06-01 12:13:39 +02:00
|
|
|
$sql = "SELECT `TID`, `Name` FROM `EngelType` ORDER BY `Name`";
|
|
|
|
$Erg = mysql_query($sql, $con);
|
|
|
|
$rowcount = mysql_num_rows($Erg);
|
|
|
|
for ($i=0; $i<$rowcount; $i++)
|
|
|
|
{
|
|
|
|
$EngelType[$i]["TID"] = mysql_result($Erg, $i, "TID");
|
|
|
|
$EngelType[$i]["Name"] = mysql_result($Erg, $i, "Name").Get_Text("inc_schicht_engel");
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
$EngelTypeID[ mysql_result($Erg, $i, "TID") ] =
|
|
|
|
mysql_result($Erg, $i, "Name").Get_Text("inc_schicht_engel");
|
|
|
|
$TID2Name[ mysql_result($Erg, $i, "TID") ] = mysql_result($Erg, $i, "Name");
|
|
|
|
}
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2008-09-27 21:29:08 +02:00
|
|
|
include ("funktion_schichtplan_Tage.php");
|
2008-09-10 05:42:44 +02:00
|
|
|
?>
|