git-svn-id: svn://svn.cccv.de/engel-system@100 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2005-11-30 22:42:51 +00:00
parent bf88f9c69b
commit 3a051ec08d
1 changed files with 8 additions and 2 deletions

View File

@ -46,6 +46,12 @@ switch( $_GET["action"])
echo "<br><br><a href=\"?action=MarkRead&Datum=". mysql_result( $erg, $i, "Datum" ). echo "<br><br><a href=\"?action=MarkRead&Datum=". mysql_result( $erg, $i, "Datum" ).
"\">". Get_Text("pub_messages_MarkRead"). "</a>"; "\">". Get_Text("pub_messages_MarkRead"). "</a>";
} }
else
{
if( mysql_result( $erg, $i, "isRead")=="N")
echo Get_Text("pub_messages_NotRead");
}
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
} }
@ -59,7 +65,7 @@ switch( $_GET["action"])
echo "\t<td></td>\n"; echo "\t<td></td>\n";
// Listet alle Nicks auf // Listet alle Nicks auf
echo "\t<td><select name=\"RUID\">\n"; echo "\t<td><select name=\"RUID\">\n";
$usql="select * from User order by Nick"; $usql="SELECT * FROM `User` WHERE (`UID`!='". $_SESSION["UID"] ."') ORDER BY `Nick`";
$uErg = mysql_query($usql, $con); $uErg = mysql_query($usql, $con);
$urowcount = mysql_num_rows($uErg); $urowcount = mysql_num_rows($uErg);
for ($k=0; $k<$urowcount; $k++) for ($k=0; $k<$urowcount; $k++)
@ -94,7 +100,7 @@ switch( $_GET["action"])
case "MarkRead": case "MarkRead":
$SQL = "UPDATE `Messages` SET `isRead` = 'Y' ". $SQL = "UPDATE `Messages` SET `isRead` = 'Y' ".
"WHERE `Datum` = '". $_GET["Datum"]. "' AND `SUID`=". $_SESSION["UID"]. " ". "WHERE `Datum` = '". $_GET["Datum"]. "' AND `RUID`=". $_SESSION["UID"]. " ".
"LIMIT 1 ;"; "LIMIT 1 ;";
$Erg = mysql_query($SQL, $con); $Erg = mysql_query($SQL, $con);
if ($Erg == 1) if ($Erg == 1)