1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 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
29 Impossible d'utiliser ce service, il manque la clef privée AX dans la configuration de plat/al.
32 <form action='{$smarty.request.PHP_SELF}' method='get'>
33 <table class="tinybicol">
35 <th>Synchroniser un utilisateur</th>
38 <td style='padding:5px'>
39 <input type='text' name='user' value='{$smarty.request.user}' size='40' maxlength='255'/>
40 <input type='submit' value='Chercher' />
47 {if $x and !no_private_key}
48 <form action='{$smarty.request.PHP_SELF}' method='post'>
49 {if $x.profile_from_ax}
50 <div style="text-align:center;margin:5px;background:green">
51 <strong>Cet utilisateur a accepeté la synchronisation</strong>
54 <div style="text-align:center;margin:5px;background:red">
55 <strong>ATTENTION ! Cet utilisateur n'a pas accepté la synchronisation</strong>
58 <div>Les fiches de cet utilisateur :
60 <li><a href='{rel}/fiche.php?user={$x.user_id}' class='popup2'>polytechnique.org</a></li>
61 <li><a href='http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&anc_id={$x.matricule_ax}'>polytechniciens.com</a></li>
65 <table class="bicol" cellpadding="0" cellspacing="0" border="1">
66 {foreach from=$diff key='k' item='i'}
67 {if ($k neq 'adr') and ($k neq 'adr_pro')}
88 {foreach from=$diff.adr item='adr'}
91 Effacer l'adresse {$adr.adrid}.
93 {if $adr.adrid}Modifier l'adresse {$adr.adrid} :{else}Ajouter l'adresse :{/if}
94 {include file='geoloc/address.tpl' address=$adr no_div=1}
104 {foreach from=$diff.adr_pro item='pro'}
107 Effacer l'emploi {$pro.entrid}.
109 {if $pro.entrid || $pro.entrid === 0}Modifier l'emploi {$pro.entrid} :{else}Ajouter l'emploi :{/if}
112 <em>Entreprise/Organisme : </em> <strong>{$pro.entreprise}</strong>
118 <strong>{$pro.secteur}{if $pro.ss_secteur} ({$pro.ss_secteur}){/if}</strong>
123 <em>Fonction : </em> <strong>{$pro.fonction}</strong>
128 <em>Poste : </em> <strong>{$pro.poste}</strong>
131 {include file='geoloc/address.tpl' address=$pro no_div=1}
138 <input type='hidden' name='user' value='{$smarty.request.user}' />
139 <input type='submit' name='importe' value='Importer' />
143 Le profil actuel est synchronisé avec les données de l'AX.
150 {* vim:set et sw=2 sts=2 sws=2: *}