' . ($ratingCount > 0 ? 'Топ ' . $ratingCount . ', ' : '') . 'Материал: ' . $getResource['name'] . ' | ' . '||
' . $i++ . ' | ' . '' . nick2($row['uid'], true) . ' | ' . '' . $row['val'] . ' шт. | ' . '
' . ' | ||
' . nick2($user['id'], true) . ' | ' . '' . intval(mysql_result(mysql_query("SELECT SUM(`val`) as `val` FROM `church_logs` WHERE `key`='" . $getResource['id'] . "' AND `ch`='" . $thisChurch . "' AND `uid`='" . $user['id'] . "' GROUP BY `uid` ORDER BY SUM(`val`) DESC LIMIT 1;"), 0)) . ' шт. | ' . '|
Нет данных | ' . '
' . '