Profsàjunga - tavo organizacija, o ne organizacija tau !!! ");
if (!isset($readmore)) {
echo "";
$uzklausa = "SELECT news_cat_id, news_cat_name FROM ".$db_prefix."news_cats ";
$rezas = mysql_query($uzklausa)
or die ("Klaidos");
if (mysql_num_rows($rezas) > 0) {
while($nu = mysql_fetch_object($rezas)) {
echo "$nu->news_cat_name
";
$uzklausa = "SELECT news_id, news_cat, news_breaks, news_extended, news_subject, news_cat, news_news, news_datestamp,
news_reads FROM ".$db_prefix."news
WHERE news_cat = '$nu->news_cat_id' ORDER BY news_datestamp DESC LIMIT 0,1";
$rezas2 = mysql_query($uzklausa) or die ("Klaida");
if (mysql_num_rows($rezas2) > 0) {
while($nu2 = mysql_fetch_object($rezas2)) {
$komentarai = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='$nu2->news_id' ");
echo " • $nu2->news_subject
";
if ($nu2->news_breaks == "y") { $news_news = nl2br($nu2->news_news); }
echo stripslashes($news_news);
echo "
".showdate("shortdate", $nu2->news_datestamp); echo " - [Skaityta $nu2->news_reads] - [komentarø $komentarai]
";
echo "
Kitos naujienos:
";
}
}
$uzklausa3 = "SELECT news_id, news_cat, news_subject, news_cat, news_news, news_datestamp, news_reads FROM ".$db_prefix."news
WHERE news_cat = '$nu->news_cat_id' ORDER BY news_datestamp DESC LIMIT 1,6";
$rezas3 = mysql_query($uzklausa3) or die ("Klaida");
if (mysql_num_rows($rezas3) > 0) {
while($nu3 = mysql_fetch_object($rezas3)) {
$komentarai2 = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='$nu3->news_id' ");
echo " • news_subject))."] body=[".
str_replace("]", "]]", str_replace("[", "[[", $nu3->news_news))."] delay=[1] fade=[on]\">$nu3->news_subject
";
echo "".showdate("shortdate", $nu3->news_datestamp);
echo " [ - Skaityta $nu3->news_reads] - [Komentarø $komentarai2]
";
}
echo "Visos ?ios kategorijos naujienos