import probleme beseitigt, news 2x back eingefueht
git-svn-id: svn://svn.cccv.de/engel-system@77 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
e3fc6ba2d1
commit
82b4bb4e89
|
@ -1,38 +1,5 @@
|
|||
<?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");
|
||||
}
|
||||
|
||||
|
||||
/*#######################################################
|
||||
# gibt die engelschischten aus #
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?PHP
|
||||
|
||||
function DatumUm1TagErhoehen( $Datum)
|
||||
if( !function_exists("DatumUm1TagErhoehen"))
|
||||
{
|
||||
function DatumUm1TagErhoehen( $Datum)
|
||||
{
|
||||
$Jahr = substr( $Datum, 0, 4);
|
||||
$Monat = substr( $Datum, 5, 2);
|
||||
$Tag = substr( $Datum, 8, 2);
|
||||
|
@ -37,7 +39,8 @@ function DatumUm1TagErhoehen( $Datum)
|
|||
}
|
||||
|
||||
return ("$Jahr-$Monat-$Tag");
|
||||
} //function DatumUm1Tagerhoehen(
|
||||
} //function DatumUm1Tagerhoehen(
|
||||
}
|
||||
|
||||
//suchen den ersten eintrags
|
||||
$SQL = "SELECT `DateS` FROM `Shifts` ORDER BY `DateS` LIMIT 1";
|
||||
|
|
|
@ -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");
|
||||
?>
|
|
@ -16,7 +16,10 @@ if( IsSet( $_GET["text"]))
|
|||
$_GET["nid"]. "', '". date("Y-m-d H:i:s"). "', '". $_GET["text"]. "', '". $_SESSION["UID"]. "')";
|
||||
$Erg = mysql_query($ch_sql, $con);
|
||||
if ($Erg == 1)
|
||||
{
|
||||
echo "Eintrag wurde gespeichert<br><br>";
|
||||
SetHeaderGo2Back();
|
||||
}
|
||||
}
|
||||
|
||||
$SQL = "SELECT * FROM news_comments where Refid = ". $_GET["nid"]. " ORDER BY 'ID'";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<h4> Tage </h4>
|
||||
|
||||
<?
|
||||
include ("./inc/funktion_schichtplan_aray.php");
|
||||
|
||||
function Printlink( $Datum)
|
||||
{
|
||||
|
|
|
@ -2,11 +2,21 @@
|
|||
|
||||
<?php
|
||||
|
||||
foreach( $Room as $RoomEntry )
|
||||
echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=". $RoomEntry["RID"]. "'>".
|
||||
$RoomEntry["Name"]. "</a></li>\n";
|
||||
include ("./inc/funktion_schichtplan_aray.php");
|
||||
|
||||
foreach( $Room as $RoomEntry )
|
||||
{
|
||||
if(isset($ausdatum))
|
||||
echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=". $RoomEntry["RID"]. "'>".
|
||||
$RoomEntry["Name"]. "</a></li>\n";
|
||||
else
|
||||
echo "\t<li><a href='./schichtplan.php?raum=". $RoomEntry["RID"]. "'>".
|
||||
$RoomEntry["Name"]. "</a></li>\n";
|
||||
}
|
||||
echo "<br>";
|
||||
echo "<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=-1'>alle</a></li>";
|
||||
if(isset($ausdatum))
|
||||
echo "<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=-1'>alle</a></li>";
|
||||
else
|
||||
echo "<li><a href='./schichtplan.php?raum=-1'>alle</a></li>";
|
||||
?>
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ if( isset($_GET["raum"]))
|
|||
$raum = $_GET["raum"];
|
||||
|
||||
include ("./inc/header.php");
|
||||
include ("./inc/funktion_schichtplan_aray.php");
|
||||
include ("./inc/funktion_user.php");
|
||||
include ("./inc/funktionen.php");
|
||||
include ("./inc/funktion_schichtplan.php");
|
||||
include ("./inc/funktion_schichtplan_Tage.php");
|
||||
?>
|
||||
|
||||
<? echo Get_Text("Hello").$_SESSION['Nick'].",<br>".
|
||||
|
|
Loading…
Reference in New Issue