X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=2ebcb4317b4221806194197b729b187ef4bbfaf1;hb=c7eac294d59c639f26b21920f7d1827d5854c82f;hp=05af62076bfa53889f6305e8c52bc09bb0a91c31;hpb=4d8e2051a1744a78acddfdad2074908aa1f7df1f;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 05af620..2ebcb43 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2008 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,13 +22,16 @@ {literal} {/literal} -{if $logged and $x.forlife eq $smarty.session.forlife} -[Modifier ma fiche] -{/if} - - - - - - - {if $x.adr} - - - + {if $x.education} +  - Formation : + + {/if} + {if $x.corps} + {$x.corps|smarty:nodefaults} + {/if} + + + {if $x.adr} +
+

Contact :

+ {foreach from=$x.adr item="address" name=adresses} + {if $smarty.foreach.adresses.iteration is even} + {assign var=pos value="right"} + {else} + {assign var=pos value="left"} + {/if} + {if $address.active} + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" + for="`$x.prenom` `$x.nom`" pos=$pos} + {elseif $address.secondaire} + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" + for="`$x.prenom` `$x.nom`" pos=$pos} + {else} + {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" + for="`$x.prenom` `$x.nom`" pos=$pos} + {/if} + {if $smarty.foreach.adresses.iteration is even}
{/if} + {/foreach} +
{/if} {if $x.adr_pro} - - - + {/foreach} + {/if} {if $x.medals} - - - +
+

Distinctions :

+ {foreach from=$x.medals item=m} +
+ {$m.medal} +
+ {$m.medal}
{$m.grade} +
+
+ {/foreach} +
 
+
{/if} - {if $logged} - {if $x.cv} - - - + {if $logged && $x.cv} +
+

Curriculum Vitae :

+ {$x.cv|miniwiki:title|smarty:nodefaults} +
{/if} + {if $view eq 'public'} +
+ + Cette fiche est publique et visible par tout internaute,
+ vous pouvez aussi voir celle réservée aux X. +
+
+ {elseif $view eq 'ax'} +
+ + Cette fiche est privée et ne recense que les informations transmises à l'AX. + +
{/if} -{if !$logged} - -{/if} - -
-
- {if $x.sexe}•{/if} - {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} - {if $logged} - {if $x.nickname} (alias {$x.nickname}){/if}  - {* - *}{icon name=vcard title="Afficher la carte de visite"} - {if !$x.is_contact} - - {icon name=add title="Ajouter à mes contacts"} +
+
+ {if $photo_url}Photo de {$user->login()}{/if} + {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)} +

À l'X...

+ {if $x.section}
Section : {$x.section}
{/if} + {if $x.binets_join}
Binet{if count($x.binets) > 1}s{/if} : + {$x.binets_join}
{/if} + {if $x.gpxs_join}
Groupe{if count($x.gpxs) > 1}s{/if} et institution{if count($x.gpxs) > 1}s{/if} X : +
{$x.gpxs_join|smarty:nodefaults}
{/if} + {/if} + {if $x.networking} +

Sur le web...

+ {foreach from=$x.networking item=network} + {$network.name} + {if $network.filter == 'web'} + {$network.address} + {elseif $network.link != ''} + {$network.address} {else} - - {icon name=cross title="Retirer de mes contacts"} - {/if} - {if $smarty.session.perms eq admin} - - {icon name=wrench title="administrer user"} + {$network.address} {/if} - {/if} -
+
+ {/foreach} + {/if} + {if $x.freetext} +

Commentaires :

+ {$x.freetext|miniwiki|smarty:nodefaults} + {/if} +
+
+
+ {if $user->isFemale()}•{/if} + {$x.name_display} {if $logged} -
- Fiche mise à jour
- le {$x.date|date_format} -
+ {if $x.nickname} (alias {$x.nickname}){/if} {/if} - {if $logged || $x.mobile} -
- {if $logged} - - {/if} -
- {if $x.mobile}Mobile : {$x.mobile}
{/if} -
-
-
+ {if $logged} +  {if !$x.dcd}{* + *}{icon name=vcard title="Afficher la carte de visite"}{/if} + {if !$x.is_contact} + + {icon name=add title="Ajouter à mes contacts"} + {else} + + {icon name=cross title="Retirer de mes contacts"} {/if} -
- {if $x.iso3166} - {$x.nationalite}  - {/if} - X {$x.promo} - {if ($x.promo_sortie-3 > $x.promo)} - - X {math equation="a-b" a=$x.promo_sortie b=3} - {/if} - {if $x.applis_join} -  - Formation : {$x.applis_join|smarty:nodefaults} + {if hasPerm('admin')} + + {icon name=wrench title="administrer user"} + {/if} + {if $user->login() eq $smarty.session.hruid} + {icon name="user_edit" title="Modifier ma fiche"} + {/if} + {/if} +
+ {if $logged} +
+ Fiche mise à jour
+ le {$x.date|date_format} +
+ {/if} + {if $logged || $x.tels} +
+ {if $logged} + -
- {if $photo_url}Photo de {$x.forlife}{/if} - {if $logged} - {if $x.section}
Section : {$x.section}
{/if} - {if $x.binets_join}
Binet(s) : {$x.binets_join}
{/if} - {if $x.gpxs_join}
Groupe(s) X : {$x.gpxs_join|smarty:nodefaults}
{/if} {/if} - {if $x.web}
Site Web : {$x.web}
{/if} - {if $x.freetext}
Commentaires :
{$x.freetext|nl2br|smarty:nodefaults}
{/if} -
-

Contact :

- {foreach from=$x.adr item="address" key="i"} - {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"} - {elseif $address.secondaire} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"} - {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"} + {if $x.tels} + {display_phones tels=$x.tels} + {/if} +
+ + {/if} +
+ {if $x.iso3166_1} + {$x.nationalite}  + {/if} + {if $x.iso3166_2} + {$x.nationalite2}  + {/if} + {if $x.iso3166_3} + {$x.nationalite3}  + {/if} + X {$user->promo()} + {if $x.promo_sortie && ($x.promo_sortie-3 > $x.promo)} + - X {math equation="a-b" a=$x.promo_sortie b=3} + {/if} + {if $logged && $x.is_referent} + [Ma fiche référent] {/if} - {/foreach} -
 
-
-

Informations professionnelles :

- {foreach from=$x.adr_pro item="address" key="i"} +
+

Informations professionnelles :

+ {foreach from=$x.adr_pro item="address" key="i"} + {if $i neq 0}
{/if} {include file="include/emploi.tpl" address=$address} - {include file="geoloc/address.tpl" address=$address titre="Adresse : "} + {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"}
 
- {/foreach} -
-

Distinctions :

- {foreach from=$x.medals item=m} - - - - - -
- {$m.medal} - - {$m.medal} -
{$m.grade} -
- {/foreach} -
 
-
-

Curriculum Vitae :

- {$x.cv|nl2br} -
Cette fiche est publique et visible par tout internaute, -vous pouvez aussi voir celle réservée aux X. -
+
+ -{* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}