' . $lng['all'] . '' : '' . $lng['all'] . ''),
($mod == 'boys' ? '' . $lng['mans'] . '' : '' . $lng['mans'] . ''),
($mod == 'girls' ? '' . $lng['womans'] . '' : '' . $lng['womans'] . '')
);
echo '
' .
'';
$total = mysql_result(mysql_query("SELECT COUNT(DISTINCT `user_id`)
FROM `cms_album_files`
LEFT JOIN `users` ON `cms_album_files`.`user_id` = `users`.`id` $sql
"), 0);
if ($total) {
$req = mysql_query("SELECT `cms_album_files`.*, COUNT(`cms_album_files`.`id`) AS `count`, `users`.`id` AS `uid`, `users`.`name` AS `nick`
FROM `cms_album_files`
LEFT JOIN `users` ON `cms_album_files`.`user_id` = `users`.`id` $sql
GROUP BY `cms_album_files`.`user_id` ORDER BY `users`.`name` ASC LIMIT $start, $kmess
");
$i = 0;
while ($res = mysql_fetch_assoc($req)) {
echo $i % 2 ? '' : '
';
++$i;
}
} else {
echo '';
}
echo '
' . $lng['total'] . ': ' . $total . '
';
if ($total > $kmess) {
echo '' .
'
';
}
?>