* @version $id SVN
* @access public
* @license http://opensource.org/licenses/gpl-3.0.html
*/
themeInclude('../user/'.SQL.'.inc.php');
function DisplayInfoUser($user_id) {
$data=$GLOBALS['sql_object'] -> DBSelect(SQL_getAllUserInfo($user_id));
$content = '';
if(count($data)!=1) return false;
else
{
// formattage des données
$user_login=formatText($data[0]['user_login'], '2HTML');
$user_public_email=$data[0]['profile_email_display'];
$user_email=$data[0]['profile_email'];
$user_email=formatText(''.$user_email.'', '2HTML');
$user_groupe=formatText($data[0]['catus_name'], '2HTML');
if($user_public_email=='Y') $user_public_email=_t('divers','yes');
else $user_public_email=_t('divers','no');
$user_profile_city=formatText(empty_nc($data[0]['profile_city']), '2HTML');
$user_profile_birthdate=formatText(empty_nc($data[0]['profile_birthdate']), '2HTML');
$user_profile_leisures=formatText(empty_nc($data[0]['profile_leisures']), '2HTML');
$user_profile_job=formatText(empty_nc($data[0]['profile_job']), '2HTML');
$user_profile_quotation=formatText(empty_nc($data[0]['profile_quotation']), '2HTML');
$user_profile_signature=formatText(empty_nc($data[0]['profile_signature']), '2HTML');
if(!empty($data[0]['profile_avatar'])) {
list($complete_uri)=GetAllPhotoUri('../'.$data[0]['profile_avatar']);
$user_profile_avatar='';
} else $user_profile_avatar=_t('divers','none');
$profile_last_modify_display=$data[0]['profile_last_modify_display'];
$profile_date_crea_display=$data[0]['profile_date_crea_display'];
$content.=GetLinkModifyUserInfo($user_id);
$content.='