tablebreak(); if (isset($status)) { if ($status == "dodano") { $title = $locale['0000']; $message = $locale['0001']; } opentable($title); echo "
".$message."
\n"; closetable(); tablebreak(); } opentable($locale['c100']); $result = dbquery( "SELECT tcm.*,user_name FROM ".DB_PREFIX."comments tcm LEFT JOIN ".DB_PREFIX."users tcu ON tcm.comment_name=tcu.user_id WHERE comment_item_id='$cid' AND comment_type='$ctype' ORDER BY comment_datestamp ASC" ); if (dbrows($result) != 0) { $i = 0; echo "\n"; while ($data = dbarray($result)) { echo "\n\n\n"; $i++; } if (checkrights("C")) echo "\n\n\n"; echo "
\n"; if ($data['user_name']) { echo " ".$data['user_name']."[b][color=red]
[/color][/b]"; [color=red][b] $wynik = dbquery("SELECT * FROM ".DB_PREFIX."extended_profile_values WHERE prop_user_id=".$data['comment_name'].""); $data1 = dbarray($wynik); if ($userdata['user_id'] == $data1['prop_user_id']) {echo "Mój kolor ".$data1['prop_value']."";} else { echo "Ulubiony kolor ".$data1['prop_value']."";} echo "
"[/b][/color]; } else { echo $data['comment_name']; } if ($data['comment_smileys'] == "1") { $comment_message = parsesmileys($data['comment_message']); } else { $comment_message = $data['comment_message']; } $comment_message = nl2br(parseubb($comment_message)); echo "
\n".$locale['041'].showdate("longdate", $data['comment_datestamp'])."
\n"; echo $comment_message."
".$locale['c106']."
\n"; } else { echo $locale['c101']."\n"; } closetable(); tablebreak(); opentable($locale['c102']); if (iMEMBER || $settings['guestposts'] == "1") { echo "
\n"; if (iGUEST) { echo "
".$locale['c103']."