1 {**************************************************************************}
3 {* Copyright (C) 2003-2004 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
24 Synchronisation depuis l'AX
27 <form action='{$smarty.request.PHP_SELF}' method='get'>
28 <table class="tinybicol">
30 <th>Synchroniser un utilisateur</th>
33 <td style='padding:5px'>
34 <input type='text' name='user' value='{$smarty.request.user}' size='40' maxlength='255'/>
35 <input type='submit' value='Chercher' />
42 <form action='{$smarty.request.PHP_SELF}' method='post'>
43 {if $x.profile_from_ax}
44 <div style="text-align:center;margin:5px;background:green">
45 <strong>Cet utilisateur a accepeté la synchronisation</strong>
48 <div style="text-align:center;margin:5px;background:red">
49 <strong>ATTENTION ! Cet utilisateur n'a pas accepté la synchronisation</strong>
52 <table class="bicol" cellpadding="0" cellspacing="0" border="1">
55 <th style='width:50%'>x.org</th>
57 <th style='width:50%'>AX</th>
62 <a href='{rel}/fiche.php?user={$x.user_id}' class='popup2'>polytechnique.org</a>
67 <a href='http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&anc_id={$x.matricule_ax}'>polytechniciens.com</a>
70 {foreach from=$watch_champs item='i'}
71 {if $x[$i] or $ax[$i]}
72 <tr class="{if ($x[$i] eq $ax[$i]) or !$ax[$i]}im{/if}pair">
80 {if $x[$i] eq $ax[$i]}
84 <input style='flat:right' type='checkbox' name='{$i}' />
102 Supprimer les adresses suivantes :
105 {foreach from=$x.adr item='adr'}
106 <tr style="padding:5px">
108 <input type='checkbox' name='del_address{$adr.adrid}' />
111 {include file='geoloc/address.tpl' address=$adr no_div=1}
117 et les remplacer par les adresses suivantes de l'AX :
121 Importer les adresses AX suivantes :
125 {foreach from=$ax.adr item='adr' key='adrid'}
126 <tr style='padding:5px'>
128 <input type='checkbox' name='add_address{$adrid}' />
131 {include file='geoloc/address.tpl' address=$adr no_div=1}
140 {if $ax.adr_pro[0].entreprise}
143 Supprimer les emplois suivants :
146 {foreach from=$x.adr_pro item='pro'}
147 {if ($pro.poste) or ($pro.fonction) or ($pro.entreprise)}
148 <tr style='padding:5px'>
150 <input type='checkbox' name='del_pro{$pro.entrid}' />
155 <em>Entreprise/Organisme : </em> <strong>{$pro.entreprise}</strong>
161 <strong>{$pro.secteur}{if $pro.ss_secteur} ({$pro.ss_secteur}){/if}</strong>
166 <em>Fonction : </em> <strong>{$pro.fonction}</strong>
171 <em>Poste : </em> <strong>{$pro.poste}</strong>
174 {include file='geoloc/address.tpl' address=$pro no_div=1}
182 et les remplacer par les emplois suivants de l'AX :
186 Importer les emplois suivants depuis l'AX :
190 {foreach from=$ax.adr_pro item='pro' key='proid'}
191 {if ($pro.poste) or ($pro.fonction) or ($pro.entreprise)}
192 <tr style='padding:5px'>
194 <input type='checkbox' name='add_pro{$proid}' />
199 <em>Entreprise/Organisme : </em> <strong>{$pro.entreprise}</strong>
204 <em>Fonction : </em> <strong>{$pro.fonction}</strong>
207 {include file='geoloc/address.tpl' address=$pro no_div=1}
218 <input type='hidden' name='user' value='{$ax.uid}' />
219 <input type='submit' name='importe' value='Importer' />
224 {* vim:set et sw=2 sts=2 sws=2: *}