';
$result .= ''.Display::return_icon('synthese_view.gif', get_lang('Info')).' ';
$result .= ''.Display::return_icon('login_as.gif', get_lang('LoginAs')).' ';
$statusname = api_get_status_langvars();
if ($row['6'] != $statusname[STUDENT])
{
$result .= Display::return_icon('statistics_na.gif', get_lang('Reporting')).' ';
}
else
{
$result .= ''.Display::return_icon('statistics.gif', get_lang('Reporting')).' ';
}
if (api_is_platform_admin()) {
$result .= ''.Display::return_icon('edit.gif', get_lang('Edit')).' ';
if ($row[0]<>$_user['user_id']) { // you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.
$result .= ''.Display::return_icon('delete.gif', get_lang('Delete')).'';
} else {
$result .= Display::return_icon('delete_na.gif', get_lang('Delete'));
}
}
return $result;
}
/**
* Build the active-column of the table to lock or unlock a certain user
* lock = the user can no longer use this account
* @author Patrick Cool