{**************************************************************************} {* *} {* Copyright (C) 2003-2009 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} {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 *} {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->full_name} {if !$dead && $registered}{/if}
{if $profile->nationality1} {$profile->nationality1}  {/if} {if $profile->nationality2} {$profile->nationality2}  {/if} {if $profile->nationality3} {$profile->nationality3}  {/if} {$profile->promo()}{* *}{iterate from=$profile->getExtraEducations(4) item=edu}, {education_fmt edu=$edu profile=$profile}{/iterate}{* *}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if}
{if $withAuth}
{if !$registered && !$dead} {if $show_action eq 'ajouter'} {* *}{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($user)} {* *}{icon name=add title="Ajouter à mes contacts"} {else} {* *}{icon name=cross title="Retirer de mes contacts"} {/if} {/if} {/if}
{if hasPerm('admin')}
[{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->getMailJob()} {if $web || $profile->mobile || $address.country || $job || (!$dead && !$registered)} {if $web} {/if} {if $address.country && !$c.dcd} {/if} {if $profile->mobile && !$dead} {/if} {if $job} {/if} {if $withAuth} {if !$registered} {elseif $user->state neq 'disabled' && $user->lost} {/if} {/if}
Page web : {$web}
Géographie : {if $address.locality}{$address.locality}, {/if}{$address.country}
Mobile : {$profile->mobile}
Profession : {if $job.url|default:$job.user_site}{$job.name}{else}{$job.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: *}