jetzt werden auch raeume automatisch hinzugefuegt werden
git-svn-id: svn://svn.cccv.de/engel-system@53 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
8648273e5e
commit
8b145da913
|
@ -10,9 +10,9 @@ include ("./inc/funktion_xml.php");
|
||||||
///////////
|
///////////
|
||||||
$ShowDataStrukture = 0;
|
$ShowDataStrukture = 0;
|
||||||
$EnableRoomFunctions = 1;
|
$EnableRoomFunctions = 1;
|
||||||
$EnableRooms = 0;
|
$EnableRooms = 1;
|
||||||
$EnableRoomsDB = 0;
|
$EnableRoomsDB = 1;
|
||||||
$EnableSchudleFunctions = 0;
|
$EnableSchudleFunctions = 1;
|
||||||
$EnableSchudle = 1;
|
$EnableSchudle = 1;
|
||||||
$EnableSchudleDB = 0;
|
$EnableSchudleDB = 0;
|
||||||
|
|
||||||
|
@ -20,21 +20,25 @@ $EnableSchudleDB = 0;
|
||||||
/*##############################################################################################
|
/*##############################################################################################
|
||||||
erstellt Arrays der Reume
|
erstellt Arrays der Reume
|
||||||
##############################################################################################*/
|
##############################################################################################*/
|
||||||
$sql = "SELECT `RID`, `Name` FROM `Room` ".
|
function CreateRoomArrays()
|
||||||
"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");
|
global $Room, $RoomID, $RoomName, $con;
|
||||||
$Room[$i]["Name"] = mysql_result($Erg, $i, "Name");
|
|
||||||
$RoomID[ mysql_result($Erg, $i, "RID") ] = mysql_result($Erg, $i, "Name");
|
$sql = "SELECT `RID`, `Name` FROM `Room` ".
|
||||||
$RoomName[ mysql_result($Erg, $i, "Name") ] = mysql_result($Erg, $i, "RID");
|
"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");
|
||||||
|
$RoomName[ mysql_result($Erg, $i, "Name") ] = mysql_result($Erg, $i, "RID");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
CreateRoomArrays();
|
||||||
|
|
||||||
|
|
||||||
/*##############################################################################################
|
/*##############################################################################################
|
||||||
F I L E
|
F I L E
|
||||||
|
|
|
@ -36,7 +36,7 @@ $GlobalZeileProStunde = 4;
|
||||||
$ModemEnable = false;
|
$ModemEnable = false;
|
||||||
|
|
||||||
//soll das xcal-file von penterbarf
|
//soll das xcal-file von penterbarf
|
||||||
$DataGetMeth="wget";
|
//$DataGetMeth="wget";
|
||||||
//$DataGetMeth="lynx";
|
$DataGetMeth="lynx";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -150,7 +150,11 @@ foreach($XMLmain->sub as $EventKey => $Event)
|
||||||
$SIDDB = mysql_result($Erg, 0, "SID");
|
$SIDDB = mysql_result($Erg, 0, "SID");
|
||||||
$TimeDB = mysql_result($Erg, 0, "DateS");
|
$TimeDB = mysql_result($Erg, 0, "DateS");
|
||||||
$LenDB = mysql_result($Erg, 0, "Len");
|
$LenDB = mysql_result($Erg, 0, "Len");
|
||||||
$RIDDB = $RoomID[mysql_result($Erg, 0, "RID")];
|
if( isset($RoomID[mysql_result($Erg, 0, "RID")]))
|
||||||
|
$RIDDB = $RoomID[mysql_result($Erg, 0, "RID")];
|
||||||
|
else
|
||||||
|
$RIDDB = "RID". mysql_result($Erg, 0, "RID");
|
||||||
|
|
||||||
$ManDB = mysql_result($Erg, 0, "Man");
|
$ManDB = mysql_result($Erg, 0, "Man");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue