';
$link = '/user/view.php?id='.$userinfo['user']->id.'&course='.$userinfo['courseid'];
$anchortagcontents = $OUTPUT->user_picture($userinfo['user'], array('courseid' => $userinfo['courseid']));
$action = new popup_action('click', $link, 'user'.$userinfo['chatuser']->id);
$anchortag = $OUTPUT->action_link($link, $anchortagcontents, $action);
echo $anchortag;
echo " | ";
echo " ";
echo fullname($userinfo['user'])." ";
echo "$str->idle: ".format_time($lastping, $str)." ";
echo ''.$str->beep."\n";
echo " ";
echo " | |
";
}
echo '