diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-11-30 10:49:24 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-11-30 10:49:24 +0000 |
commit | b91450e558455d704cd0d09504b503be9eacd590 (patch) | |
tree | 056ee0a7c2e99443b63e0bac5c69ea35aa11708d /www-ssl/nonpublic/news_output.php | |
parent | 02a7b492a8f3102e8cbba4607bde906b565b1aee (diff) |
newsverwaltung erweitert, add edit bouten und parameter check
git-svn-id: svn://svn.cccv.de/engel-system@187 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/nonpublic/news_output.php')
-rwxr-xr-x | www-ssl/nonpublic/news_output.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/www-ssl/nonpublic/news_output.php b/www-ssl/nonpublic/news_output.php index 1e4a349d..6c6fb8ff 100755 --- a/www-ssl/nonpublic/news_output.php +++ b/www-ssl/nonpublic/news_output.php @@ -27,17 +27,21 @@ $Erg = mysql_query($SQL, $con); // anzahl zeilen $news_rows = mysql_num_rows($Erg); -for ($n = 0 ; $n < $news_rows ; $n++) { +for ($n = 0 ; $n < $news_rows ; $n++) +{ - if (mysql_result($Erg, $n, "Treffen") == 0) { + if (mysql_result($Erg, $n, "Treffen") == 0) echo "<p class='question'>"; - } else { + else echo "<p class='engeltreffen'>"; - } - echo "<u>".mysql_result($Erg, $n, "Betreff")."</u><br>\n"; + + echo "<u>".mysql_result($Erg, $n, "Betreff")."</u>\n"; + // Schow Admin Page + if( $_SESSION['CVS'][ "admin/news.php" ] == "Y" ) + echo " <a href=\"./../admin/news.php?action=change&date=". mysql_result($Erg, $n, "Datum"). "\">[edit]</a><br>\n\t\t"; - echo " <font size=1>".mysql_result($Erg, $n, "Datum").", "; + echo "<br> <font size=1>".mysql_result($Erg, $n, "Datum").", "; echo UID2Nick(mysql_result($Erg, $n, "UID"))."</font>"; // avatar anzeigen? echo DisplayAvatar (mysql_result($Erg, $n, "UID")); |