' . ($ratingCount > 0 ? 'Топ ' . $ratingCount . ', ' : '') . 'Материал: ' . $getResource['name'] . ' | ' . '||
' . $i++ . ' | ' . '' . nickname($row['uid'], 1) . ' | ' . '' . $row['val'] . ' шт. | ' . '
' . ' | ||
' . nickname($user['id'], 1) . ' | ' . '' . 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)) . ' шт. | ' . '|
Нет данных | ' . '
' . '