bugfix/umbau

git-svn-id: svn://svn.cccv.de/engel-system@206 29ba0400-6e00-0410-a75a-ca02368028f8
main
cookie 18 years ago
parent c2aaef3afc
commit b6410e1fb5

@ -131,30 +131,36 @@ function ausgabe_Feld_Inhalt( $SID, $Man )
$Ergtime = mysql_query($SQLtime, $con); $Ergtime = mysql_query($SQLtime, $con);
if( mysql_num_rows( $Ergtime) > 0) if( mysql_num_rows( $Ergtime) > 0)
{ {
//mit sonder status
$SQLerlaubnis = "SELECT Name FROM `EngelType` WHERE TID = '". $TempValue["TID"]. "'"; // $EngelTypeID[$TempValue["TID"]]
$Ergerlaubnis = mysql_query( $SQLerlaubnis, $con); $SQLerlaubnis = "SELECT Name FROM `EngelType` WHERE TID = '". $TempValue["TID"]. "'";
if( mysql_num_rows( $Ergerlaubnis)) $Ergerlaubnis = mysql_query( $SQLerlaubnis, $con);
//setzen wenn nicht definiert if( mysql_num_rows( $Ergerlaubnis))
if( !isset($_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")]))
$_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] = "Y"; {
if( $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "Y")
if( $TempValue["free"] > 0 ) //wenn keien rechte definiert sind
{ if( !isset($_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")]))
$Spalten.= "<br>\n\t\t&nbsp;&nbsp;<a href=\"./schichtplan_add.php?SID=$SID&TID=". $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] = "Y";
$TempValue["TID"]."\">";
$Spalten.= $TempValue["free"]; if( $_SESSION['CVS'][mysql_result( $Ergerlaubnis, 0, "Name")] == "Y")
if( $TempValue["free"] != 1 ) if( $TempValue["free"] > 0 )
$Spalten.= Get_Text("inc_schicht_weitere"). {
" ".Get_Text("inc_schicht_Engel"). $Spalten.= "<br>\n\t\t&nbsp;&nbsp;<a href=\"./schichtplan_add.php?SID=$SID&TID=".
Get_Text("inc_schicht_wird"); $TempValue["TID"]."\">";
else $Spalten.= $TempValue["free"];
$Spalten.= Get_Text("inc_schicht_weiterer"). if( $TempValue["free"] != 1 )
" ".Get_Text("inc_schicht_Engel"). $Spalten.= Get_Text("inc_schicht_weitere").
Get_Text("inc_schicht_werden"); " ".Get_Text("inc_schicht_Engel").
$Spalten.= Get_Text("inc_schicht_noch_gesucht"); Get_Text("inc_schicht_wird");
$Spalten.= "</a>"; else
} $Spalten.= Get_Text("inc_schicht_weiterer").
" ".Get_Text("inc_schicht_Engel").
Get_Text("inc_schicht_werden");
$Spalten.= Get_Text("inc_schicht_noch_gesucht");
$Spalten.= "</a>";
}
}
} }
else else
{ {
@ -206,7 +212,7 @@ function CreateRoomShifts( $raum )
echo "<h1>". Get_Text("pub_schichtplan_colision"). "</h1> "; echo "<h1>". Get_Text("pub_schichtplan_colision"). "</h1> ";
echo "<a href=\"./../admin/schichtplan.php?action=change&SID=". mysql_result($ErgSonder, 0, "SID"). "\">". echo "<a href=\"./../admin/schichtplan.php?action=change&SID=". mysql_result($ErgSonder, 0, "SID"). "\">".
mysql_result($ErgSonder, 0, "DateS"). mysql_result($ErgSonder, 0, "DateS").
" '". mysql_result($ErgSonder, 0, "Man"). "' (00-24)". " '". mysql_result($ErgSonder, 0, "Man")."' (RID $raum) (00-24)".
"</a><br>\n\t\t"; "</a><br>\n\t\t";
} }
} }
@ -237,7 +243,7 @@ function CreateRoomShifts( $raum )
echo "<h1>". Get_Text("pub_schichtplan_colision"). "</h1> "; echo "<h1>". Get_Text("pub_schichtplan_colision"). "</h1> ";
echo "<a href=\"./../admin/schichtplan.php?action=change&SID=". mysql_result($ErgSonder, 0, "SID"). "\">". echo "<a href=\"./../admin/schichtplan.php?action=change&SID=". mysql_result($ErgSonder, 0, "SID"). "\">".
mysql_result($ErgSonder, 0, "DateS"). mysql_result($ErgSonder, 0, "DateS").
" '". mysql_result($ErgSonder, 0, "Man"). "' (00-xx)". " '". mysql_result($ErgSonder, 0, "Man")."' (RID $raum) (00-xx)".
"</a><br>\n\t\t"; "</a><br>\n\t\t";
} }
} }

Loading…
Cancel
Save