summaryrefslogtreecommitdiff
path: root/www-ssl/inc/funktion_schichtplan_aray.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/inc/funktion_schichtplan_aray.php')
-rwxr-xr-xwww-ssl/inc/funktion_schichtplan_aray.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/www-ssl/inc/funktion_schichtplan_aray.php b/www-ssl/inc/funktion_schichtplan_aray.php
new file mode 100755
index 00000000..b5e98e21
--- /dev/null
+++ b/www-ssl/inc/funktion_schichtplan_aray.php
@@ -0,0 +1,37 @@
+<?php
+
+/*#######################################################
+# Aufbau von Standart Feldern #
+#######################################################*/
+
+// erstellt ein Array der Reume
+ $sql = "SELECT `RID`, `Name` FROM `Room` ".
+ "WHERE `Show`='Y'".
+ "ORDER BY `Number`, `Name`;";
+
+ $Erg = mysql_query($sql, $con);
+ $rowcount = mysql_num_rows($Erg);
+
+ 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");
+ }
+
+// erstellt ein Aray der Engeltypen
+ $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");
+
+ $EngelTypeID[ mysql_result($Erg, $i, "TID") ] =
+ mysql_result($Erg, $i, "Name").Get_Text("inc_schicht_engel");
+ }
+
+include ("./inc/funktion_schichtplan_Tage.php");
+?>