".$data['article_subject']." (".$data['article_comments'].")\n"; } } //=============== $result = dbquery("SELECT * FROM ".$fusion_prefix."photos WHERE photo_views!='0' ORDER BY photo_date DESC"); if (dbrows($result) != 0) { while ($data = dbarray($result)) { $result1 = dbquery("SELECT * FROM ".$fusion_prefix."comments WHERE comment_item_id=".$data['photo_id'].""); $coments=dbrows($result1); if ($coments != 0) { if (isset($photo_id)) { if ($photo_id == $data['photo_id']) { $sel = " selected"; } else { $sel = ""; }} $photo_list .= "\n"; } } } //================= $result = dbquery("SELECT * FROM ".$fusion_prefix."news WHERE news_comments!='0' ORDER BY news_datestamp DESC"); if (dbrows($result) != 0) { while ($data = dbarray($result)) { if (isset($news_id)) { if ($news_id == $data['news_id']) { $sel = " selected"; } else { $sel = ""; }} $news_list .= "\n"; } } opentable(LAN_400); echo "
".LAN_402."
Komentarze Zdjec
".LAN_403."
\n"; closetable(); if ($step == "edit") { $data = dbarray(dbquery("SELECT * FROM ".$fusion_prefix."comments WHERE comment_id=$comment_id")); tablebreak(); opentable(LAN_420); echo "

\n"; closetable(); echo "\n"; } if ($article_id || $news_id || $photo_id) { tablebreak(); opentable(LAN_430); echo "
\n"; $result = dbquery("SELECT * FROM ".$fusion_prefix."comments LEFT JOIN ".$fusion_prefix."users ON ".$fusion_prefix."comments.comment_name=".$fusion_prefix."users.user_id WHERE $query ORDER BY comment_datestamp ASC"); $numrows = dbrows($result); $i = 1; while ($data = dbarray($result)) { echo "
\n"; if (SuperAdmin()) echo "\n"; echo "
"; if ($data[user_name]) { echo "".$data['user_name'].""; } else { echo "".$data['comment_name'].""; } echo "IP: ".$data['comment_ip']."
".parseubb(parsesmileys($data['comment_message']))."
".LAN_431." | ".LAN_432." ".strftime($settings['longdate'], $data['comment_datestamp']+($settings['timeoffset']*3600))."
\n"; if ($i != $numrows) { echo "
\n"; } $i++; } echo "
\n"; closetable(); echo "\n"; } } echo "\n"; require "../footer.php"; ?>