X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=94874656d3956cd2d1d931d53018458b7db59f5d;hb=8a43972f58f0a77015ae9e509f1c073d188874d2;hp=25d28b6018d3172487ae83422921e4a8e67ba955;hpb=acc9be56f2cc773f7e684f9cd3201141bc126ee2;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 25d28b6..9487465 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -125,7 +125,7 @@ function chgMainWinLoc(strPage) {/if} {if $x.tels} - {display_phones tels=$x.tels} + {display_phones tels=$x.tels dcd=$x.dcd} {/if}
@@ -140,18 +140,19 @@ function chgMainWinLoc(strPage) {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} + {$user->promo()} + {if $logged && $x.is_referent} + [Ma fiche référent] {/if} {if $x.education} -  - Formation : {$x.education|smarty:nodefaults} - {/if} - {if $logged && $x.is_referent} - [Ma fiche référent] +  - Formation : + {/if} {if $x.corps} -
{$x.corps|smarty:nodefaults} {/if} @@ -159,6 +160,11 @@ function chgMainWinLoc(strPage) {if $x.adr}

Contact :

+ {if $x.dcd} + {assign var=address_name value="Dernière adresse"} + {else} + {assign var=address_name value="Adresse"} + {/if} {foreach from=$x.adr item="address" name=adresses} {if $smarty.foreach.adresses.iteration is even} {assign var=pos value="right"} @@ -166,13 +172,13 @@ function chgMainWinLoc(strPage) {assign var=pos value="left"} {/if} {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :" for="`$x.prenom` `$x.nom`" pos=$pos} {elseif $address.secondaire} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :" for="`$x.prenom` `$x.nom`" pos=$pos} {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :" for="`$x.prenom` `$x.nom`" pos=$pos} {/if} {if $smarty.foreach.adresses.iteration is even}
{/if}