{**************************************************************************} {* *} {* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} {* it under the terms of the GNU General Public License as published by *} {* the Free Software Foundation; either version 2 of the License, or *} {* (at your option) any later version. *} {* *} {* This program is distributed in the hope that it will be useful, *} {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} {* GNU General Public License for more details. *} {* *} {* You should have received a copy of the GNU General Public License *} {* along with this program; if not, write to the Free Software *} {* Foundation, Inc., *} {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} {* *} {**************************************************************************} {assign var=dead value=$profile->deathdate} {if $smarty.session.auth ge AUTH_COOKIE} {assign var=withAuth value=true} {assign var=user value=$profile->owner()} {if $user == null} {assign var=hasowner value=false} {assign var=registered value=false} {else} {assign var=hasowner value=true} {if $user->state neq 'pending'} {assign var=registered value=true} {else} {assign var=registered value=false} {/if} {/if} {else} {* Without auth, all profiles appear as registered and with owner *} {assign var=hasowner value=true} {assign var=registered value=true} {assign var=withAuth value=false} {/if}
{if $withAuth}
{$profile->directory_name}
{/if}
{if $profile->isFemale()}•{/if} {if !$dead && $registered}{/if} {$profile->directory_name} {if !$dead && $registered}{/if}
{foreach from=$profile->nationalities() item=country key=code} {$code}  {/foreach} {$profile->promo()}{* *}{foreach from=$profile->getExtraEducations(4) item=edu}, {display_education edu=$edu profile=$profile full=false}{/foreach}{* *}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if}
{if $withAuth}
{if $registered || (!$dead && $hasowner)}
{if !$registered && !$dead && $hasowner} {if !$smarty.session.user->isWatchedUser($profile)} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} {elseif $registered} {* *}{icon name=user_suit title="Afficher la fiche"} {if !$dead} {* *}{icon name=vcard title="Afficher la carte de visite"} {* *}{icon name=email title="Envoyer un email"} {if !$smarty.session.user->isContact($profile)} {* *}{icon name=add title="Ajouter à mes contacts"} {else} {* *}{icon name=cross title="Retirer de mes contacts"} {/if} {/if} {/if}
{/if} {if hasPerm('admin') && $hasowner}
[{if $registered && !$dead} {* *}{icon name=email title="marketter user"} {/if} {* *}{icon name=wrench title="administrer user"} {* *}{icon name=user_gray title="fiche AX"}]
{/if}
{/if}
{if !$dead} {assign var=address value=$profile->getMainAddress()} {assign var=web value=$profile->getWebSite()} {assign var=job value=$profile->getMainJob()} {if $web || $profile->mobile || ($address && $address->country) || $job || !$registered || $user->lost} {if $web} {/if} {if $address && $address->country} {/if} {if $profile->mobile && !$dead} {/if} {if $job} {/if} {if $withAuth} {if !$registered && $hasowner} {elseif $user->state neq 'disabled' && $user->lost} {/if} {/if}
{$web.name} : {$web.address}
Géographie : {if $address->locality}{$address->locality}, {/if}{$address->country}
Mobile : {$profile->mobile}
Profession : {if $job->company->url|default:$job->user_site}{$job->company->name}{else}{$job->company->name}{/if} {if $job->subsubsector} ({$job->subsubsector}){/if}{if $job->description}
{$job->description}{/if}
{"Ce"|sex:"Cette":$profile} camarade n'est pas {"inscrit"|sex:"inscrite":$profile}. Si tu connais son adresse email, n'hésite pas à nous la transmettre !
{"Ce"|sex:"Cette":$profile} camarade n'a plus d'adresse de redirection valide. Si tu en connais une, n'hésite pas à nous la transmettre.
{/if} {/if}
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}