From 310c2ce98fc8c0e94559c9ed8587101d92f6e853 Mon Sep 17 00:00:00 2001 From: cookie Date: Sat, 10 Sep 2005 17:25:43 +0000 Subject: add total system git-svn-id: svn://svn.cccv.de/engel-system@1 29ba0400-6e00-0410-a75a-ca02368028f8 --- nonpublic/news_output.php | 114 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100755 nonpublic/news_output.php (limited to 'nonpublic/news_output.php') diff --git a/nonpublic/news_output.php b/nonpublic/news_output.php new file mode 100755 index 00000000..9648fc41 --- /dev/null +++ b/nonpublic/news_output.php @@ -0,0 +1,114 @@ += 0 ) { +// echo "

Die vorherigen $DISPLAY_NEWS News anzeigen...
"; +//} + +$SQL = "SELECT * FROM `News` ORDER BY 'ID' DESC LIMIT $news_begin,$DISPLAY_NEWS"; +$Erg = mysql_query($SQL, $con); + +// anzahl zeilen +$news_rows = mysql_num_rows($Erg); + +for ($n = 0 ; $n < $news_rows ; $n++) { + + if (mysql_result($Erg, $n, "Treffen") == 0) { + echo "

"; + } else { + echo "

"; + } + echo "".mysql_result($Erg, $n, "Betreff")."
\n"; + + + echo "   ".mysql_result($Erg, $n, "Datum").", "; + echo UID2Nick(mysql_result($Erg, $n, "UID")).""; + // avatar anzeigen? + echo DisplayAvatar (mysql_result($Erg, $n, "UID")); + echo "

\n"; + echo "

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

\n"; + $RefID=mysql_result($Erg, $n, "ID"); + $countSQL="SELECT COUNT(*) from news_comments where Refid = '$RefID'"; + $countErg = mysql_query($countSQL, $con); + $countcom = mysql_result($countErg, 0, "COUNT(*)"); + echo "

$countcom comments

\n\n"; + + +} +//echo "Die nächsten $DISPLAY_NEWS News anzeigen...

\n"; + +echo "
\n\n"; +$rowerg = mysql_query("select * from News", $con); +$rows = mysql_num_rows($rowerg); +$dis_rows = round (($rows / $DISPLAY_NEWS)+0.5); + +Print_Text(5); + +for ($i=1; $i <= $dis_rows; $i++) { + if (!((($i * $DISPLAY_NEWS) - $news_begin) == $DISPLAY_NEWS)) { + echo "$i  "; + } else { + echo "$i  "; + } +} +echo "
"; + +?> + +
+
+

+  + +
+ +"> + + + + + + + + + + + + + + + + +
+
+ +
-- cgit v1.2.3-54-g00ecf