{**************************************************************************} {* *} {* Copyright (C) 2003-2004 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 *} {* *} {**************************************************************************}

Synchronisation depuis l'AX

Synchroniser un utilisateur
{if $x}
{if $x.profile_from_ax}
Cet utilisateur a accepeté la synchronisation
{else}
ATTENTION ! Cet utilisateur n'a pas accepté la synchronisation
{/if} {foreach from=$watch_champs item='i'} {if $x[$i] or $ax[$i]} {/if} {/foreach}
champ x.org importer AX
fiche polytechnique.org polytechniciens.com
{$i} {$x[$i]} {if $x[$i] eq $ax[$i]} == {else} {if $ax[$i]} {/if} {/if} {$ax[$i]}
{if $ax.adr[0]} {if $x.adr}
Supprimer les adresses suivantes :
{foreach from=$x.adr item='adr'} {/foreach}
{include file='geoloc/address.tpl' address=$adr no_div=1}
et les remplacer par les adresses suivantes de l'AX :
{else}
Importer les adresses AX suivantes :
{/if} {foreach from=$ax.adr item='adr' key='adrid'} {/foreach}
{include file='geoloc/address.tpl' address=$adr no_div=1}
{/if}
{if $ax.adr_pro[0].entreprise} {if $x.adr_pro}
Supprimer les emplois suivants :
{foreach from=$x.adr_pro item='pro'} {if ($pro.poste) or ($pro.fonction) or ($pro.entreprise)} {/if} {/foreach}
{if $pro.entreprise}
Entreprise/Organisme : {$pro.entreprise}
{/if} {if $pro.secteur}
Secteur : {$pro.secteur}{if $pro.ss_secteur} ({$pro.ss_secteur}){/if}
{/if} {if $pro.fonction}
Fonction : {$pro.fonction}
{/if} {if $pro.poste}
Poste : {$pro.poste}
{/if} {include file='geoloc/address.tpl' address=$pro no_div=1}
et les remplacer par les emplois suivants de l'AX :
{else}
Importer les emplois suivants depuis l'AX :
{/if} {foreach from=$ax.adr_pro item='pro' key='proid'} {if ($pro.poste) or ($pro.fonction) or ($pro.entreprise)} {/if} {/foreach}
{if $pro.entreprise}
Entreprise/Organisme : {$pro.entreprise}
{/if} {if $pro.fonction}
Fonction : {$pro.fonction}
{/if} {include file='geoloc/address.tpl' address=$pro no_div=1}
{/if}
{/if} {* vim:set et sw=2 sts=2 sws=2: *}