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