rename aray -> array

This commit is contained in:
Philip Häusler 2011-06-01 12:41:37 +02:00
parent f87279226f
commit ebecae2ccc
10 changed files with 17 additions and 55 deletions

View File

@ -1,38 +0,0 @@
<?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");
$TID2Name[ mysql_result($Erg, $i, "TID") ] = mysql_result($Erg, $i, "Name");
}
include ("funktion_schichtplan_Tage.php");
?>

View File

@ -2,7 +2,7 @@
$title = "UserPicture"; $title = "UserPicture";
$header = "Verwaltung der User Picture"; $header = "Verwaltung der User Picture";
include ("../../includes/header.php"); include ("../../includes/header.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
if( IsSet($_GET["action"]) ) if( IsSet($_GET["action"]) )

View File

@ -2,7 +2,7 @@
$title = "R&auml;ume"; $title = "R&auml;ume";
$header = "Verwaltung der R&auml;ume"; $header = "Verwaltung der R&auml;ume";
include ("../../includes/header.php"); include ("../../includes/header.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
$Sql = "SELECT * FROM `Room` ORDER BY `Number`, `Name`"; $Sql = "SELECT * FROM `Room` ORDER BY `Number`, `Name`";
$Erg = mysql_query($Sql, $con); $Erg = mysql_query($Sql, $con);

View File

@ -8,7 +8,7 @@ if (!IsSet($_GET["action"]))
{ {
include ("../../includes/header.php"); include ("../../includes/header.php");
include ("../../includes/funktionen.php"); include ("../../includes/funktionen.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
include ("../../includes/funktion_schichtplan.php"); include ("../../includes/funktion_schichtplan.php");
echo "Hallo ". $_SESSION['Nick']. "<br>\n". echo "Hallo ". $_SESSION['Nick']. "<br>\n".
@ -46,7 +46,7 @@ else //#################################################################
$_SESSION['CVS'][ "admin/schichtplan.php" ] = "N"; $_SESSION['CVS'][ "admin/schichtplan.php" ] = "N";
include ("../../includes/funktion_lang.php"); include ("../../includes/funktion_lang.php");
include ("../../includes/funktion_schichtplan.php"); include ("../../includes/funktion_schichtplan.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
include ("../../includes/funktion_user.php"); include ("../../includes/funktion_user.php");
?> ?>
@ -81,7 +81,7 @@ else //#################################################################
<table border="2" width="650" class="border" cellpadding="2" cellspacing="1"> <table border="2" width="650" class="border" cellpadding="2" cellspacing="1">
<!--Ausgabe Spalten überschrift--> <!--Ausgabe Spalten <EFBFBD>berschrift-->
<tr class="contenttopic"> <tr class="contenttopic">
<th bgcolor="#E0E0E0">Uhrzeit</th> <th bgcolor="#E0E0E0">Uhrzeit</th>

View File

@ -5,7 +5,7 @@ $header = "Mein Schichtplan";
include ("../../includes/header.php"); include ("../../includes/header.php");
include ("../../includes/funktionen.php"); include ("../../includes/funktionen.php");
include ("../../includes/funktion_schichtplan.php"); include ("../../includes/funktion_schichtplan.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
If( !IsSet($_GET["action"]) ) If( !IsSet($_GET["action"]) )
@ -98,7 +98,7 @@ If( !IsSet($_GET["action"]) )
$lastAustragen = $LETZTES_AUSTRAGEN*3600; $lastAustragen = $LETZTES_AUSTRAGEN*3600;
$nowdate = time(); $nowdate = time();
// wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen // wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen
// noch möglich sein // noch m<EFBFBD>glich sein
if( $schichtdatum > ($lastAustragen + $nowdate) ) if( $schichtdatum > ($lastAustragen + $nowdate) )
echo "<td> <a href=\"./myschichtplan.php?action=austragen&SID=". echo "<td> <a href=\"./myschichtplan.php?action=austragen&SID=".
mysql_result( $erg, $i, "SID" )."\">". mysql_result( $erg, $i, "SID" )."\">".
@ -137,7 +137,7 @@ else
$lastAustragen = $LETZTES_AUSTRAGEN*3600; $lastAustragen = $LETZTES_AUSTRAGEN*3600;
$nowdate = time(); $nowdate = time();
// wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen // wenn Schichtbeginn > jetziges Datum + $LETZTES_AUSTRAGEN - Stunden soll ein Austragen
// noch möglich sein // noch m<EFBFBD>glich sein
if( $schichtdatum > ($lastAustragen + $nowdate) ) if( $schichtdatum > ($lastAustragen + $nowdate) )
{ {
$sql2 = "UPDATE `ShiftEntry` ". $sql2 = "UPDATE `ShiftEntry` ".

View File

@ -1,7 +1,7 @@
<?php <?php
include ("../../includes/header_start.php"); include ("../../includes/header_start.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
$SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` ". $SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` ".
"INNER JOIN `ShiftEntry` ". "INNER JOIN `ShiftEntry` ".

View File

@ -1,7 +1,7 @@
<h4>&nbsp;Tage </h4> <h4>&nbsp;Tage </h4>
<?PHP <?PHP
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
function Printlink( $Datum) function Printlink( $Datum)
{ {

View File

@ -1,7 +1,7 @@
<h4>&nbsp;Raum&uuml;bersicht</h4> <h4>&nbsp;Raum&uuml;bersicht</h4>
<?php <?php
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
if( isset ($Room)) if( isset ($Room))
foreach( $Room as $RoomEntry ) foreach( $Room as $RoomEntry )

View File

@ -24,7 +24,7 @@ if( isset($_GET["raum"]))
include ("../../includes/header.php"); include ("../../includes/header.php");
include ("../../includes/funktionen.php"); include ("../../includes/funktionen.php");
include ("../../includes/funktion_schichtplan.php"); include ("../../includes/funktion_schichtplan.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
?> ?>
<?PHP echo Get_Text("Hello").$_SESSION['Nick'].",<br>". <?PHP echo Get_Text("Hello").$_SESSION['Nick'].",<br>".
@ -75,7 +75,7 @@ if( !isset($ausdatum) )
if ( !isset($raum) ) if ( !isset($raum) )
{ {
// Ausgabe wenn kein Raum Ausgewählt: // Ausgabe wenn kein Raum Ausgew<EFBFBD>hlt:
echo Get_Text("pub_schicht_auswahl_raeume"). "<br><br>\n"; echo Get_Text("pub_schicht_auswahl_raeume"). "<br><br>\n";
if( isset($Room)) if( isset($Room))
@ -105,7 +105,7 @@ if ( !isset($raum) )
showEmptyShifts(); showEmptyShifts();
} }
else else
{ // Wenn einraum Ausgewählt ist: { // Wenn einraum Ausgew<EFBFBD>hlt ist:
if( $raum == -1 ) if( $raum == -1 )
echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br><br>"; echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br><br>";
elseif( substr( $raum, 0, 1) == ";" ) elseif( substr( $raum, 0, 1) == ";" )
@ -120,7 +120,7 @@ else
echo "\t<tr class=\"contenttopic\">\n"; echo "\t<tr class=\"contenttopic\">\n";
echo "\t\t<td>start</td>\n"; echo "\t\t<td>start</td>\n";
//Ausgabe Spalten überschrift //Ausgabe Spalten <EFBFBD>berschrift
if( $raum == -1 ) if( $raum == -1 )
{ {
if( isset($Room)) if( isset($Room))

View File

@ -3,7 +3,7 @@ $title = "Himmel";
$header = "Schichtpl&auml;ne"; $header = "Schichtpl&auml;ne";
include ("../../includes/header.php"); include ("../../includes/header.php");
include ("../../includes/funktion_schichtplan.php"); include ("../../includes/funktion_schichtplan.php");
include ("../../includes/funktion_schichtplan_aray.php"); include ("../../includes/funktion_schichtplan_array.php");
include ("../../includes/funktionen.php"); include ("../../includes/funktionen.php");
if (isset($_POST["newtext"]) && isset($_POST["SID"]) && isset($_POST["TID"])) { if (isset($_POST["newtext"]) && isset($_POST["SID"]) && isset($_POST["TID"])) {
@ -21,7 +21,7 @@ if (isset($_POST["newtext"]) && isset($_POST["SID"]) && isset($_POST["TID"])) {
if( $_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<EFBFBD>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`".
" WHERE ((". " WHERE ((".