X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=94874656d3956cd2d1d931d53018458b7db59f5d;hb=8a43972f58f0a77015ae9e509f1c073d188874d2;hp=405e3af72d101df50a46987b042b8818afd2103c;hpb=b159e33797ccfb84478dd2dbde700c7d1867539f;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 405e3af..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}
@@ -160,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"} @@ -167,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}