View file gchat/inc/users.class.php

File size: 732B
<?php

class gusers 
{
function readUsers ($users = null)
	{
	if (empty ($users))
		{
		echo "<div class='".DIV_SECTION_1."'>Пользователей еще не было<br />
		Вы можете стать первым :)</div>";
		return false;
		}
	foreach ($users AS $user)
		{
		echo "<div class='".alternDivs (DIV_SECTION_1, DIV_SECTION_2)."'>
		<a href='user_info.php?user_id={$user->id}'><img src='icons/sex_".intval ($user->user_sex).".png' alt='' /> ".filtOut ($user->user_nick)." [ID".intval ($user->id)."]</a><br /> <img src='icons/balls.png' alt='' /> ".round ($user->balls, 2)." <img src='icons/brain.png' alt='' /> $user->quiz_balls <img src='icons/msg.png' alt='' /> $user->msgs</div>";
		}
	}
}