From b91450e558455d704cd0d09504b503be9eacd590 Mon Sep 17 00:00:00 2001 From: cookie Date: Thu, 30 Nov 2006 10:49:24 +0000 Subject: newsverwaltung erweitert, add edit bouten und parameter check git-svn-id: svn://svn.cccv.de/engel-system@187 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/nonpublic/engelbesprechung.php | 19 ++++++++++++++----- www-ssl/nonpublic/news_output.php | 16 ++++++++++------ 2 files changed, 24 insertions(+), 11 deletions(-) (limited to 'www-ssl/nonpublic') diff --git a/www-ssl/nonpublic/engelbesprechung.php b/www-ssl/nonpublic/engelbesprechung.php index 436a5271..84bd92b5 100755 --- a/www-ssl/nonpublic/engelbesprechung.php +++ b/www-ssl/nonpublic/engelbesprechung.php @@ -15,12 +15,21 @@ $Erg = mysql_query($SQL, $con); // anzahl zeilen $Zeilen = mysql_num_rows($Erg); -for ($n = 0 ; $n < $Zeilen ; $n++) { - if (mysql_result($Erg, $n, "Treffen")=="1") { - echo "

".mysql_result($Erg, $n, "Betreff")."
". - "   ".mysql_result($Erg, $n, "Datum").", "; +for ($n = 0 ; $n < $Zeilen ; $n++) +{ + if (mysql_result($Erg, $n, "Treffen")=="1") + { + echo "

".mysql_result($Erg, $n, "Betreff").""; + + // Schow Admin Page + if( $_SESSION['CVS'][ "admin/news.php" ] == "Y" ) + echo " [edit]"; + + echo "
   ".mysql_result($Erg, $n, "Datum").", "; echo UID2Nick(mysql_result($Erg, $n, "UID"))."

\n"; - echo "

".nl2br(mysql_result($Erg, $n, "Text"))."

\n"; + + + echo "

".nl2br(mysql_result($Erg, $n, "Text"))."

\n"; } } 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 "

"; - } else { + else echo "

"; - } - echo "".mysql_result($Erg, $n, "Betreff")."
\n"; + + echo "".mysql_result($Erg, $n, "Betreff")."\n"; + // Schow Admin Page + if( $_SESSION['CVS'][ "admin/news.php" ] == "Y" ) + echo " [edit]
\n\t\t"; - echo "   ".mysql_result($Erg, $n, "Datum").", "; + echo "
   ".mysql_result($Erg, $n, "Datum").", "; echo UID2Nick(mysql_result($Erg, $n, "UID")).""; // avatar anzeigen? echo DisplayAvatar (mysql_result($Erg, $n, "UID")); -- cgit v1.2.3-54-g00ecf