anzeieg ob engel gekommen sind
git-svn-id: svn://svn.cccv.de/engel-system@105 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
f519da5994
commit
0eac93de64
|
@ -102,9 +102,26 @@ function ausgabe_Feld_Inhalt( $SID, $Man )
|
||||||
$Spalten.= Get_Text("inc_schicht_sind"). ":<br>\n\t\t";
|
$Spalten.= Get_Text("inc_schicht_sind"). ":<br>\n\t\t";
|
||||||
|
|
||||||
foreach( $TempValue["Engel"] as $TempEngelEntry=> $TempEngelID )
|
foreach( $TempValue["Engel"] as $TempEngelEntry=> $TempEngelID )
|
||||||
|
{
|
||||||
|
|
||||||
|
if( $_SESSION['CVS'][ "admin/schichtplan.php" ] == "Y" )
|
||||||
|
{
|
||||||
|
if( UIDgekommen( $TempEngelID ) == "1")
|
||||||
|
$Spalten.= " <span style=\"color: blue;\">".
|
||||||
|
UID2Nick( $TempEngelID ).
|
||||||
|
DisplayAvatar( $TempEngelID ).
|
||||||
|
"</span><br>\n\t\t";
|
||||||
|
else
|
||||||
|
$Spalten.= " <span style=\"color: red;\">".
|
||||||
|
UID2Nick( $TempEngelID ).
|
||||||
|
DisplayAvatar( $TempEngelID ).
|
||||||
|
"</span><br>\n\t\t";
|
||||||
|
}
|
||||||
|
else
|
||||||
$Spalten.= " ". UID2Nick( $TempEngelID ).
|
$Spalten.= " ". UID2Nick( $TempEngelID ).
|
||||||
DisplayAvatar( $TempEngelID ).
|
DisplayAvatar( $TempEngelID ).
|
||||||
"<br>\n\t\t";
|
"<br>\n\t\t";
|
||||||
|
}
|
||||||
$Spalten = substr( $Spalten, 0, strlen($Spalten)-7 );
|
$Spalten = substr( $Spalten, 0, strlen($Spalten)-7 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,14 +57,12 @@ function ReplaceSmilies($eckig) {
|
||||||
|
|
||||||
function displayavatar($dumdidum) {
|
function displayavatar($dumdidum) {
|
||||||
include ("./inc/db.php");
|
include ("./inc/db.php");
|
||||||
|
global $displayavatar;
|
||||||
|
|
||||||
$asql = "select * from User where UID = $dumdidum";
|
$asql = "select * from User where UID = $dumdidum";
|
||||||
$aerg = mysql_query ($asql, $con);
|
$aerg = mysql_query ($asql, $con);
|
||||||
$displayavatar= mysql_result($aerg, 0, "Avatar");
|
if (($displayavatar<>0) && (mysql_num_rows($Erg)) )
|
||||||
if ($displayavatar<>0){
|
return (" <img src=\"./inc/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
|
||||||
return (" <img src=\"./inc/avatar/avatar$displayavatar.gif\">");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Ausgabe_Feld($RID) {
|
function Ausgabe_Feld($RID) {
|
||||||
|
@ -81,5 +79,19 @@ function Ausgabe_Feld($RID) {
|
||||||
return mysql_query($SQL2, $con);
|
return mysql_query($SQL2, $con);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function UIDgekommen($UID) {
|
||||||
|
include ("./inc/db.php");
|
||||||
|
|
||||||
|
$SQL = "SELECT `Gekommen` FROM `User` WHERE UID='$UID'";
|
||||||
|
$Erg = mysql_query($SQL, $con);
|
||||||
|
|
||||||
|
//echo $UID."#";
|
||||||
|
if( mysql_num_rows($Erg))
|
||||||
|
return mysql_result($Erg, 0);
|
||||||
|
else
|
||||||
|
return "0";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue